openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CLASS_GET_CLASSIFICATIONS:
    post:
      tags:
      - CLBP
      summary: Read Values Assigned to Objects in Class
      operationId: /rfc/BAPI_CLASS_GET_CLASSIFICATIONS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHARACTS_OF_CLASS_ONLY:
                  type: object
                  properties:
                    BAPIFLAG:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                CLASSNUM:
                  type: string
                  maxLength: 18
                  description: External Class Number
                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
                CLASS_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_KEY:
                        type: string
                        maxLength: 50
                        description: Key of object to be classified
                      OBJECT_TYPE:
                        type: string
                        maxLength: 30
                        description: Name of database table for object
                OBJECT_CLASSIFICATION:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_KEY:
                        type: string
                        maxLength: 50
                        description: Key of object to be classified
                      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 from
                      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: integer
                        format: int64
                        description: Value dependency
                      UNIT:
                        type: string
                        maxLength: 3
                        description: Unit of measurement
                      BASE_UOM_ISO:
                        type: string
                        maxLength: 3
                        description: Base unit of measure in ISO code
                      UNIT_T_EXT:
                        type: string
                        maxLength: 6
                        description: External Unit of Measurement in Technical Format (6-Char.)
                      CURRENCY:
                        type: string
                        maxLength: 5
                        description: Currency Key
                      CURRENCY_ISO:
                        type: string
                        maxLength: 3
                        description: ISO Currency Code
                      OBJECT_TYPE:
                        type: string
                        maxLength: 30
                        description: Name of database table for object
              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
                  CLASS_OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_KEY:
                          type: string
                          maxLength: 50
                          description: Key of object to be classified
                        OBJECT_TYPE:
                          type: string
                          maxLength: 30
                          description: Name of database table for object
                  OBJECT_CLASSIFICATION:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_KEY:
                          type: string
                          maxLength: 50
                          description: Key of object to be classified
                        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 from
                        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: integer
                          format: int64
                          description: Value dependency
                        UNIT:
                          type: string
                          maxLength: 3
                          description: Unit of measurement
                        BASE_UOM_ISO:
                          type: string
                          maxLength: 3
                          description: Base unit of measure in ISO code
                        UNIT_T_EXT:
                          type: string
                          maxLength: 6
                          description: External Unit of Measurement in Technical Format (6-Char.)
                        CURRENCY:
                          type: string
                          maxLength: 5
                          description: Currency Key
                        CURRENCY_ISO:
                          type: string
                          maxLength: 3
                          description: ISO Currency Code
                        OBJECT_TYPE:
                          type: string
                          maxLength: 30
                          description: Name of database table for object
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
