openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OWN_FUNCTION:
    post:
      tags:
      - EDIMUSTER
      operationId: /rfc/OWN_FUNCTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_EDIDC:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: integer
                        format: int64
                        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  enumValues: 1=Outbound,2=Inbound'
                        enum:
                        - '1'
                        - '2'
                      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: 10
                        description: Recipient address (SADR)
                      RCVSMN:
                        type: string
                        maxLength: 3
                        description: SADR client (recipient)
                      RCVSNA:
                        type: string
                        maxLength: 1
                        description: SADR flag for international recipient address
                      RCVSCA:
                        type: string
                        maxLength: 3
                        description: Communication type (SADR) of recipient
                      RCVSDF:
                        type: string
                        maxLength: 1
                        description: SADR default flag for recipient address
                      RCVSLF:
                        type: string
                        maxLength: 3
                        description: Sequential Number of Recipient Address (SADR)
                      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 Variant
                      MESFCT:
                        type: string
                        maxLength: 3
                        description: Logical message function
                      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'
                      TEST:
                        type: string
                        maxLength: 1
                        description: 'Test Flag  enumValues: ""=IDoc contains a productive message,X=IDoc contains a test message'
                        enum:
                        - ''
                        - X
                      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: 10
                        description: Sender address (SADR)
                      SNDSMN:
                        type: string
                        maxLength: 3
                        description: SADR client (sender)
                      SNDSNA:
                        type: string
                        maxLength: 1
                        description: SADR flag for international sender address
                      SNDSCA:
                        type: string
                        maxLength: 3
                        description: Communication type (SADR) of sender
                      SNDSDF:
                        type: string
                        maxLength: 1
                        description: SADR default flag for sender address
                      SNDSLF:
                        type: string
                        maxLength: 3
                        description: Sequential Number of the Sender Address (SADR)
                      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 Created at
                      MESTYP:
                        type: string
                        maxLength: 30
                        description: Message Type
                      IDOCTP:
                        type: string
                        maxLength: 30
                        description: Basic type
                      CIMTYP:
                        type: string
                        maxLength: 30
                        description: Extension
                      RCVPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Receiver
                      SNDPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Sender
                      SERIAL:
                        type: string
                        maxLength: 20
                        description: Serialization field
                      EXPRSS:
                        type: string
                        maxLength: 1
                        description: 'Overriding in inbound processing  enumValues: ""=No overriding,X=Overriding'
                        enum:
                        - ''
                        - X
                      UPDDAT:
                        type: string
                        format: date
                        description: Date on which control record was last changed
                      UPDTIM:
                        type: string
                        maxLength: 6
                        description: Time at which control record was last changed
                      MAXSEGNUM:
                        type: integer
                        format: int64
                        description: Number of data records
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  I_EDIDC:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: integer
                          format: int64
                          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  enumValues: 1=Outbound,2=Inbound'
                          enum:
                          - '1'
                          - '2'
                        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: 10
                          description: Recipient address (SADR)
                        RCVSMN:
                          type: string
                          maxLength: 3
                          description: SADR client (recipient)
                        RCVSNA:
                          type: string
                          maxLength: 1
                          description: SADR flag for international recipient address
                        RCVSCA:
                          type: string
                          maxLength: 3
                          description: Communication type (SADR) of recipient
                        RCVSDF:
                          type: string
                          maxLength: 1
                          description: SADR default flag for recipient address
                        RCVSLF:
                          type: string
                          maxLength: 3
                          description: Sequential Number of Recipient Address (SADR)
                        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 Variant
                        MESFCT:
                          type: string
                          maxLength: 3
                          description: Logical message function
                        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'
                        TEST:
                          type: string
                          maxLength: 1
                          description: 'Test Flag  enumValues: ""=IDoc contains a productive message,X=IDoc contains a test message'
                          enum:
                          - ''
                          - X
                        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: 10
                          description: Sender address (SADR)
                        SNDSMN:
                          type: string
                          maxLength: 3
                          description: SADR client (sender)
                        SNDSNA:
                          type: string
                          maxLength: 1
                          description: SADR flag for international sender address
                        SNDSCA:
                          type: string
                          maxLength: 3
                          description: Communication type (SADR) of sender
                        SNDSDF:
                          type: string
                          maxLength: 1
                          description: SADR default flag for sender address
                        SNDSLF:
                          type: string
                          maxLength: 3
                          description: Sequential Number of the Sender Address (SADR)
                        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 Created at
                        MESTYP:
                          type: string
                          maxLength: 30
                          description: Message Type
                        IDOCTP:
                          type: string
                          maxLength: 30
                          description: Basic type
                        CIMTYP:
                          type: string
                          maxLength: 30
                          description: Extension
                        RCVPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Receiver
                        SNDPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Sender
                        SERIAL:
                          type: string
                          maxLength: 20
                          description: Serialization field
                        EXPRSS:
                          type: string
                          maxLength: 1
                          description: 'Overriding in inbound processing  enumValues: ""=No overriding,X=Overriding'
                          enum:
                          - ''
                          - X
                        UPDDAT:
                          type: string
                          format: date
                          description: Date on which control record was last changed
                        UPDTIM:
                          type: string
                          maxLength: 6
                          description: Time at which control record was last changed
                        MAXSEGNUM:
                          type: integer
                          format: int64
                          description: Number of data records
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
