openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/CLASS_CREATE01/CLASS_CREATE:
    post:
      summary: Create class BAPI
      operationId: /idoc/CLASS_CREATE01/CLASS_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
                E1CLASS_CREATE:
                  type: array
                  items:
                    properties:
                      CLASSNUMNEW:
                        type: string
                        maxLength: 18
                        description: Class number
                      CLASSTYPENEW:
                        type: string
                        maxLength: 3
                        description: Class Type
                      CHANGENUMBER:
                        type: string
                        maxLength: 12
                        description: Change Number
                      E1BP1003_BASIC:
                        type: array
                        items:
                          properties:
                            STATUS:
                              type: string
                              maxLength: 1
                              description: Class status
                            CLASSGROUP:
                              type: string
                              maxLength: 10
                              description: Class Group
                            DEPARTMENT_VIEW:
                              type: string
                              maxLength: 10
                              description: Organizational Area
                            VALID_FROM:
                              type: string
                              format: date
                              maxLength: 8
                              description: Valid-From Date
                            VALID_TO:
                              type: string
                              format: date
                              maxLength: 8
                              description: Valid-to date
                            AUTHMAINTAIN:
                              type: string
                              maxLength: 3
                              description: Class maintenance authorization group
                            AUTHCLASSIFY:
                              type: string
                              maxLength: 3
                              description: Classification authorization group
                            AUTHSEARCH:
                              type: string
                              maxLength: 3
                              description: Authorization group for finding objects
                            SAME_VALUE_NO:
                              type: string
                              maxLength: 1
                              description: 'No Check for Same Classification: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            SAME_VALUE_W:
                              type: string
                              maxLength: 1
                              description: 'Check for Same Classification with Warning: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            SAME_VALUE_E:
                              type: string
                              maxLength: 1
                              description: 'Check for Same Classification with Error Message: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            LOCAL_CLASS:
                              type: string
                              maxLength: 1
                              description: 'Local class: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            KATALOG:
                              type: string
                              maxLength: 30
                              description: Name of External Catalog
                      E1BP1003_DOCU:
                        type: array
                        items:
                          properties:
                            DOCUMENT_NUMBER:
                              type: string
                              maxLength: 25
                              description: Document number
                            DOCUMENT_TYPE:
                              type: string
                              maxLength: 3
                              description: Document Type
                            DOCUMENT_PART:
                              type: string
                              maxLength: 3
                              description: Document part
                            DOCUMENT_VERSION:
                              type: string
                              maxLength: 2
                              description: Document version
                      E1BP1003_ADD:
                        type: array
                        items:
                          properties:
                            BOM_USAGE_OK:
                              type: string
                              maxLength: 1
                              description: 'Can Be Used in Bills of Material: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            ISOCODE_UNIT:
                              type: string
                              maxLength: 3
                              description: ISO code for unit of measurement
                            BASE_UOM:
                              type: string
                              maxLength: 3
                              description: Base Unit of Measure
                            RES_POSTYPE:
                              type: string
                              maxLength: 1
                              description: Resulting item category
                            DEPARTMENT_VIEW:
                              type: string
                              maxLength: 10
                              description: Organizational Area
                            REQ_COMPONENT:
                              type: string
                              maxLength: 1
                              description: 'Required Component: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            MULTIPLE_SELECT:
                              type: string
                              maxLength: 1
                              description: 'Multiple Selection Allowed: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1BP1003_STAND:
                        type: array
                        items:
                          properties:
                            STANDARD_NAME:
                              type: string
                              maxLength: 10
                              description: Name of standards organization
                            STANDARD_NO:
                              type: string
                              maxLength: 20
                              description: Standard Number
                            DATE_OF_ISSUE:
                              type: string
                              format: date
                              maxLength: 8
                              description: Issue date
                            DATE_OF_VERSION:
                              type: string
                              format: date
                              maxLength: 8
                              description: Version date
                            NO_OF_VERSION:
                              type: string
                              maxLength: 2
                              description: Version Number
                            TABULAR_LAYOUT:
                              type: string
                              maxLength: 20
                              description: Characteristics table
                      E1BP1003_CATCH:
                        type: array
                        items:
                          properties:
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGU_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            CATCHWORD:
                              type: string
                              maxLength: 40
                              description: Keywords
                            DELETE_FLAG:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            INSERT_BEFORE:
                              type: string
                              maxLength: 40
                              description: Keyword Before Which You Want to Insert
                      E1BP1003_LONGTEXT:
                        type: array
                        items:
                          properties:
                            TEXT_TYPE:
                              type: string
                              maxLength: 2
                              description: Type of long text
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGU_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            TEXT_DESCR:
                              type: string
                              maxLength: 40
                              description: Long Text Description
                            TEXT_FORM:
                              type: string
                              maxLength: 2
                              description: Tag column
                            TEXT_LINE:
                              type: string
                              maxLength: 132
                              description: Text Line
                            FLDELETE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1BP1003_CHARACT:
                        type: array
                        items:
                          properties:
                            NAME_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            CODE_LETTER:
                              type: string
                              maxLength: 15
                              description: Standard Code Letter
                            CHARACT_ORIGIN:
                              type: string
                              maxLength: 10
                              description: Characteristic origin
                            DEPARTMENT_VIEW:
                              type: string
                              maxLength: 10
                              description: Organizational Area
                            INSERT_BEFORE:
                              type: string
                              maxLength: 30
                              description: Name of characteristic before which you want to insert
                            DELETEVALUE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            PRINT_RELEV:
                              type: string
                              maxLength: 1
                              description: 'Print Relevant: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            SELECT_RELEV:
                              type: string
                              maxLength: 1
                              description: 'Search Relevant: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DISPLAY_RELEV:
                              type: string
                              maxLength: 1
                              description: 'Display Relevant: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            INDEX_RELEV:
                              type: string
                              maxLength: 1
                              description: 'Index Characteristic: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1BP1003_CHARACT_OVERWR:
                        type: array
                        items:
                          properties:
                            NAME_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            ENTRY_OBLIGATORY:
                              type: string
                              maxLength: 1
                              description: 'Entry Required: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            INTERVALS_ALLOWED:
                              type: string
                              maxLength: 1
                              description: 'Interval Values Allowed: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            UNFORMATED:
                              type: string
                              maxLength: 1
                              description: 'Unformatted Entry Control: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            PROP_TEMPL:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Display Template When Assigning Values: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            DISPL_VALS:
                              type: string
                              maxLength: 1
                              description: 'Display Allowed Values Defined in Characteristic: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            ADDITIONAL_VAL:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Additional Values: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            DOCUMENT_NUMBER:
                              type: string
                              maxLength: 25
                              description: Document number
                            DOCUMENT_TYPE:
                              type: string
                              maxLength: 3
                              description: Document Type
                            DOCUMENT_PART:
                              type: string
                              maxLength: 3
                              description: Document part
                            DOCUMENT_VERSION:
                              type: string
                              maxLength: 2
                              description: Document version
                            FLRESET_AL:
                              type: string
                              maxLength: 1
                              description: 'Reset overwrite for class/variant table: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1BP1003_CHARACT_VALUE_OVR:
                        type: array
                        items:
                          properties:
                            NAME_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            VALUE_BEF:
                              type: string
                              maxLength: 30
                              description: Value Before Which You Want to Insert
                            CHAR_VALUE:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            DEFAULT_FLAG:
                              type: string
                              maxLength: 1
                              description: 'Default value: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DOCUMENT_NUMBER:
                              type: string
                              maxLength: 25
                              description: Document number
                            DOCUMENT_TYPE:
                              type: string
                              maxLength: 3
                              description: Document Type
                            DOCUMENT_PART:
                              type: string
                              maxLength: 3
                              description: Document part
                            DOCUMENT_VERSION:
                              type: string
                              maxLength: 2
                              description: Document version
                            FLDELETE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            CHAR_VALUE_HIGH:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            FLRESET_AL:
                              type: string
                              maxLength: 1
                              description: 'Reset overwrite for class/variant table: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1BP1003_CHARVALTEXT:
                        type: array
                        items:
                          properties:
                            CHARACT:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            VALUE:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            VALDESCR:
                              type: string
                              maxLength: 30
                              description: Characteristic value description
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGU_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            FLDELETE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                    required:
                    - E1CLASS_CREATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
