openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TRFC_QOUT_GET_FIRST_LUW:
    post:
      tags:
      - ORFC
      operationId: /rfc/TRFC_QOUT_GET_FIRST_LUW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                DEST:
                  type: string
                  maxLength: 32
                  description: RFC destination
                NO_READ_LOCK:
                  type: string
                  default: ' '
                  maxLength: 1
                QNAME:
                  type: string
                  maxLength: 24
                QTABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      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)
                      QNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      QCOUNT:
                        type: integer
                        format: int64
                        description: Counter for serialized tRFC
                      HPQNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      NOSEND:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      QSTATE:
                        type: string
                        maxLength: 8
                        description: Transactional tRFC queue status
                      QLOCKCNT:
                        type: integer
                        format: int64
                        description: Counter for serialized tRFC
                      QRFCUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      QRFCFNAM:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      QRFCDATUM:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      QRFCUZEIT:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      QLUWCNT:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      QMAILED:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      ERRMESS:
                        type: string
                        maxLength: 73
                        description: Message Text
              required:
              - DEST
              - QNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERRMESS:
                    type: string
                    maxLength: 73
                  FDATE:
                    type: string
                    format: date
                  FQCOUNT:
                    type: integer
                    format: int64
                    description: Counter for serialized tRFC
                  FTIME:
                    type: string
                    maxLength: 6
                  QSTATE:
                    type: string
                    maxLength: 8
                  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)
                  WQNAME:
                    type: string
                    maxLength: 24
                  QTABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        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)
                        QNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        DEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        QCOUNT:
                          type: integer
                          format: int64
                          description: Counter for serialized tRFC
                        HPQNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        NOSEND:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        QSTATE:
                          type: string
                          maxLength: 8
                          description: Transactional tRFC queue status
                        QLOCKCNT:
                          type: integer
                          format: int64
                          description: Counter for serialized tRFC
                        QRFCUSER:
                          type: string
                          maxLength: 12
                          description: User Name
                        QRFCFNAM:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        QRFCDATUM:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        QRFCUZEIT:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        QLUWCNT:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        QMAILED:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        ERRMESS:
                          type: string
                          maxLength: 73
                          description: Message Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
