openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CLASS_GET_CHARACTERISTICS:
    post:
      tags:
      - CLBP
      summary: Import Characteristics and Allowed Values for Class
      operationId: /rfc/BAPI_CLASS_GET_CHARACTERISTICS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSNUM:
                  type: string
                  maxLength: 18
                  description: Class
                CLASSTYPE:
                  type: string
                  maxLength: 3
                  description: Class Type
                KEY_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Validity Time
                LANGU_INT:
                  type: string
                  maxLength: 1
                  description: Internal Language Key
                LANGU_ISO:
                  type: string
                  maxLength: 2
                  description: ISO Language Key
                WITH_VALUES:
                  type: string
                  default: X
                  maxLength: 1
                  description: Find Allowed Values
                CHARACTERISTICS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME_CHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic Name
                      DESCR_CHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic description
                      ENTRY_OBLIGATORY:
                        type: string
                        maxLength: 1
                        description: 'Entry Required  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      ADDITIONAL_VAL:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Additional Values  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      UNIT:
                        type: string
                        maxLength: 3
                        description: Unit of measurement
                      UNIT_T_EXT:
                        type: string
                        maxLength: 6
                        description: External Unit of Measurement in Technical Format (6-Char.)
                      BASE_UOM_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
                      DATA_TYPE:
                        type: string
                        maxLength: 4
                        description: 'Data type of characteristic  enumValues: DATE=Date Format,CHAR=Character Format,UDEF=User-Defined Data Type,NUM=Numeric Format,TIME=Time Format,CURR=Currency Format'
                        enum:
                        - DATE
                        - CHAR
                        - UDEF
                        - NUM
                        - TIME
                        - CURR
                      NUMBER_DIGITS:
                        type: integer
                        format: int32
                        description: Number of Characters
                      NUMBER_DECIMALS:
                        type: integer
                        format: int32
                        description: Number of Decimal Places
                      TEMPLATE:
                        type: string
                        maxLength: 30
                        description: Value with template
                      DIN_KEY:
                        type: string
                        maxLength: 3
                        description: Code letter
                      DEPARTMENT_VIEW:
                        type: string
                        maxLength: 10
                        description: Organizational Area
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Value with Plus or Minus Sign  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SINGLE_VALUE:
                        type: string
                        maxLength: 1
                        description: 'Single value  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      INTERVALS_ALLOWED:
                        type: string
                        maxLength: 1
                        description: 'Interval Values Allowed  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      CASE_SENSITIVE:
                        type: string
                        maxLength: 1
                        description: 'Case Sensitive  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      OBJECT_TABLE:
                        type: string
                        maxLength: 30
                        description: Table Name
                      TABLE_FIELD:
                        type: string
                        maxLength: 30
                        description: Field Name
                      CHAR_INHERITED:
                        type: string
                        maxLength: 1
                        description: 'Indicator: characteristic is inherited'
                CHAR_VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME_CHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic Name
                      CHAR_VALUE:
                        type: string
                        maxLength: 30
                        description: Characteristic Value
                      DESCR_CVAL:
                        type: string
                        maxLength: 30
                        description: Characteristic value description
                      NUM_VAL_FM:
                        type: number
                        description: Internal floating point from
                      NUM_VAL_TO:
                        type: number
                        description: Internal floating point value to
                      CURR_VAL_FM:
                        type: integer
                        format: int64
                        description: Currency amount in BAPI interfaces
                      CURR_VAL_TO:
                        type: integer
                        format: int64
                        description: Currency amount in BAPI interfaces
                      VAL_RELATN:
                        type: string
                        maxLength: 1
                        description: Code for value dependency
                      CHAR_VALUE_HIGH:
                        type: string
                        maxLength: 30
                        description: Characteristic Value
              required:
              - CLASSNUM
              - CLASSTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  CHARACTERISTICS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME_CHAR:
                          type: string
                          maxLength: 30
                          description: Characteristic Name
                        DESCR_CHAR:
                          type: string
                          maxLength: 30
                          description: Characteristic description
                        ENTRY_OBLIGATORY:
                          type: string
                          maxLength: 1
                          description: 'Entry Required  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        ADDITIONAL_VAL:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Additional Values  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        UNIT:
                          type: string
                          maxLength: 3
                          description: Unit of measurement
                        UNIT_T_EXT:
                          type: string
                          maxLength: 6
                          description: External Unit of Measurement in Technical Format (6-Char.)
                        BASE_UOM_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
                        DATA_TYPE:
                          type: string
                          maxLength: 4
                          description: 'Data type of characteristic  enumValues: DATE=Date Format,CHAR=Character Format,UDEF=User-Defined Data Type,NUM=Numeric Format,TIME=Time Format,CURR=Currency Format'
                          enum:
                          - DATE
                          - CHAR
                          - UDEF
                          - NUM
                          - TIME
                          - CURR
                        NUMBER_DIGITS:
                          type: integer
                          format: int32
                          description: Number of Characters
                        NUMBER_DECIMALS:
                          type: integer
                          format: int32
                          description: Number of Decimal Places
                        TEMPLATE:
                          type: string
                          maxLength: 30
                          description: Value with template
                        DIN_KEY:
                          type: string
                          maxLength: 3
                          description: Code letter
                        DEPARTMENT_VIEW:
                          type: string
                          maxLength: 10
                          description: Organizational Area
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Value with Plus or Minus Sign  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        SINGLE_VALUE:
                          type: string
                          maxLength: 1
                          description: 'Single value  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        INTERVALS_ALLOWED:
                          type: string
                          maxLength: 1
                          description: 'Interval Values Allowed  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        CASE_SENSITIVE:
                          type: string
                          maxLength: 1
                          description: 'Case Sensitive  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        OBJECT_TABLE:
                          type: string
                          maxLength: 30
                          description: Table Name
                        TABLE_FIELD:
                          type: string
                          maxLength: 30
                          description: Field Name
                        CHAR_INHERITED:
                          type: string
                          maxLength: 1
                          description: 'Indicator: characteristic is inherited'
                  CHAR_VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME_CHAR:
                          type: string
                          maxLength: 30
                          description: Characteristic Name
                        CHAR_VALUE:
                          type: string
                          maxLength: 30
                          description: Characteristic Value
                        DESCR_CVAL:
                          type: string
                          maxLength: 30
                          description: Characteristic value description
                        NUM_VAL_FM:
                          type: number
                          description: Internal floating point from
                        NUM_VAL_TO:
                          type: number
                          description: Internal floating point value to
                        CURR_VAL_FM:
                          type: integer
                          format: int64
                          description: Currency amount in BAPI interfaces
                        CURR_VAL_TO:
                          type: integer
                          format: int64
                          description: Currency amount in BAPI interfaces
                        VAL_RELATN:
                          type: string
                          maxLength: 1
                          description: Code for value dependency
                        CHAR_VALUE_HIGH:
                          type: string
                          maxLength: 30
                          description: Characteristic Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
