openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOCS_OUTPUT_VIA_XML_HTTP:
    post:
      tags:
      - EDI7
      operationId: /rfc/IDOCS_OUTPUT_VIA_XML_HTTP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ERROR_FLAG:
                  type: string
                  maxLength: 1
                  description: 'Flag: IDoc error processing?'
                NAST_RECORD:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    KAPPL:
                      type: string
                      maxLength: 2
                      description: Application for message conditions
                    OBJKY:
                      type: string
                      maxLength: 30
                      description: Object key
                    KSCHL:
                      type: string
                      maxLength: 4
                      description: Message type
                    SPRAS:
                      type: string
                      maxLength: 1
                      description: Message language
                    PARNR:
                      type: string
                      maxLength: 10
                      description: Message partner
                    PARVW:
                      type: string
                      maxLength: 2
                      description: Partner function (for example SH for ship-to party)
                    ERDAT:
                      type: string
                      format: date
                      description: Date on which status record was created
                    ERUHR:
                      type: string
                      maxLength: 6
                      description: Time at which status record was created
                    ADRNR:
                      type: string
                      maxLength: 10
                      description: Address number
                    NACHA:
                      type: string
                      maxLength: 1
                      description: 'Message transmission medium  enumValues: 4=Telex,5=External send,T=Tasks (SAP Business Workflow),A=Distribution (ALE),1=Print output,6=EDI,7=Simple Mail,2=Fax,8=Special function,9=Events (SAP Business Workflow)'
                      enum:
                      - '4'
                      - '5'
                      - T
                      - A
                      - '1'
                      - '6'
                      - '7'
                      - '2'
                      - '8'
                      - '9'
                    ANZAL:
                      type: integer
                      format: int64
                      description: Number of messages (original + copies)
                    VSZTP:
                      type: string
                      maxLength: 1
                      description: 'Dispatch time  enumValues: 3=Send with application own transaction,1=Send with periodically scheduled job,4=Send immediately (when saving the application),2=Send with job, with additional time specification'
                      enum:
                      - '3'
                      - '1'
                      - '4'
                      - '2'
                    VSDAT:
                      type: string
                      format: date
                      description: Requested date for sending message
                    VSURA:
                      type: string
                      maxLength: 6
                      description: Requested time for sending message (from)
                    VSURB:
                      type: string
                      maxLength: 6
                      description: Requested time for sending message (to)
                    MANUE:
                      type: string
                      maxLength: 1
                      description: 'Message processed manually  enumValues: X=Message processed manually,""=No manual processing'
                      enum:
                      - X
                      - ''
                    DATVR:
                      type: string
                      format: date
                      description: Processing date
                    UHRVR:
                      type: string
                      maxLength: 6
                      description: Processing time
                    DATRE:
                      type: string
                      format: date
                      description: Date of the expected response to a message
                    USNAM:
                      type: string
                      maxLength: 12
                      description: User name
                    VSTAT:
                      type: string
                      maxLength: 1
                      description: 'Processing status of message  enumValues: 0=Not processed,2=Incorrectly processed,1=Successfully processed'
                      enum:
                      - '0'
                      - '2'
                      - '1'
                    AKTIV:
                      type: string
                      maxLength: 1
                      description: Active
                    TCODE:
                      type: string
                      maxLength: 4
                      description: Communication strategy
                    LDEST:
                      type: string
                      maxLength: 4
                      description: 'Spool: Output device'
                    DSNAM:
                      type: string
                      maxLength: 6
                      description: 'Spool request: Name'
                    DSUF1:
                      type: string
                      maxLength: 4
                      description: 'Spool request: Suffix 1'
                    DSUF2:
                      type: string
                      maxLength: 12
                      description: 'Spool request: Suffix 2'
                    DIMME:
                      type: string
                      maxLength: 1
                      description: 'Print immediately  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    DELET:
                      type: string
                      maxLength: 1
                      description: 'Release after output  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TELFX:
                      type: string
                      maxLength: 31
                      description: Fax number
                    TELX1:
                      type: string
                      maxLength: 30
                      description: Telex number
                    TELTX:
                      type: string
                      maxLength: 30
                      description: Teletex number
                    AENDE:
                      type: string
                      maxLength: 1
                      description: 'Change message flag  enumValues: X=Change message,""=No change message'
                      enum:
                      - X
                      - ''
                    REPET:
                      type: string
                      maxLength: 1
                      description: 'Repeatability of message  enumValues: 1=Repetition allowed (dialog step),""=Repetition allowed,2=Repetition not allowed'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    REPID:
                      type: string
                      maxLength: 8
                      description: Unused field
                    PFLD1:
                      type: string
                      maxLength: 30
                      description: Unused field
                    PFLD2:
                      type: string
                      maxLength: 30
                      description: Unused field
                    PFLD3:
                      type: string
                      maxLength: 30
                      description: Unused field
                    PFLD4:
                      type: string
                      maxLength: 30
                      description: 'WFMC: SAPscript form in 30-character field'
                    PFLD5:
                      type: string
                      maxLength: 30
                      description: 'WFMC: Function module for print formatting'
                    PMID1:
                      type: string
                      maxLength: 3
                      description: Unused field
                    PMID2:
                      type: string
                      maxLength: 3
                      description: Unused field
                    PMID3:
                      type: string
                      maxLength: 3
                      description: Unused field
                    PMID4:
                      type: string
                      maxLength: 3
                      description: Unused field
                    PMID5:
                      type: string
                      maxLength: 3
                      description: Unused field
                    TDNAME:
                      type: string
                      maxLength: 70
                      description: Object key (long)
                    TDID:
                      type: string
                      maxLength: 4
                      description: Text ID
                    TDSPRAS:
                      type: string
                      maxLength: 1
                      description: Language Key
                    EDIKEY:
                      type: string
                      maxLength: 8
                      description: Dunning Date (Used in Retail)
                    EDITRANS:
                      type: string
                      maxLength: 6
                      description: Dunning Time (Used in Retail)
                    SNDDR:
                      type: string
                      maxLength: 1
                      description: 'Send: As disregard  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    SNDEX:
                      type: string
                      maxLength: 1
                      description: Unused field
                    SNDCP:
                      type: string
                      maxLength: 1
                      description: Unused field
                    SNDBC:
                      type: string
                      maxLength: 1
                      description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    FORFB:
                      type: string
                      maxLength: 1
                      description: 'Requested Status  enumValues: N=No Status Is to Be Returned,E=Only Error Statuses Are to Be Returned,A=Return All Statuses'
                      enum:
                      - N
                      - E
                      - A
                    PRIFB:
                      type: string
                      maxLength: 1
                      description: 'Setting for Which Statuses Are Reported by Mail  enumValues: N=No Status,E=Only Error Statuses,A=All Statuses'
                      enum:
                      - N
                      - E
                      - A
                    ACALL:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJAC:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJRR:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJRN:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OUTFL:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJSNS:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJPRI:
                      type: string
                      maxLength: 1
                      description: Unused field
                    OBJCP:
                      type: string
                      maxLength: 1
                      description: Unused field
                    NAUTO:
                      type: string
                      maxLength: 1
                      description: 'Message determined via conditions  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDRECEIVER:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    TDDIVISION:
                      type: string
                      maxLength: 12
                      description: Department on Cover Page (Print Parameters)
                    TDOCOVER:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    TDCOVTITLE:
                      type: string
                      maxLength: 68
                      description: Text for Cover Page (Print Parameters)
                    TDAUTORITY:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    TDARMOD:
                      type: string
                      maxLength: 1
                      description: 'Print: Archiving mode  enumValues: 1=Print only,2=Archive only,3=Print and archive'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    OPTARCNR:
                      type: integer
                      format: int64
                      description: Archive number for optical archives
                    CMFPNR:
                      type: integer
                      format: int64
                      description: Error management number
                    USRNAM:
                      type: string
                      maxLength: 12
                      description: 'WFMC: Address number, 12 characters'
                    EVENT:
                      type: string
                      maxLength: 32
                      description: Event
                    SORT1:
                      type: string
                      maxLength: 20
                      description: Sort criteria for message status records
                    SORT2:
                      type: string
                      maxLength: 20
                      description: Sort criteria for message status records
                    SORT3:
                      type: string
                      maxLength: 20
                      description: Sort criteria for message status records
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object type
                    TDSCHEDULE:
                      type: string
                      maxLength: 3
                      description: 'Send time request  enumValues: NIG=Send at night,IMM=Send immediately'
                      enum:
                      - NIG
                      - IMM
                    TLAND:
                      type: string
                      maxLength: 3
                      description: Country Key
                PORT_DESCRIPTION:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    PORT:
                      type: string
                      maxLength: 10
                      description: Port
                    LOGDES:
                      type: string
                      maxLength: 32
                      description: RFC destination
                    VERSIO:
                      type: string
                      maxLength: 1
                      description: 'Version of control record  enumValues: 2=IDoc record types SAP Release 3.0/3.1,1=IDoc record types SAP Release 2.0/2.1,3=IDoc record types for SAP Release 4.0'
                      enum:
                      - '2'
                      - '1'
                      - '3'
                    CONTENTTYPE:
                      type: string
                      maxLength: 1
                      description: User content_type
                    VERSION:
                      type: string
                      maxLength: 3
                      description: 'HTTP Version  enumValues: 1.1=HTTP Version 1.1,1.0=HTTP Version 1.0'
                      enum:
                      - '1.1'
                      - '1.0'
                    SOAP_PROTOCOL:
                      type: string
                      maxLength: 1
                      description: Use SOAP Protocol
                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
                I_EDIDD:
                  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
              required:
              - PORT_DESCRIPTION
      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
                  I_EDIDD:
                    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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
