openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/CHARACTERISTIC_CREATE01/CHARACTERISTIC_CREATE:
    post:
      summary: 'BAPI characteristics: Create'
      operationId: /idoc/CHARACTERISTIC_CREATE01/CHARACTERISTIC_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
                E1CHARACTERISTIC_CREATE:
                  type: array
                  items:
                    properties:
                      CHANGENUMBER:
                        type: string
                        maxLength: 12
                        description: Change Number
                      KEYDATE:
                        type: string
                        format: date
                        maxLength: 8
                        description: Valid On
                      E1BPCHARACTDETAIL:
                        type: array
                        items:
                          properties:
                            CHARACT_NAME:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            DATA_TYPE:
                              type: string
                              maxLength: 18
                              description: Data Type
                            LENGTH:
                              type: string
                              maxLength: 2
                              description: Number of Characters (Figures)
                            DECIMALS:
                              type: string
                              maxLength: 2
                              description: Decimal Places
                            CASE_SENSITIV:
                              type: string
                              maxLength: 1
                              description: 'Case Sensitive: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            EXPONENT_TYPE:
                              type: string
                              maxLength: 1
                              description: 'Exponent Display Format: 0=No exponent,1=Standard,2=Exponent entered,3=Scientific exponent'
                              enum:
                              - '0'
                              - '1'
                              - '2'
                              - '3'
                            EXPONENT:
                              type: integer
                              format: int32
                              maxLength: 6
                              description: Exponent display
                            TEMPLATE:
                              type: string
                              maxLength: 30
                              description: Value with template
                            WITH_SIGN:
                              type: string
                              maxLength: 1
                              description: 'Case Sensitive: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            UNIT_OF_MEASUREMENT:
                              type: string
                              maxLength: 3
                              description: Base Unit of Measure
                            UNIT_OF_MEASUREMENT_ISO:
                              type: string
                              maxLength: 3
                              description: Base unit of measure in ISO code
                            CURRENCY:
                              type: string
                              maxLength: 5
                              description: Currency Key
                            CURRENCY_ISO:
                              type: string
                              maxLength: 3
                              description: ISO currency code
                            STATUS:
                              type: string
                              maxLength: 1
                              description: Status of a characteristic
                            CHARACT_GROUP:
                              type: string
                              maxLength: 10
                              description: Chars Group
                            VALUE_ASSIGNMENT:
                              type: string
                              maxLength: 1
                              description: 'Value Assignment: Single-Value, Multiple-Value, Restrictable'
                            NO_ENTRY:
                              type: string
                              maxLength: 1
                              description: 'No Entry Can be Made for Characteristic: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            NO_DISPLAY:
                              type: string
                              maxLength: 1
                              description: 'Characteristic Not to be Displayed: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            ENTRY_REQUIRED:
                              type: string
                              maxLength: 1
                              description: 'Entry Required: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            INTERVAL_ALLOWED:
                              type: string
                              maxLength: 1
                              description: 'Interval Values Allowed: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            SHOW_TEMPLATE:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Display Template When Assigning Values: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            DISPLAY_VALUES:
                              type: string
                              maxLength: 1
                              description: 'Display Allowed Values Defined in Characteristic: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            ADDITIONAL_VALUES:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Additional Values: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            DOCUMENT_NO:
                              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
                            CHECK_TABLE:
                              type: string
                              maxLength: 30
                              description: Check table
                            CHECK_FUNCTION:
                              type: string
                              maxLength: 30
                              description: Function Module for Checking Values
                            PLANT:
                              type: string
                              maxLength: 4
                              description: Plant
                            SELECTED_SET:
                              type: string
                              maxLength: 8
                              description: Selected Set
                            ADT_CLASS:
                              type: string
                              maxLength: 18
                              description: Class number
                            ADT_CLASS_TYPE:
                              type: string
                              maxLength: 3
                              description: Class Type
                            AGGREGATING:
                              type: string
                              maxLength: 1
                              description: 'Aggregating characteristic: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            BALANCING:
                              type: string
                              maxLength: 1
                              description: 'Balance characteristic: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            INPUT_REQUESTED_CONF:
                              type: string
                              maxLength: 1
                              description: 'Entry Required in Configuration: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                      E1BPCHARACTDESCR:
                        type: array
                        items:
                          properties:
                            LANGUAGE_INT:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGUAGE_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            DESCRIPTION:
                              type: string
                              maxLength: 30
                              description: Characteristic description
                            HEADER1:
                              type: string
                              maxLength: 30
                              description: First Line of Heading
                            HEADER2:
                              type: string
                              maxLength: 30
                              description: Second line of heading
                      E1BPCHARACTVALUESNUM:
                        type: array
                        items:
                          properties:
                            VALUE_FROM:
                              type: number
                              maxLength: 24
                              description: Internal floating point from
                            VALUE_TO:
                              type: number
                              maxLength: 24
                              description: Internal floating point value to
                            VALUE_RELATION:
                              type: string
                              maxLength: 1
                              description: Code for value dependency
                            UNIT_FROM:
                              type: string
                              maxLength: 3
                              description: Base Unit of Measure
                            UNIT_TO:
                              type: string
                              maxLength: 3
                              description: Base Unit of Measure
                            UNIT_FROM_ISO:
                              type: string
                              maxLength: 3
                              description: Base unit of measure in ISO code
                            UNIT_TO_ISO:
                              type: string
                              maxLength: 3
                              description: Base unit of measure in ISO code
                            DEFAULT_VALUE:
                              type: string
                              maxLength: 1
                              description: 'Default value: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DOCUMENT_NO:
                              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
                      E1BPCHARACTVALUESCHAR:
                        type: array
                        items:
                          properties:
                            VALUE_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            VALUE_CHAR_HIGH:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            DEFAULT_VALUE:
                              type: string
                              maxLength: 1
                              description: 'Default value: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DOCUMENT_NO:
                              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
                      E1BPCHARACTVALUESCURR:
                        type: array
                        items:
                          properties:
                            VALUE_FROM:
                              type: number
                              maxLength: 24
                              description: Internal floating point from
                            VALUE_TO:
                              type: number
                              maxLength: 24
                              description: Internal floating point value to
                            VALUE_RELATION:
                              type: string
                              maxLength: 1
                              description: Code for value dependency
                            CURRENCY_FROM:
                              type: string
                              maxLength: 5
                              description: Currency Key
                            CURRENCY_TO:
                              type: string
                              maxLength: 5
                              description: Currency Key
                            CURRENCY_FROM_ISO:
                              type: string
                              maxLength: 3
                              description: ISO currency code
                            CURRENCY_TO_ISO:
                              type: string
                              maxLength: 3
                              description: ISO currency code
                            DEFAULT_VALUE:
                              type: string
                              maxLength: 1
                              description: 'Default value: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DOCUMENT_NO:
                              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
                      E1BPCHARACTVALUESDESCR:
                        type: array
                        items:
                          properties:
                            LANGUAGE_INT:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGUAGE_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            VALUE_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            DESCRIPTION:
                              type: string
                              maxLength: 30
                              description: Characteristic value description
                      E1BPCHARACTREFERENCES:
                        type: array
                        items:
                          properties:
                            REFERENCE_TABLE:
                              type: string
                              maxLength: 30
                              description: Table Name
                            REFERENCE_FIELD:
                              type: string
                              maxLength: 30
                              description: Field Name
                      E1BPCHARACTRESTRICTIONS:
                        type: array
                        items:
                          properties:
                            CLASS_TYPE:
                              type: string
                              maxLength: 3
                              description: Class Type
                    required:
                    - E1CHARACTERISTIC_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.
