openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/QRFC_GET_NEXT_UNITS_FROM_QUEUE:
    post:
      tags:
      - QRFC_SERVER_NO_SEND
      operationId: /rfc/QRFC_GET_NEXT_UNITS_FROM_QUEUE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DESTINATION:
                  type: string
                  maxLength: 32
                LAST_UNIT_ID:
                  type: string
                  format: byte
                MAX_UNITS:
                  type: integer
                  format: int32
                NO_STATUS_UPDATE:
                  type: string
                  maxLength: 1
                QUEUE_NAME:
                  type: string
                  maxLength: 40
              required:
              - DESTINATION
              - LAST_UNIT_ID
              - MAX_UNITS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QRFC_UNITS:
                    type: array
                    items:
                      type: object
                      properties:
                        ARFCIPID:
                          type: string
                          maxLength: 8
                          description: Host ID (IP ID
                        ARFCPID:
                          type: string
                          maxLength: 4
                          description: Process ID
                        ARFCTIME:
                          type: string
                          maxLength: 8
                          description: Time Stamp
                        ARFCTIDCNT:
                          type: string
                          maxLength: 4
                          description: Transaction ID (LUW -> COMMIT WORK)
                        ARFCDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        ARFCLUWCNT:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        ARFCBLCNT:
                          type: string
                          format: byte
                          description: Block number for ARFC data
                        ARFCDATA01:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA02:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA03:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA04:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA05:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA06:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        ARFCDATA07:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                  UNIT_STATES:
                    type: array
                    items:
                      type: object
                      properties:
                        ARFCIPID:
                          type: string
                          maxLength: 8
                          description: Host ID (IP ID
                        ARFCPID:
                          type: string
                          maxLength: 4
                          description: Process ID
                        ARFCTIME:
                          type: string
                          maxLength: 8
                          description: Time Stamp
                        ARFCTIDCNT:
                          type: string
                          maxLength: 4
                          description: Transaction ID (LUW -> COMMIT WORK)
                        ARFCDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        ARFCLUWCNT:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        ARFCSTATE:
                          type: string
                          maxLength: 8
                          description: Status of an ARFC call (RECORDED,CPICERR,MAILED,READ..)
                        ARFCFNAM:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        ARFCRETURN:
                          type: string
                          maxLength: 1
                          description: Reply expected
                        ARFCUZEIT:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        ARFCDATUM:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        ARFCUSER:
                          type: string
                          maxLength: 12
                          description: User Name
                        ARFCRETRYS:
                          type: integer
                          format: int64
                          description: No. of attempts
                        ARFCTCODE:
                          type: string
                          maxLength: 20
                          description: Current Transaction Code
                        ARFCRHOST:
                          type: string
                          maxLength: 8
                          description: Character field of length 8
                        ARFCMSG:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        ARFCRESERV:
                          type: string
                          maxLength: 255
                          description: Horizontal Line
                        HASH:
                          type: string
                          format: byte
                          description: HASH for tRFC/qRFC
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
