openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/DXPROJECT_CREATE01/DXPROJECT_CREATE:
    post:
      summary: Create Method of Business Object DXPROJECT
      operationId: /idoc/DXPROJECT_CREATE01/DXPROJECT_CREATE
      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
                E1DXPROJ:
                  type: array
                  items:
                    properties:
                      PROJECTID:
                        type: string
                        maxLength: 15
                        description: Data transfer project
                      E1BP_DXPRT:
                        type: array
                        items:
                          properties:
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            TEXT:
                              type: string
                              maxLength: 80
                              description: Description
                      E1BP_DXSUB:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            OBJECTTYPE:
                              type: string
                              maxLength: 10
                              description: Object type
                      E1BP_DXSUT:
                        type: array
                        items:
                          properties:
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            TEXT:
                              type: string
                              maxLength: 80
                              description: Description
                      E1BP_DXRUD:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            ACTUALRUN:
                              type: string
                              maxLength: 5
                              description: Data Transfer Run
                      E1BP_DXRUT:
                        type: array
                        items:
                          properties:
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TEXT:
                              type: string
                              maxLength: 80
                              description: Description
                      E1BP_DXTAS:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            TASKTYPE:
                              type: string
                              maxLength: 3
                              description: 'Task type: EXT=Extract data,MAP=Convert data,PUR=Clean data,CHK=Check file,SPL=File Split,MRG=File Merge,LOA=Load Data,AUD=Check data,MSC=Various'
                              enum:
                              - EXT
                              - MAP
                              - PUR
                              - CHK
                              - SPL
                              - MRG
                              - LOA
                              - AUD
                              - MSC
                            PROGTYPE:
                              type: string
                              maxLength: 4
                              description: Program type
                            PRETASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                      E1BP_DXTAT:
                        type: array
                        items:
                          properties:
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            TEXT:
                              type: string
                              maxLength: 80
                              description: Description
                      E1BP_DXAT2:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            LSMPROJECT:
                              type: string
                              maxLength: 10
                              description: LSMW Project
                            LSMSUBPROJ:
                              type: string
                              maxLength: 10
                              description: LSMW Subproject
                            LSMOBJECT:
                              type: string
                              maxLength: 10
                              description: LSMW Object
                      E1BP_DXATT:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            PCKSIZ:
                              type: string
                              maxLength: 4
                              description: Number of objects per LUW
                            MAXERROR:
                              type: string
                              maxLength: 5
                              description: Maximum Number of Errors Before Data Transfer is Terminated
                            XDBIDOC:
                              type: string
                              maxLength: 1
                              description: 'If errors occur generate IDocs in database?: ""=Blank,.=Radio button,X=Selection'
                              enum:
                              - ''
                              - .
                              - X
                            XPRODRUN:
                              type: string
                              maxLength: 1
                              description: 'Delete Input Files: ""=Blank,.=Radio button,X=Selection'
                              enum:
                              - ''
                              - .
                              - X
                            TASKTYPE:
                              type: string
                              maxLength: 3
                              description: 'Task type: EXT=Extract data,MAP=Convert data,PUR=Clean data,CHK=Check file,SPL=File Split,MRG=File Merge,LOA=Load Data,AUD=Check data,MSC=Various'
                              enum:
                              - EXT
                              - MAP
                              - PUR
                              - CHK
                              - SPL
                              - MRG
                              - LOA
                              - AUD
                              - MSC
                            PROGTYPE:
                              type: string
                              maxLength: 4
                              description: Program type
                            OBJECTTYPE:
                              type: string
                              maxLength: 10
                              description: Object type
                            PROGNAME:
                              type: string
                              maxLength: 40
                              description: Data transfer program/method
                            PROGVARI:
                              type: string
                              maxLength: 14
                              description: Name of variant within a step
                            RETSTATUS:
                              type: string
                              maxLength: 1
                              description: 'Status of data transfer run: 0=Task not completed, restart after cause analysed,1=Task completed without errors,2=Task completed with errors, restart after errors analysed,3=Task ended with errors, restart not possible,4=Task completed manually,A=Task not completed, restart after cause analysed,X=Run finished'
                              enum:
                              - '0'
                              - '1'
                              - '2'
                              - '3'
                              - '4'
                              - A
                              - X
                            SERVERGRP:
                              type: string
                              maxLength: 20
                              description: Logon/Server Group Name
                            SHORTPROT:
                              type: string
                              maxLength: 1
                              description: 'Short log: ""=Blank,.=Radio button,X=Selection'
                              enum:
                              - ''
                              - .
                              - X
                      E1BP_DXIFI:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            FILENAME:
                              type: string
                              maxLength: 128
                              description: File name
                            FILETYPE:
                              type: string
                              maxLength: 1
                              description: 'File type (L=logical, P=physical): L=Logical file name,P=Physical file name'
                              enum:
                              - L
                              - P
                      E1BP_DXOFI:
                        type: array
                        items:
                          properties:
                            PROJECT:
                              type: string
                              maxLength: 15
                              description: Data transfer project
                            SUBPROJECT:
                              type: string
                              maxLength: 15
                              description: Data Transfer Subproject
                            RUNDEF:
                              type: string
                              maxLength: 15
                              description: Data Transfer - Run Definition
                            TASK:
                              type: string
                              maxLength: 15
                              description: Data transfer task
                            FILENAME:
                              type: string
                              maxLength: 128
                              description: File name
                            FILETYPE:
                              type: string
                              maxLength: 1
                              description: 'File type (L=logical, P=physical): L=Logical file name,P=Physical file name'
                              enum:
                              - L
                              - P
                    required:
                    - E1DXPROJ
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
