openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TRFC_QRETDATA_GET:
    post:
      tags:
      - ERFC
      operationId: /rfc/TRFC_QRETDATA_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ORGTID:
                  type: string
                  maxLength: 24
                  description: Original TID
                QRDATA:
                  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)
                      QRFNUM:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QRINDEX:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QRDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      QRQNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      QRFNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      QRIFFNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      QRECSIZE:
                        type: integer
                        format: int32
                        description: Size of RFC recorder record
                      QRECDATA01:
                        type: string
                        format: byte
                        description: Asynchronous RFC
                      QRECDATA02:
                        type: string
                        format: byte
                        description: Asynchronous RFC
                      QRECDATA03:
                        type: string
                        format: byte
                        description: Asynchronous RFC
                      QRECDATA04:
                        type: string
                        format: byte
                        description: Asynchronous RFC
                QRSTATE:
                  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)
                      QRFNUM:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QRINDEX:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QRFTOTAL:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QRASTATE:
                        type: string
                        maxLength: 8
                        description: Status of an ARFC call (RECORDED,CPICERR,MAILED,READ..)
                      QRFCTYPE:
                        type: string
                        maxLength: 1
                        description: Internal ABAP System Field
                      QRFNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      QRQNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      QRDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      QRIFFNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      QRSAMESYS:
                        type: string
                        maxLength: 1
                        description: Internal ABAP System Field
                      QRADATA:
                        type: string
                        maxLength: 1
                        description: Internal ABAP System Field
                      QRORGTID:
                        type: string
                        maxLength: 24
                        description: Character field of length 24
                      QRMANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      QRUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      QRDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      QRTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      QRDATEA:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      QRTIMEA:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      BRTYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      BRID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      BRNR:
                        type: integer
                        format: int64
                        description: Message Number
                      BRMSG:
                        type: string
                        maxLength: 220
                        description: Message Text
                      BRLOGNR:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      BRLMNR:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      BRMSV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      BRMSV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      BRMSV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      BRMSV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      BRPARAM:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      BRROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      BRFIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      BRSYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
              required:
              - ORGTID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QRDATA:
                    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)
                        QRFNUM:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QRINDEX:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QRDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        QRQNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        QRFNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        QRIFFNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        QRECSIZE:
                          type: integer
                          format: int32
                          description: Size of RFC recorder record
                        QRECDATA01:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        QRECDATA02:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        QRECDATA03:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                        QRECDATA04:
                          type: string
                          format: byte
                          description: Asynchronous RFC
                  QRSTATE:
                    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)
                        QRFNUM:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QRINDEX:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QRFTOTAL:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QRASTATE:
                          type: string
                          maxLength: 8
                          description: Status of an ARFC call (RECORDED,CPICERR,MAILED,READ..)
                        QRFCTYPE:
                          type: string
                          maxLength: 1
                          description: Internal ABAP System Field
                        QRFNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        QRQNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        QRDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        QRIFFNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        QRSAMESYS:
                          type: string
                          maxLength: 1
                          description: Internal ABAP System Field
                        QRADATA:
                          type: string
                          maxLength: 1
                          description: Internal ABAP System Field
                        QRORGTID:
                          type: string
                          maxLength: 24
                          description: Character field of length 24
                        QRMANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        QRUSER:
                          type: string
                          maxLength: 12
                          description: User Name
                        QRDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        QRTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        QRDATEA:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        QRTIMEA:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        BRTYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        BRID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        BRNR:
                          type: integer
                          format: int64
                          description: Message Number
                        BRMSG:
                          type: string
                          maxLength: 220
                          description: Message Text
                        BRLOGNR:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        BRLMNR:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        BRMSV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        BRMSV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        BRMSV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        BRMSV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        BRPARAM:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        BRROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        BRFIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        BRSYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
