openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAP_IDOC_SEND:
    post:
      tags:
      - RSAP
      operationId: /rfc/RSAP_IDOC_SEND
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_FLAG_COMMIT_WORK:
                  type: string
                  maxLength: 1
                I_FLAG_NEW_TASK:
                  type: string
                  maxLength: 1
                I_MESTYP:
                  type: string
                  maxLength: 30
                I_RCVPRN:
                  type: string
                  maxLength: 10
                I_RCVPRT:
                  type: string
                  maxLength: 2
                I_S_RQSTPRMS:
                  type: object
                  properties:
                    REQUNR:
                      type: string
                      maxLength: 30
                      description: Request number for the data transfer
                    DATAPAKID:
                      type: integer
                      format: int64
                      description: Data packet number
                    INFOPAKID:
                      type: integer
                      format: int64
                      description: Data packet number
                    IDOCNR:
                      type: integer
                      format: int64
                      description: IDoc number
                    ERROR:
                      type: integer
                      format: int32
                      description: Return Value of ABAP Statements
                    DATUM:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    ZEIT:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                    MILISECS:
                      type: integer
                      format: int32
                      description: Natural number
                    RCRDEXTR:
                      type: integer
                      format: int32
                      description: Number of Data Records Extracted
                    RCRDSENT:
                      type: integer
                      format: int32
                      description: Number of Sent Data Records
                I_T_IDOC_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: integer
                        format: int64
                        description: IDoc number
                      SEGNUM:
                        type: integer
                        format: int64
                        description: Number of SAP segment
                      SEGNAM:
                        type: string
                        maxLength: 27
                        description: Segment type
                      PSGNUM:
                        type: integer
                        format: int64
                        description: Number of the hierarchically higher SAP segment
                      HLEVEL:
                        type: integer
                        format: int64
                        description: Hierarchy level
                      DTINT2:
                        type: integer
                        format: int32
                        description: Length field for VARC field
                      SDATA:
                        type: string
                        maxLength: 1000
                        description: Application data
              required:
              - I_MESTYP
              - I_RCVPRN
              - I_RCVPRT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_S_CALLBACK_INFO:
                    type: object
                    properties:
                      REQUNR:
                        type: string
                        maxLength: 30
                        description: Request number for the data transfer
                      DATAPAKID:
                        type: integer
                        format: int32
                        description: Current Number of Data Package
                      INFOPAKID:
                        type: integer
                        format: int32
                        description: Current Number of Info IDoc
                      IDOCNR:
                        type: integer
                        format: int64
                        description: IDoc number
                      TID:
                        type: string
                        maxLength: 24
                        description: ''
                      STARTDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      STARTTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      ENDDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      ENDTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                  I_T_IDOC_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: integer
                          format: int64
                          description: IDoc number
                        SEGNUM:
                          type: integer
                          format: int64
                          description: Number of SAP segment
                        SEGNAM:
                          type: string
                          maxLength: 27
                          description: Segment type
                        PSGNUM:
                          type: integer
                          format: int64
                          description: Number of the hierarchically higher SAP segment
                        HLEVEL:
                          type: integer
                          format: int64
                          description: Hierarchy level
                        DTINT2:
                          type: integer
                          format: int32
                          description: Length field for VARC field
                        SDATA:
                          type: string
                          maxLength: 1000
                          description: Application data
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
