openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAP_TRFC_SEND:
    post:
      tags:
      - RSAP
      operationId: /rfc/RSAP_TRFC_SEND
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_FLAG_COMMIT_WORK:
                  type: string
                  maxLength: 1
                I_RCVPRN:
                  type: string
                  maxLength: 10
                I_S_HEADER:
                  type: object
                  properties:
                    REQUNR:
                      type: string
                      maxLength: 30
                      description: Request number for the data transfer
                    REQOBJTYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of requested data  enumValues: T=Master data text (language dependent description),D=Transaction data,M=Master data attributes,H=Hierachies'
                      enum:
                      - T
                      - D
                      - M
                      - H
                    IOBJECT:
                      type: string
                      maxLength: 30
                      description: Object of the data import (InfoSource / InfoObject)
                    REQDATE:
                      type: string
                      format: date
                      description: Date on which the data was requested (UTC)
                    REQTIME:
                      type: string
                      maxLength: 6
                      description: Time at which the data was requested (UTC)
                    REQUSER:
                      type: string
                      maxLength: 12
                      description: User Name
                    DATAPAKID:
                      type: integer
                      format: int64
                      description: Data packet number
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Source system
                    SELDATE:
                      type: string
                      format: date
                      description: Date upon which the data was selected (UTC)
                    SELTIME:
                      type: string
                      maxLength: 6
                      description: Time at which the data was selected (UTC)
                I_TRFC_OPTION:
                  type: string
                  maxLength: 1
                I_T_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGNAM:
                        type: string
                        maxLength: 27
                        description: Transfer structure IDoc segment between source and Warehouse
                      SEQUELFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag: Update segment  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LENGTH:
                        type: integer
                        format: int32
                        description: Length field for VARC field
                      DATA:
                        type: string
                        maxLength: 1000
                        description: Application data
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
              required:
              - I_RCVPRN
              - I_S_HEADER
      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_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGNAM:
                          type: string
                          maxLength: 27
                          description: Transfer structure IDoc segment between source and Warehouse
                        SEQUELFLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag: Update segment  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        LENGTH:
                          type: integer
                          format: int32
                          description: Length field for VARC field
                        DATA:
                          type: string
                          maxLength: 1000
                          description: Application data
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
