openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOC_INBOUND_ASYNCHRONOUS:
    post:
      tags:
      - EDIN
      summary: IDoc inbound processing via tRFC
      operationId: /rfc/IDOC_INBOUND_ASYNCHRONOUS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IDOC_CONTROL_REC_40:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAM:
                        type: string
                        maxLength: 10
                        description: Name of Table Structure
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: string
                        maxLength: 16
                        description: IDoc number
                      DOCREL:
                        type: string
                        maxLength: 4
                        description: SAP Release for IDoc
                      STATUS:
                        type: string
                        maxLength: 2
                        description: Status of IDoc
                      DIRECT:
                        type: string
                        maxLength: 1
                        description: 'Direction  enumValues: 1=Outbound,2=Inbound'
                        enum:
                        - '1'
                        - '2'
                      OUTMOD:
                        type: string
                        maxLength: 1
                        description: 'Output mode  enumValues: 4=Collect IDocs and transfer,3=Collect IDocs, transfer and start external subsystem,2=Transfer IDoc immediately,1=Transfer IDoc immediately and start external subsystem'
                        enum:
                        - '4'
                        - '3'
                        - '2'
                        - '1'
                      EXPRSS:
                        type: string
                        maxLength: 1
                        description: 'Overriding in inbound processing  enumValues: ""=No overriding,X=Overriding'
                        enum:
                        - ''
                        - X
                      TEST:
                        type: string
                        maxLength: 1
                        description: 'Test flag  enumValues: ""=IDoc contains a productive message,X=IDoc contains a test message'
                        enum:
                        - ''
                        - X
                      IDOCTYP:
                        type: string
                        maxLength: 30
                        description: Name of basic type
                      CIMTYP:
                        type: string
                        maxLength: 30
                        description: Extension (defined by customer)
                      MESTYP:
                        type: string
                        maxLength: 30
                        description: Message type
                      MESCOD:
                        type: string
                        maxLength: 3
                        description: Message code
                      MESFCT:
                        type: string
                        maxLength: 3
                        description: Message Function
                      STD:
                        type: string
                        maxLength: 1
                        description: EDI standard, flag
                      STDVRS:
                        type: string
                        maxLength: 6
                        description: EDI standard, version and release
                      STDMES:
                        type: string
                        maxLength: 6
                        description: EDI message type
                      SNDPOR:
                        type: string
                        maxLength: 10
                        description: Sender port (SAP System, external subsystem)
                      SNDPRT:
                        type: string
                        maxLength: 2
                        description: Partner type of sender
                      SNDPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Sender
                      SNDPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Sender
                      SNDSAD:
                        type: string
                        maxLength: 21
                        description: Sender address (SADR)
                      SNDLAD:
                        type: string
                        maxLength: 70
                        description: Logical address of sender
                      RCVPOR:
                        type: string
                        maxLength: 10
                        description: Receiver port
                      RCVPRT:
                        type: string
                        maxLength: 2
                        description: Partner Type of Receiver
                      RCVPFC:
                        type: string
                        maxLength: 2
                        description: Partner function of recipient
                      RCVPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Receiver
                      RCVSAD:
                        type: string
                        maxLength: 21
                        description: Recipient address (SADR)
                      RCVLAD:
                        type: string
                        maxLength: 70
                        description: Logical address of recipient
                      CREDAT:
                        type: string
                        format: date
                        description: Created on
                      CRETIM:
                        type: string
                        maxLength: 6
                        description: Created at
                      REFINT:
                        type: string
                        maxLength: 14
                        description: Transmission file (EDI Interchange)
                      REFGRP:
                        type: string
                        maxLength: 14
                        description: Message group (EDI Message Group)
                      REFMES:
                        type: string
                        maxLength: 14
                        description: Message (EDI Message)
                      ARCKEY:
                        type: string
                        maxLength: 70
                        description: Key for external message archive
                      SERIAL:
                        type: string
                        maxLength: 20
                        description: Serialization
                IDOC_DATA_REC_40:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGNAM:
                        type: string
                        maxLength: 30
                        description: Segment (external name)
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: string
                        maxLength: 16
                        description: IDoc number
                      SEGNUM:
                        type: string
                        maxLength: 6
                        description: Segment Number
                      PSGNUM:
                        type: integer
                        format: int64
                        description: Number of superior parent segment
                      HLEVEL:
                        type: string
                        maxLength: 2
                        description: Hierarchy level of SAP segment
                      SDATA:
                        type: string
                        maxLength: 1000
                        description: Application data
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IDOC_CONTROL_REC_40:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAM:
                          type: string
                          maxLength: 10
                          description: Name of Table Structure
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: string
                          maxLength: 16
                          description: IDoc number
                        DOCREL:
                          type: string
                          maxLength: 4
                          description: SAP Release for IDoc
                        STATUS:
                          type: string
                          maxLength: 2
                          description: Status of IDoc
                        DIRECT:
                          type: string
                          maxLength: 1
                          description: 'Direction  enumValues: 1=Outbound,2=Inbound'
                          enum:
                          - '1'
                          - '2'
                        OUTMOD:
                          type: string
                          maxLength: 1
                          description: 'Output mode  enumValues: 4=Collect IDocs and transfer,3=Collect IDocs, transfer and start external subsystem,2=Transfer IDoc immediately,1=Transfer IDoc immediately and start external subsystem'
                          enum:
                          - '4'
                          - '3'
                          - '2'
                          - '1'
                        EXPRSS:
                          type: string
                          maxLength: 1
                          description: 'Overriding in inbound processing  enumValues: ""=No overriding,X=Overriding'
                          enum:
                          - ''
                          - X
                        TEST:
                          type: string
                          maxLength: 1
                          description: 'Test flag  enumValues: ""=IDoc contains a productive message,X=IDoc contains a test message'
                          enum:
                          - ''
                          - X
                        IDOCTYP:
                          type: string
                          maxLength: 30
                          description: Name of basic type
                        CIMTYP:
                          type: string
                          maxLength: 30
                          description: Extension (defined by customer)
                        MESTYP:
                          type: string
                          maxLength: 30
                          description: Message type
                        MESCOD:
                          type: string
                          maxLength: 3
                          description: Message code
                        MESFCT:
                          type: string
                          maxLength: 3
                          description: Message Function
                        STD:
                          type: string
                          maxLength: 1
                          description: EDI standard, flag
                        STDVRS:
                          type: string
                          maxLength: 6
                          description: EDI standard, version and release
                        STDMES:
                          type: string
                          maxLength: 6
                          description: EDI message type
                        SNDPOR:
                          type: string
                          maxLength: 10
                          description: Sender port (SAP System, external subsystem)
                        SNDPRT:
                          type: string
                          maxLength: 2
                          description: Partner type of sender
                        SNDPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Sender
                        SNDPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Sender
                        SNDSAD:
                          type: string
                          maxLength: 21
                          description: Sender address (SADR)
                        SNDLAD:
                          type: string
                          maxLength: 70
                          description: Logical address of sender
                        RCVPOR:
                          type: string
                          maxLength: 10
                          description: Receiver port
                        RCVPRT:
                          type: string
                          maxLength: 2
                          description: Partner Type of Receiver
                        RCVPFC:
                          type: string
                          maxLength: 2
                          description: Partner function of recipient
                        RCVPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Receiver
                        RCVSAD:
                          type: string
                          maxLength: 21
                          description: Recipient address (SADR)
                        RCVLAD:
                          type: string
                          maxLength: 70
                          description: Logical address of recipient
                        CREDAT:
                          type: string
                          format: date
                          description: Created on
                        CRETIM:
                          type: string
                          maxLength: 6
                          description: Created at
                        REFINT:
                          type: string
                          maxLength: 14
                          description: Transmission file (EDI Interchange)
                        REFGRP:
                          type: string
                          maxLength: 14
                          description: Message group (EDI Message Group)
                        REFMES:
                          type: string
                          maxLength: 14
                          description: Message (EDI Message)
                        ARCKEY:
                          type: string
                          maxLength: 70
                          description: Key for external message archive
                        SERIAL:
                          type: string
                          maxLength: 20
                          description: Serialization
                  IDOC_DATA_REC_40:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGNAM:
                          type: string
                          maxLength: 30
                          description: Segment (external name)
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: string
                          maxLength: 16
                          description: IDoc number
                        SEGNUM:
                          type: string
                          maxLength: 6
                          description: Segment Number
                        PSGNUM:
                          type: integer
                          format: int64
                          description: Number of superior parent segment
                        HLEVEL:
                          type: string
                          maxLength: 2
                          description: Hierarchy level of SAP segment
                        SDATA:
                          type: string
                          maxLength: 1000
                          description: Application data
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
