openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOC_INPUT_SERDAT:
    post:
      tags:
      - BDSE
      operationId: /rfc/IDOC_INPUT_SERDAT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INPUT_METHOD:
                  type: string
                  maxLength: 1
                  description: Input method for IDoc input function library
                MASS_PROCESSING:
                  type: string
                  maxLength: 1
                  description: 'Flag: Mass processing'
                IDOC_CONTRL:
                  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
                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
                IDOC_STATUS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCNUM:
                        type: integer
                        format: int64
                        description: IDoc number
                      STATUS:
                        type: string
                        maxLength: 2
                        description: Status of IDoc
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message identification
                      MSGNO:
                        type: string
                        maxLength: 3
                        description: System Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Parameter 1
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Parameter 2
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Parameter 3
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Parameter 4
                      SEGNUM:
                        type: integer
                        format: int64
                        description: Number of SAP segment
                      SEGFLD:
                        type: string
                        maxLength: 30
                        description: Field Name in SAP Segment
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User name
                      REPID:
                        type: string
                        maxLength: 30
                        description: Program Name
                      ROUTID:
                        type: string
                        maxLength: 30
                        description: Name of subroutine (routine, function module)
                      TID:
                        type: string
                        maxLength: 24
                        description: Transaction ID
                      APPL_LOG:
                        type: string
                        maxLength: 20
                        description: Application Log
                RETURN_VARIABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      WF_PARAM:
                        type: string
                        maxLength: 32
                        description: Name of Output Parameter of Workflow Method
                      DOC_NUMBER:
                        type: string
                        maxLength: 70
                        description: Doc. no. (IDoc number, application document no., etc.)
                SERIALIZATION_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCNUM:
                        type: integer
                        format: int64
                        description: IDoc number
                      SERTYP:
                        type: string
                        maxLength: 30
                        description: Object type for serialization
                      OBJVALUE:
                        type: string
                        maxLength: 120
                        description: Object value
                      SERFLAG:
                        type: string
                        maxLength: 1
                        description: 'ALE: serialization problem flag  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SERIAL:
                        type: string
                        maxLength: 20
                        description: Serialization field
                      SNDPRT:
                        type: string
                        maxLength: 2
                        description: Partner type of sender
                      SNDPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Sender
                      SNDPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Sender
                      RCVPRT:
                        type: string
                        maxLength: 2
                        description: Partner Type of Receiver
                      RCVPRN:
                        type: string
                        maxLength: 10
                        description: Partner Number of Receiver
                      RCVPFC:
                        type: string
                        maxLength: 2
                        description: Partner Function of Receiver
              required:
              - INPUT_METHOD
              - MASS_PROCESSING
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  APPLICATION_VARIABLE:
                    type: string
                    maxLength: 255
                    description: Variable to be used by application as required
                  CALL_TRANSACTION_DONE:
                    type: string
                    maxLength: 1
                    description: 'Flag: call transaction successful'
                  IN_UPDATE_TASK:
                    type: string
                    maxLength: 1
                    description: Application triggered update
                  WORKFLOW_RESULT:
                    type: string
                    maxLength: 5
                    description: Final Value of Method
                  IDOC_CONTRL:
                    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
                  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
                  IDOC_STATUS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCNUM:
                          type: integer
                          format: int64
                          description: IDoc number
                        STATUS:
                          type: string
                          maxLength: 2
                          description: Status of IDoc
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message identification
                        MSGNO:
                          type: string
                          maxLength: 3
                          description: System Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Parameter 1
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Parameter 2
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Parameter 3
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Parameter 4
                        SEGNUM:
                          type: integer
                          format: int64
                          description: Number of SAP segment
                        SEGFLD:
                          type: string
                          maxLength: 30
                          description: Field Name in SAP Segment
                        UNAME:
                          type: string
                          maxLength: 12
                          description: User name
                        REPID:
                          type: string
                          maxLength: 30
                          description: Program Name
                        ROUTID:
                          type: string
                          maxLength: 30
                          description: Name of subroutine (routine, function module)
                        TID:
                          type: string
                          maxLength: 24
                          description: Transaction ID
                        APPL_LOG:
                          type: string
                          maxLength: 20
                          description: Application Log
                  RETURN_VARIABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        WF_PARAM:
                          type: string
                          maxLength: 32
                          description: Name of Output Parameter of Workflow Method
                        DOC_NUMBER:
                          type: string
                          maxLength: 70
                          description: Doc. no. (IDoc number, application document no., etc.)
                  SERIALIZATION_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCNUM:
                          type: integer
                          format: int64
                          description: IDoc number
                        SERTYP:
                          type: string
                          maxLength: 30
                          description: Object type for serialization
                        OBJVALUE:
                          type: string
                          maxLength: 120
                          description: Object value
                        SERFLAG:
                          type: string
                          maxLength: 1
                          description: 'ALE: serialization problem flag  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        SERIAL:
                          type: string
                          maxLength: 20
                          description: Serialization field
                        SNDPRT:
                          type: string
                          maxLength: 2
                          description: Partner type of sender
                        SNDPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Sender
                        SNDPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Sender
                        RCVPRT:
                          type: string
                          maxLength: 2
                          description: Partner Type of Receiver
                        RCVPRN:
                          type: string
                          maxLength: 10
                          description: Partner Number of Receiver
                        RCVPFC:
                          type: string
                          maxLength: 2
                          description: Partner Function of Receiver
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
