openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CRM_GET_QNAME:
    post:
      tags:
      - CRM0
      operationId: /rfc/CRM_GET_QNAME
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_BAPICRMDH2:
                  type: object
                  properties:
                    REF_ID:
                      type: string
                      maxLength: 32
                      description: Unique Reference Number
                    BLOCKSIZE:
                      type: integer
                      format: int64
                      description: Block Size for Download
                    RFCOLTP:
                      type: string
                      maxLength: 32
                      description: RFC Destination OLTP System
                    SEND_R3REL:
                      type: string
                      maxLength: 4
                      description: R/3 Release of Current Sending System
                    UPLOADSTAT:
                      type: string
                      maxLength: 1
                      description: 'Upload Status at Table Level  enumValues: W=Data Written to Database with Warnings,P=Data Partly Written to Database,S=Data Written to Database Without Errors or Warnings,E=Data not Written to Database (Error Situation)'
                      enum:
                      - W
                      - P
                      - S
                      - E
                    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
                    DELTA_OP:
                      type: string
                      maxLength: 1
                      description: 'Delta Operation  enumValues: D=Delete,I=Insert,U=Update'
                      enum:
                      - D
                      - I
                      - U
                    LASTBLOCK:
                      type: string
                      maxLength: 1
                      description: Indicator for Last Block During Initial Download
                    BLOCKNO:
                      type: string
                      maxLength: 10
                      description: Block Number Data Transfer
                    RECORDNO:
                      type: string
                      maxLength: 10
                      description: Record Number (10-Digits)
                    SEND_IFREL:
                      type: string
                      maxLength: 4
                      description: Sender Interface Release
                    RFCSERVER:
                      type: string
                      maxLength: 32
                      description: RFC Destination Server System
                    QUEUENAME:
                      type: string
                      maxLength: 32
                      description: Queue Name
                    IN_Q_USED:
                      type: string
                      maxLength: 1
                      description: Indicator, for Whether Inqueue Was Used
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    OLTP_CLNT:
                      type: string
                      maxLength: 3
                      description: Client
                    DATAFORMAT:
                      type: string
                      maxLength: 4
                      description: Data Format
                    CHKENDEBC:
                      type: string
                      maxLength: 2
                      description: Option for Checking System Environment
                    CONSUMER:
                      type: string
                      maxLength: 10
                      description: User of R/3 Adaptor Functionality
                    UC_SYSTEM:
                      type: string
                      maxLength: 1
                      description: 'System Is a Unicode System  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    OLTP_WPPID:
                      type: string
                      maxLength: 8
                      description: Process Identification
                    TEMP_INFO:
                      type: string
                      maxLength: 32
                      description: Character field, length 32
                    LOAD_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Internal Adapter: Type of Load  enumValues: R=Request,H=Compare Header,C=Compare,U=Response from Back End (Data Load from CRM System),I=Initial Load,T=Compare Detail,D=Delta Load'
                      enum:
                      - R
                      - H
                      - C
                      - U
                      - I
                      - T
                      - D
                    R3_GUID:
                      type: string
                      format: byte
                      description: Identification Attribute of Source Site
                    COCALL:
                      type: string
                      maxLength: 1
                      description: 'A Complex Structure Is Used During Data Exchange  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    UC_CHARSIZ:
                      type: integer
                      format: int64
                      description: Size of Character in Bytes in UNICODE System
                    USERNAME:
                      type: string
                      maxLength: 12
                      description: User Name
                    SITETYPE:
                      type: string
                      maxLength: 32
                      description: Site Type
                    BLOCK_PROCESSING:
                      type: string
                      maxLength: 1
                      description: 'Processing by Blocks Is Possible  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    INQUEUENAME:
                      type: string
                      maxLength: 24
                      description: Name of tRFC Queue
                    TIMESTAMP_DELTA:
                      type: integer
                      format: int64
                      description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                I_CONSUMER:
                  type: string
                  maxLength: 10
                I_DWNLOADTYPE:
                  type: string
                  maxLength: 1
                I_MASS_QUEUE:
                  type: string
                  maxLength: 24
                I_OBJNAME:
                  type: string
                  maxLength: 15
                I_RFC_QUEUE:
                  type: string
                  maxLength: 24
                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
              required:
              - I_DWNLOADTYPE
              - I_OBJNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  O_MASS_QUEUE:
                    type: string
                    maxLength: 24
                  O_Q_IN_NAME_COMPLETE:
                    type: string
                    maxLength: 24
                  O_Q_IN_QNAME_ONLY_OBJECT_PRT:
                    type: string
                    maxLength: 24
                  O_Q_IN_QNAME_ONLY_OBJ_PRT_TAB:
                    type: array
                    items:
                      type: string
                      maxLength: 24
                      description: Name of tRFC Queue
                  O_Q_OUT_NAME_COMPLETE:
                    type: string
                    maxLength: 24
                  O_Q_OUT_QNAME_ONLY_OBJECT_PRT:
                    type: string
                    maxLength: 24
                  O_Q_OUT_QNAME_ONLY_OBJ_PRT_TAB:
                    type: array
                    items:
                      type: string
                      maxLength: 24
                      description: Name of tRFC Queue
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
