openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CRM_UPLOAD_TRIGGER:
    post:
      tags:
      - CRM0
      operationId: /rfc/CRM_UPLOAD_TRIGGER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_BAPICRMUH1:
                  type: object
                  properties:
                    CONSUMER:
                      type: string
                      maxLength: 10
                      description: User of R/3 Adaptor Functionality
                    OBJNAME:
                      type: string
                      maxLength: 15
                      description: Object Name for Download
                    UPLOAD_ID:
                      type: string
                      maxLength: 32
                      description: Unique Reference Number
                    OPERATION:
                      type: string
                      maxLength: 3
                      description: 'Function  enumValues: 023=Wait/Adjust: Data should not be imported,009=Original: First message for process,005=Replace: This message replaces previous messages,018=Resend,004=Change: Message contains changes,003=Delete: Message contains objects to be deleted'
                      enum:
                      - '023'
                      - '009'
                      - '005'
                      - '018'
                      - '004'
                      - '003'
                    KEYWORD_IN:
                      type: string
                      maxLength: 20
                      description: Keyword for Customer Enhancements
                    OBJECTTYPE:
                      type: string
                      maxLength: 4
                      description: Object Type
                    DATAFORMAT:
                      type: string
                      maxLength: 4
                      description: Data Format
                    CHKENDEBC:
                      type: string
                      maxLength: 2
                      description: Option for Checking System Environment
                    LOG_SYSTEM:
                      type: string
                      maxLength: 10
                      description: Logical system
                    CHECK_BTE:
                      type: string
                      maxLength: 1
                      description: 'Flag: BTE Should Be Checked for Download Functionality  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    OBJCLASS:
                      type: string
                      maxLength: 15
                      description: Object Class
                    BLOCKSIZE:
                      type: integer
                      format: int64
                      description: Block Size for Download
                    BLOCKNO:
                      type: string
                      maxLength: 10
                      description: Block Number Data Transfer
                    LASTBLOCK:
                      type: string
                      maxLength: 1
                      description: Indicator for Last Block During Initial Download
                    DWNLOADTYP:
                      type: string
                      maxLength: 1
                      description: 'Download Type  enumValues: D=Delta Download,E=Error Information from Upload Only,R=Request,H=Compare Header,O=Other Error Information Only,T=Compare Detail,I=Initial Download,M=Mapping Error'
                      enum:
                      - D
                      - E
                      - R
                      - H
                      - O
                      - T
                      - I
                      - M
                    COCALL:
                      type: string
                      maxLength: 1
                      description: 'A Complex Structure Is Used During Data Exchange  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    CRM_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    SENT_BY:
                      type: string
                      maxLength: 12
                      description: User Name
                TI_BAPICRMSFK:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTNAME:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      TABNAME_P:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      SFA_KEY:
                        type: string
                        maxLength: 32
                        description: CHAR32 data element for SYST
                      SFA_KEY_P:
                        type: string
                        maxLength: 32
                        description: CHAR32 data element for SYST
                      LINE_NO:
                        type: string
                        maxLength: 128
                        description: Current Record Number or Unique Key
                      LOG_SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system
                TI_BAPIMTCS:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      SEGTYPE:
                        type: string
                        maxLength: 2
                        description: Segment Type
                      CURRDNO:
                        type: integer
                        format: int32
                        description: Number of Current Data Segment
                      SUBHEXIST:
                        type: string
                        maxLength: 1
                        description: Do Other Data Segments Exist?
                      HIERNO:
                        type: integer
                        format: int32
                        description: Hierarchy Number of Data Segment
                      PARENTDNO:
                        type: integer
                        format: int32
                        description: Segment Number of Superior Data Segment
                      DATA:
                        type: string
                        maxLength: 4000
                        description: Character 4000
                      OBJKEY:
                        type: string
                        maxLength: 32
                        description: Object Key
                      RELKEY:
                        type: string
                        maxLength: 120
                        description: Key for the Relationship Between the Individual Entries
                      GEN_CHRSTR:
                        type: string
                        maxLength: 30
                        description: Information on Generated Structures
                      ALIAS:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                TI_BAPIPAREX:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 30
                        description: Structure name of  BAPI table extension
                      VALUEPART1:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART2:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART3:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART4:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                TI_EVENT:
                  type: array
                  items:
                    type: object
                    properties:
                      EVENT:
                        type: string
                        maxLength: 8
                        description: Event for export of business data
                      OBJECT:
                        type: string
                        maxLength: 15
                        description: Object Class
                      FUNCT:
                        type: string
                        maxLength: 30
                        description: Application Module (Developed by SAP)
                      APPLK:
                        type: string
                        maxLength: 6
                        description: Event Application
              required:
              - I_BAPICRMUH1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TI_BAPICRMSFK:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTNAME:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        TABNAME_P:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        SFA_KEY:
                          type: string
                          maxLength: 32
                          description: CHAR32 data element for SYST
                        SFA_KEY_P:
                          type: string
                          maxLength: 32
                          description: CHAR32 data element for SYST
                        LINE_NO:
                          type: string
                          maxLength: 128
                          description: Current Record Number or Unique Key
                        LOG_SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system
                  TI_BAPIMTCS:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        SEGTYPE:
                          type: string
                          maxLength: 2
                          description: Segment Type
                        CURRDNO:
                          type: integer
                          format: int32
                          description: Number of Current Data Segment
                        SUBHEXIST:
                          type: string
                          maxLength: 1
                          description: Do Other Data Segments Exist?
                        HIERNO:
                          type: integer
                          format: int32
                          description: Hierarchy Number of Data Segment
                        PARENTDNO:
                          type: integer
                          format: int32
                          description: Segment Number of Superior Data Segment
                        DATA:
                          type: string
                          maxLength: 4000
                          description: Character 4000
                        OBJKEY:
                          type: string
                          maxLength: 32
                          description: Object Key
                        RELKEY:
                          type: string
                          maxLength: 120
                          description: Key for the Relationship Between the Individual Entries
                        GEN_CHRSTR:
                          type: string
                          maxLength: 30
                          description: Information on Generated Structures
                        ALIAS:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                  TI_BAPIPAREX:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Structure name of  BAPI table extension
                        VALUEPART1:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART2:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART3:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART4:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                  TI_EVENT:
                    type: array
                    items:
                      type: object
                      properties:
                        EVENT:
                          type: string
                          maxLength: 8
                          description: Event for export of business data
                        OBJECT:
                          type: string
                          maxLength: 15
                          description: Object Class
                        FUNCT:
                          type: string
                          maxLength: 30
                          description: Application Module (Developed by SAP)
                        APPLK:
                          type: string
                          maxLength: 6
                          description: Event Application
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
