openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/QDEST_RUN_DESTINATION:
    post:
      tags:
      - QOWK
      operationId: /rfc/QDEST_RUN_DESTINATION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                QSEND:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client ID of Current User
                    DEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    TYPE:
                      type: string
                      maxLength: 1
                      description: Internal ABAP System Field
                    WKSTATE:
                      type: string
                      maxLength: 8
                      description: Status of an ARFC call (RECORDED,CPICERR,MAILED,READ..)
                    MAXCONN:
                      type: integer
                      format: int32
                      description: Index of Internal Tables
                    MAXTIME:
                      type: integer
                      format: int32
                      description: Index of Internal Tables
                    DATUM:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    UZEIT:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                    USERID:
                      type: string
                      maxLength: 12
                      description: User Name
                    GROUPDEST:
                      type: string
                      maxLength: 20
                      description: Logon/Server Group Name
                    RFCMESS:
                      type: string
                      maxLength: 72
                      description: Internal ABAP System Field
                    QNAME:
                      type: string
                      maxLength: 24
                      description: Name of tRFC Queue
                    NACTIVE:
                      type: integer
                      format: int64
                      description: No. of attempts
                    HOSTID:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    QRFCONLY:
                      type: string
                      maxLength: 1
                      description: Internal ABAP System Field
                QVIEW:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      QNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      QDEEP:
                        type: integer
                        format: int32
                        description: Loop Index
                      QSTATE:
                        type: string
                        maxLength: 8
                        description: Transactional tRFC queue status
                      WQNAME:
                        type: string
                        maxLength: 24
                        description: Name of tRFC Queue
                      FDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      FTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      LDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      LTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      FQCOUNT:
                        type: integer
                        format: int64
                        description: Counter for serialized tRFC
                      LQCOUNT:
                        type: integer
                        format: int64
                        description: Counter for serialized tRFC
                      ERRMESS:
                        type: string
                        maxLength: 73
                        description: Message Text
                      QLUWCNT:
                        type: string
                        maxLength: 8
                        description: Counter within a transaction (LUW)
                      BATCHPLA:
                        type: string
                        maxLength: 1
                        description: Internal ABAP System Field
                      FIRSTTID:
                        type: string
                        maxLength: 24
                        description: Character field of length 24
                TSTATE:
                  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:
              - QSEND
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DEST_EXECUTED:
                    type: string
                    maxLength: 1
                  QVIEW:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        QNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        DEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        QDEEP:
                          type: integer
                          format: int32
                          description: Loop Index
                        QSTATE:
                          type: string
                          maxLength: 8
                          description: Transactional tRFC queue status
                        WQNAME:
                          type: string
                          maxLength: 24
                          description: Name of tRFC Queue
                        FDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        FTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        LDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        LTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        FQCOUNT:
                          type: integer
                          format: int64
                          description: Counter for serialized tRFC
                        LQCOUNT:
                          type: integer
                          format: int64
                          description: Counter for serialized tRFC
                        ERRMESS:
                          type: string
                          maxLength: 73
                          description: Message Text
                        QLUWCNT:
                          type: string
                          maxLength: 8
                          description: Counter within a transaction (LUW)
                        BATCHPLA:
                          type: string
                          maxLength: 1
                          description: Internal ABAP System Field
                        FIRSTTID:
                          type: string
                          maxLength: 24
                          description: Character field of length 24
                  TSTATE:
                    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.
