openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/SAPRDI01/SAPRDI:
    post:
      summary: IDoc type for raw data interface
      operationId: /idoc/SAPRDI01/SAPRDI
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1RDIH:
                  type: array
                  items:
                    properties:
                      RDIVERSION:
                        type: string
                        maxLength: 6
                        description: RDI version (SAPscript Raw Data Interface)
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      TDSPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TDFORM:
                        type: string
                        maxLength: 16
                        description: Form name
                      TDDEVICE:
                        type: string
                        maxLength: 8
                        description: 'Output device: PRINTER=Printer,SCREEN=Screen,TELEFAX=Fax Number,MAIL=Mail'
                        enum:
                        - PRINTER
                        - SCREEN
                        - TELEFAX
                        - MAIL
                      HOST:
                        type: string
                        maxLength: 64
                        description: Character field, length 64
                      BATCH:
                        type: string
                        maxLength: 1
                        description: 'Checkbox (yes or no): ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDPAGESLCT:
                        type: string
                        maxLength: 60
                        description: Pages selected for printing
                      TDCOPIES:
                        type: string
                        maxLength: 3
                        description: 'Number of Identical Copies: 001=1 printout: Original only. 2 printouts: 1 original + 1 copy'
                        enum:
                        - '001'
                      TDDEST:
                        type: string
                        maxLength: 4
                        description: 'Spool: Output device'
                      TDPRINTER:
                        type: string
                        maxLength: 8
                        description: 'Spool: Device type name'
                      TDPREVIEW:
                        type: string
                        maxLength: 1
                        description: 'Print preview: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDNOPREV:
                        type: string
                        maxLength: 1
                        description: 'No print preview: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDNOPRINT:
                        type: string
                        maxLength: 1
                        description: 'No printing from print preview: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDNEWID:
                        type: string
                        maxLength: 1
                        description: New Spool Request (Print Parameters)
                      TDDATASET:
                        type: string
                        maxLength: 6
                        description: 'Spool request: Name'
                      TDSUFFIX1:
                        type: string
                        maxLength: 4
                        description: 'Spool request: Suffix 1'
                      TDSUFFIX2:
                        type: string
                        maxLength: 12
                        description: 'Spool request: Suffix 2'
                      TDIMMED:
                        type: string
                        maxLength: 1
                        description: Print Immediately (Print Parameters)
                      TDLIFETIME:
                        type: string
                        maxLength: 1
                        description: Spool Retention Period (Print Parameters)
                      TDDELETE:
                        type: string
                        maxLength: 1
                        description: Delete After Printing (Print Parameters)
                      TDSCHEDULE:
                        type: string
                        maxLength: 3
                        description: 'Send time request: IMM=Send immediately,NIG=Send at night'
                        enum:
                        - IMM
                        - NIG
                      TDSENDDATE:
                        type: string
                        format: date
                        maxLength: 8
                        description: Requested send date
                      TDSENDTIME:
                        type: string
                        maxLength: 6
                        description: Requested send time
                      TDTELELAND:
                        type: string
                        maxLength: 3
                        description: Country Key
                      TDTELENUM:
                        type: string
                        maxLength: 30
                        description: Telecommunications partner
                      TDTITLE:
                        type: string
                        maxLength: 50
                        description: Title in dialog box
                      TDTEST:
                        type: string
                        maxLength: 1
                        description: 'Test form: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDPROGRAM:
                        type: string
                        maxLength: 40
                        description: Program Name
                      TDSCRNPOS:
                        type: string
                        maxLength: 15
                        description: Screen display position for OTF
                      TDCOVER:
                        type: string
                        maxLength: 1
                        description: 'Print: SAP cover page: ""=Do Not Print,X=Print,D=Default (Printer Setting)'
                        enum:
                        - ''
                        - X
                        - D
                      TDCOVTITLE:
                        type: string
                        maxLength: 68
                        description: Text for Cover Page (Print Parameters)
                      TDRECEIVER:
                        type: string
                        maxLength: 12
                        description: Recipient (Print Parameters)
                      TDDIVISION:
                        type: string
                        maxLength: 12
                        description: Department on Cover Page (Print Parameters)
                      TDAUTORITY:
                        type: string
                        maxLength: 12
                        description: 'Print: Authorization'
                      TDARMOD:
                        type: string
                        maxLength: 1
                        description: 'Print: Archiving mode: 1=Print only,2=Archive only,3=Print and archive'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      TDIEXIT:
                        type: string
                        maxLength: 1
                        description: 'Immediate exit after printing/faxing from print preview: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDGETOTF:
                        type: string
                        maxLength: 1
                        description: 'Return of OTF table. No printing, display, or faxing: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TDFAXUSER:
                        type: string
                        maxLength: 12
                        description: SAPoffice user name
                      LDEST:
                        type: string
                        maxLength: 30
                        description: 'Spool: Long device names'
                      E1RDI_BODY:
                        type: array
                        items:
                          properties:
                            DUMMY_BODY:
                              type: string
                              maxLength: 1
                              description: Characters
                            E1RDIS:
                              type: array
                              items:
                                properties:
                                  SNDSORT01:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT02:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT03:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT04:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT05:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT06:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT07:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT08:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT09:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  SNDSORT10:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  RCVSORT01:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  RCVSORT02:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  RCVSORT03:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  RCVSORT04:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                                  RCVSORT05:
                                    type: string
                                    maxLength: 32
                                    description: 'SAPscript: Sort criterion'
                            E1RDIC:
                              type: array
                              items:
                                properties:
                                  CTRL:
                                    type: string
                                    maxLength: 255
                                    description: Char255
                            E1RDID:
                              type: array
                              items:
                                properties:
                                  WINDOW:
                                    type: string
                                    maxLength: 8
                                    description: Window
                                  NEWMAIN:
                                    type: string
                                    maxLength: 1
                                    description: 'Checkbox (yes or no): ""=No,X=Yes'
                                    enum:
                                    - ''
                                    - X
                                  NEWELEMENT:
                                    type: string
                                    maxLength: 1
                                    description: 'Checkbox (yes or no): ""=No,X=Yes'
                                    enum:
                                    - ''
                                    - X
                                  ELEMENT:
                                    type: string
                                    maxLength: 30
                                    description: STXD form event
                                  SYMNAME:
                                    type: string
                                    maxLength: 130
                                    description: Name of a program symbol (w/o &)
                                  MORE:
                                    type: string
                                    maxLength: 1
                                    description: 'Checkbox (yes or no): ""=No,X=Yes'
                                    enum:
                                    - ''
                                    - X
                                  SYMLENGTH:
                                    type: string
                                    maxLength: 6
                                    description: Output Length
                                  SYMVALUE:
                                    type: string
                                    maxLength: 255
                                    description: 'RDI: Symbol value'
                          required:
                          - E1RDI_BODY
                    required:
                    - E1RDIH
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
