openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/INBOUND_IDOC_PROCESS:
    post:
      tags:
      - BD11
      summary: Starts IDoc inbound processing in the ALE layer
      operationId: /rfc/INBOUND_IDOC_PROCESS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IDOC_CONTROL:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAM:
                        type: string
                        maxLength: 10
                        description: Name of external 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
                      DOCTYP:
                        type: string
                        maxLength: 8
                        description: IDoc type
                      DIRECT:
                        type: string
                        maxLength: 1
                        description: Direction for IDoc transmission
                      RCVPOR:
                        type: string
                        maxLength: 10
                        description: Receiver port (SAP System, EDI subsystem)
                      RCVPRT:
                        type: string
                        maxLength: 2
                        description: Partner Type of Receiver
                      RCVPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Receiver
                      RCVSAD:
                        type: string
                        maxLength: 21
                        description: 'IDoc: SADR fields in total'
                      RCVLAD:
                        type: string
                        maxLength: 70
                        description: Logical address of recipient
                      STD:
                        type: string
                        maxLength: 1
                        description: EDI Standard
                      STDVRS:
                        type: string
                        maxLength: 6
                        description: Version of EDI standard
                      STDMES:
                        type: string
                        maxLength: 6
                        description: EDI message type
                      MESCOD:
                        type: string
                        maxLength: 3
                        description: Logical message code
                      MESFCT:
                        type: string
                        maxLength: 3
                        description: Logical message function
                      OUTMOD:
                        type: string
                        maxLength: 1
                        description: Output Mode
                      TEST:
                        type: string
                        maxLength: 1
                        description: Test flag
                      SNDPOR:
                        type: string
                        maxLength: 10
                        description: Sender port (SAP System, EDI subsystem)
                      SNDPRT:
                        type: string
                        maxLength: 2
                        description: Partner type of sender
                      SNDPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Sender
                      SNDSAD:
                        type: string
                        maxLength: 21
                        description: 'IDoc: SADR fields in total'
                      SNDLAD:
                        type: string
                        maxLength: 70
                        description: Logical address of sender
                      REFINT:
                        type: string
                        maxLength: 14
                        description: Reference to interchange file
                      REFGRP:
                        type: string
                        maxLength: 14
                        description: Reference to message group
                      REFMES:
                        type: string
                        maxLength: 14
                        description: Reference to message
                      ARCKEY:
                        type: string
                        maxLength: 70
                        description: EDI archive key
                      CREDAT:
                        type: string
                        format: date
                        description: IDoc Created On
                      CRETIM:
                        type: string
                        maxLength: 6
                        description: IDoc creation time
                      MESTYP:
                        type: string
                        maxLength: 6
                        description: Logical message type
                      IDOCTYP:
                        type: string
                        maxLength: 8
                        description: Name of basic type
                      CIMTYP:
                        type: string
                        maxLength: 8
                        description: Extension
                      RCVPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Recipient
                      SNDPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Sender
                      SERIAL:
                        type: string
                        maxLength: 20
                        description: 'EDI/ALE: Serialization field'
                      EXPRSS:
                        type: string
                        maxLength: 1
                        description: Overriding in inbound processing
                IDOC_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAM:
                        type: string
                        maxLength: 10
                        description: Name of external structure
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: string
                        maxLength: 16
                        description: IDoc number
                      SEGNUM:
                        type: string
                        maxLength: 6
                        description: Number of SAP segment
                      SEGNAM:
                        type: string
                        maxLength: 10
                        description: Name of SAP segment
                      PSGNUM:
                        type: string
                        maxLength: 6
                        description: Number of the higher-level SAP segment
                      HLEVEL:
                        type: string
                        maxLength: 2
                        description: Hierarchy level of SAP segment
                      DTINT2:
                        type: string
                        maxLength: 2
                        description: Blank field for EDI_DD
                      SDATA:
                        type: string
                        maxLength: 1000
                        description: Application data
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IDOC_CONTROL:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAM:
                          type: string
                          maxLength: 10
                          description: Name of external 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
                        DOCTYP:
                          type: string
                          maxLength: 8
                          description: IDoc type
                        DIRECT:
                          type: string
                          maxLength: 1
                          description: Direction for IDoc transmission
                        RCVPOR:
                          type: string
                          maxLength: 10
                          description: Receiver port (SAP System, EDI subsystem)
                        RCVPRT:
                          type: string
                          maxLength: 2
                          description: Partner Type of Receiver
                        RCVPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Receiver
                        RCVSAD:
                          type: string
                          maxLength: 21
                          description: 'IDoc: SADR fields in total'
                        RCVLAD:
                          type: string
                          maxLength: 70
                          description: Logical address of recipient
                        STD:
                          type: string
                          maxLength: 1
                          description: EDI Standard
                        STDVRS:
                          type: string
                          maxLength: 6
                          description: Version of EDI standard
                        STDMES:
                          type: string
                          maxLength: 6
                          description: EDI message type
                        MESCOD:
                          type: string
                          maxLength: 3
                          description: Logical message code
                        MESFCT:
                          type: string
                          maxLength: 3
                          description: Logical message function
                        OUTMOD:
                          type: string
                          maxLength: 1
                          description: Output Mode
                        TEST:
                          type: string
                          maxLength: 1
                          description: Test flag
                        SNDPOR:
                          type: string
                          maxLength: 10
                          description: Sender port (SAP System, EDI subsystem)
                        SNDPRT:
                          type: string
                          maxLength: 2
                          description: Partner type of sender
                        SNDPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Sender
                        SNDSAD:
                          type: string
                          maxLength: 21
                          description: 'IDoc: SADR fields in total'
                        SNDLAD:
                          type: string
                          maxLength: 70
                          description: Logical address of sender
                        REFINT:
                          type: string
                          maxLength: 14
                          description: Reference to interchange file
                        REFGRP:
                          type: string
                          maxLength: 14
                          description: Reference to message group
                        REFMES:
                          type: string
                          maxLength: 14
                          description: Reference to message
                        ARCKEY:
                          type: string
                          maxLength: 70
                          description: EDI archive key
                        CREDAT:
                          type: string
                          format: date
                          description: IDoc Created On
                        CRETIM:
                          type: string
                          maxLength: 6
                          description: IDoc creation time
                        MESTYP:
                          type: string
                          maxLength: 6
                          description: Logical message type
                        IDOCTYP:
                          type: string
                          maxLength: 8
                          description: Name of basic type
                        CIMTYP:
                          type: string
                          maxLength: 8
                          description: Extension
                        RCVPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Recipient
                        SNDPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Sender
                        SERIAL:
                          type: string
                          maxLength: 20
                          description: 'EDI/ALE: Serialization field'
                        EXPRSS:
                          type: string
                          maxLength: 1
                          description: Overriding in inbound processing
                  IDOC_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAM:
                          type: string
                          maxLength: 10
                          description: Name of external structure
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: string
                          maxLength: 16
                          description: IDoc number
                        SEGNUM:
                          type: string
                          maxLength: 6
                          description: Number of SAP segment
                        SEGNAM:
                          type: string
                          maxLength: 10
                          description: Name of SAP segment
                        PSGNUM:
                          type: string
                          maxLength: 6
                          description: Number of the higher-level SAP segment
                        HLEVEL:
                          type: string
                          maxLength: 2
                          description: Hierarchy level of SAP segment
                        DTINT2:
                          type: string
                          maxLength: 2
                          description: Blank field for EDI_DD
                        SDATA:
                          type: string
                          maxLength: 1000
                          description: Application data
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
