openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CAPI_CHARACT_CREATE:
    post:
      tags:
      - CAPI
      summary: 'API: Create Characteristic'
      operationId: /rfc/CAPI_CHARACT_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHANGE_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Change Number
                CHARACT:
                  type: string
                  maxLength: 30
                  description: Characteristic Name
                CHARACT_GROUP:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: Chars Group
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                DATATYPE:
                  type: string
                  maxLength: 18
                  description: Data Type
                DECIMAL_PLACES:
                  type: integer
                  format: int32
                  default: 0
                  description: Number of Decimal Places
                DOCUMENT:
                  type: string
                  default: ' '
                  maxLength: 25
                  description: Document
                DOCUMENT_PART:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Document Part
                DOCUMENT_TYPE:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Document Type
                DOCUMENT_VERSION:
                  type: string
                  default: ' '
                  maxLength: 2
                  description: Document Version
                EDIT_FORMAT:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Template
                ENTRY_REQUIRED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Entry Required
                EXPONENT:
                  type: integer
                  format: int32
                  default: 0
                  description: Exponent
                EXPONENT_DISPLAY_FORMAT:
                  type: integer
                  format: int64
                  description: Exponent Display Format (0,1,2,3)
                F_WITH_INPUT_CHECK:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'Control: With/Without Checks'
                INTERVAL_VALS_ALLOWED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Intervals Allowed
                KEY_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Date
                LOWERCASE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Case Sensitive
                MULTIPLE_VALUES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Multiple Values Allowed
                NEGATIVE_VALS_ALLOWED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Negative Values Allowed
                NUMBER_OF_CHARS:
                  type: integer
                  format: int32
                  description: Number of Characters
                PROPOSE_EDIT_FORMAT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Propose Template
                SELECTION_CHOICE:
                  type: string
                  default: ' '
                  maxLength: 8
                  description: Selected Set
                STATUS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Status
                UNFORMATTED_ENTRY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Unformatted Entry
                UNIT:
                  type: string
                  default: ' '
                  maxLength: 6
                  description: Unit
                VALUE_ASSIGNMENT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Display Allowed Values During Characteristic Value Assignment
                E_APICABNT:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ATBEZ:
                        type: string
                        maxLength: 30
                        description: Characteristic description
                      ATUE1:
                        type: string
                        maxLength: 30
                        description: First Line of Heading
                      ATUE2:
                        type: string
                        maxLength: 30
                        description: Second line of heading
                E_APICAWN:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ATWRT:
                        type: string
                        maxLength: 30
                        description: Characteristic Value
                      ATSTD:
                        type: string
                        maxLength: 1
                        description: 'Default value  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ATWTB:
                        type: string
                        maxLength: 30
                        description: Characteristic value description
                      DOKAR:
                        type: string
                        maxLength: 3
                        description: Document Type
                      DOKNR:
                        type: string
                        maxLength: 25
                        description: Document number
                      DOKVR:
                        type: string
                        maxLength: 2
                        description: Document version
                      DOKTL:
                        type: string
                        maxLength: 3
                        description: Document part
                E_APITCME:
                  type: array
                  items:
                    type: object
                    properties:
                      KLART:
                        type: string
                        maxLength: 3
                        description: Class Type
              required:
              - CHARACT
              - DATATYPE
              - NUMBER_OF_CHARS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_APICABNT:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ATBEZ:
                          type: string
                          maxLength: 30
                          description: Characteristic description
                        ATUE1:
                          type: string
                          maxLength: 30
                          description: First Line of Heading
                        ATUE2:
                          type: string
                          maxLength: 30
                          description: Second line of heading
                  E_APICAWN:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ATWRT:
                          type: string
                          maxLength: 30
                          description: Characteristic Value
                        ATSTD:
                          type: string
                          maxLength: 1
                          description: 'Default value  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        ATWTB:
                          type: string
                          maxLength: 30
                          description: Characteristic value description
                        DOKAR:
                          type: string
                          maxLength: 3
                          description: Document Type
                        DOKNR:
                          type: string
                          maxLength: 25
                          description: Document number
                        DOKVR:
                          type: string
                          maxLength: 2
                          description: Document version
                        DOKTL:
                          type: string
                          maxLength: 3
                          description: Document part
                  E_APITCME:
                    type: array
                    items:
                      type: object
                      properties:
                        KLART:
                          type: string
                          maxLength: 3
                          description: Class Type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
