openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSC2_QOUT_READ_DATA:
    post:
      tags:
      - RSC2
      operationId: /rfc/RSC2_QOUT_READ_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMPATIBILITY_MODE:
                  type: string
                  default: X
                  maxLength: 1
                DEST:
                  type: string
                  maxLength: 32
                GET_READ_TIDS:
                  type: string
                  default: X
                  maxLength: 1
                LAST_READ_TID:
                  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)
                MAXDATA:
                  type: integer
                  format: int32
                  default: 0
                MAXLUW:
                  type: integer
                  format: int32
                MULTIPLE_QUEUE:
                  type: string
                  maxLength: 1
                QNAME:
                  type: string
                  maxLength: 24
                READ_ONLY:
                  type: string
                  maxLength: 1
                DATA:
                  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
                FNAM:
                  type: array
                  items:
                    type: object
                    properties:
                      QRFCFNAM:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                STATE:
                  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
              required:
              - DEST
              - MAXLUW
              - QNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NDATA:
                    type: integer
                    format: int32
                  NLUW:
                    type: integer
                    format: int32
                  QDEEP:
                    type: integer
                    format: int32
                  QSTATE:
                    type: string
                    maxLength: 8
                  WQNAME:
                    type: string
                    maxLength: 24
                  DATA:
                    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
                  FNAM:
                    type: array
                    items:
                      type: object
                      properties:
                        QRFCFNAM:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                  STATE:
                    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.
