openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSC3_DEMON_UPL2:
    post:
      tags:
      - RSC3
      operationId: /rfc/RSC3_DEMON_UPL2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_MAXLINES:
                  type: integer
                  format: int64
                  default: 1000
                I_OSOURCE:
                  type: string
                  maxLength: 30
                I_REQUNR:
                  type: string
                  maxLength: 30
                I_RLOGSYS:
                  type: string
                  maxLength: 10
                E_T_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      CLUSTR:
                        type: integer
                        format: int32
                        description: Length field for user data in EXPORT/IMPORT tables
                      CLUSTD:
                        type: string
                        format: byte
                        description: Data field for IMPORT/EXPORT database tables
                E_T_IDOCSTATE:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCNUM:
                        type: integer
                        format: int64
                        description: IDoc number
                      STATUS:
                        type: string
                        maxLength: 2
                        description: Status of IDoc
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message identification
                      MSGNO:
                        type: string
                        maxLength: 3
                        description: System Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Parameter 1
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Parameter 2
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Parameter 3
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Parameter 4
                      SEGNUM:
                        type: integer
                        format: int64
                        description: Number of SAP segment
                      SEGFLD:
                        type: string
                        maxLength: 30
                        description: Field Name in SAP Segment
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User name
                      REPID:
                        type: string
                        maxLength: 30
                        description: Program Name
                      ROUTID:
                        type: string
                        maxLength: 30
                        description: Name of subroutine (routine, function module)
                      TID:
                        type: string
                        maxLength: 24
                        description: Transaction ID
                      APPL_LOG:
                        type: string
                        maxLength: 20
                        description: Application Log
                E_T_TID:
                  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)
              required:
              - I_OSOURCE
              - I_REQUNR
              - I_RLOGSYS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_NUMROWS:
                    type: integer
                    format: int32
                  E_SUBRC:
                    type: integer
                    format: int32
                  E_TID_READ:
                    type: integer
                    format: int32
                  E_TID_REMAIN:
                    type: integer
                    format: int32
                  E_T_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        CLUSTR:
                          type: integer
                          format: int32
                          description: Length field for user data in EXPORT/IMPORT tables
                        CLUSTD:
                          type: string
                          format: byte
                          description: Data field for IMPORT/EXPORT database tables
                  E_T_IDOCSTATE:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCNUM:
                          type: integer
                          format: int64
                          description: IDoc number
                        STATUS:
                          type: string
                          maxLength: 2
                          description: Status of IDoc
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message identification
                        MSGNO:
                          type: string
                          maxLength: 3
                          description: System Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Parameter 1
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Parameter 2
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Parameter 3
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Parameter 4
                        SEGNUM:
                          type: integer
                          format: int64
                          description: Number of SAP segment
                        SEGFLD:
                          type: string
                          maxLength: 30
                          description: Field Name in SAP Segment
                        UNAME:
                          type: string
                          maxLength: 12
                          description: User name
                        REPID:
                          type: string
                          maxLength: 30
                          description: Program Name
                        ROUTID:
                          type: string
                          maxLength: 30
                          description: Name of subroutine (routine, function module)
                        TID:
                          type: string
                          maxLength: 24
                          description: Transaction ID
                        APPL_LOG:
                          type: string
                          maxLength: 20
                          description: Application Log
                  E_T_TID:
                    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)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
