openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CLASS_READ:
    post:
      tags:
      - CLBP
      summary: 'BAPI: Read Class Information'
      operationId: /rfc/BAPI_CLASS_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSNUM:
                  type: string
                  maxLength: 18
                  description: Class
                CLASSTYPE:
                  type: string
                  maxLength: 3
                  description: Class Type
                KEYDATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Valid-From Date
                LANGUINT:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language Key in SAP Format
                LANGUISO:
                  type: string
                  maxLength: 2
                  description: Language Key in ISO Format
                CLASSCHARACTERISTICS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME_CHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic Name
                      DESCR:
                        type: string
                        maxLength: 30
                        description: Characteristic description
                      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
                      PRINT_RELEV:
                        type: string
                        maxLength: 1
                        description: 'Print Relevant  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SELECT_RELEV:
                        type: string
                        maxLength: 1
                        description: 'Search Relevant  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DISPLAY_RELEV:
                        type: string
                        maxLength: 1
                        description: 'Display Relevant  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ENTRY_OBLIGATORY:
                        type: string
                        maxLength: 1
                        description: 'Entry Required  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      INTERVALS_ALLOWED:
                        type: string
                        maxLength: 1
                        description: 'Interval Values Allowed  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      UNFORMATED:
                        type: string
                        maxLength: 1
                        description: 'Unformatted Entry Control  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      PROP_TEMPL:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Display Template When Assigning Values  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      DISPL_VALS:
                        type: string
                        maxLength: 1
                        description: 'Display Allowed Values Defined in Characteristic  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
                      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
                      CLASS_NUM:
                        type: string
                        maxLength: 18
                        description: Class number
                      CLASS_TYPE:
                        type: string
                        maxLength: 3
                        description: Class Type
                      CH_OVRWRT:
                        type: string
                        maxLength: 1
                        description: 'Characteristic is Overwritten  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      VAL_OVRWRT:
                        type: string
                        maxLength: 1
                        description: 'Characteristic Values are Overwritten  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NO_DISPLAY:
                        type: string
                        maxLength: 1
                        description: 'Characteristic Not to be Displayed  enumValues: *=Reference indicator,""=No,X=Yes'
                        enum:
                        - '*'
                        - ''
                        - X
                      CHAR_INHERITED:
                        type: string
                        maxLength: 1
                        description: 'Indicator: characteristic is inherited'
                CLASSCHARACTVALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME_CHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic Name
                      CHAR_VALUE:
                        type: string
                        maxLength: 30
                        description: Characteristic Value
                      DEFAULT_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Default value  enumValues: ""=No,X=Yes'
                        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
                      DESCR_CVAL:
                        type: string
                        maxLength: 30
                        description: Characteristic value description
                      VAL_SORT:
                        type: integer
                        format: int64
                        description: Int counter
                      VALH_PARNT:
                        type: integer
                        format: int64
                        description: Int. counter for value hierarchy
                CLASSDESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    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
                CLASSLONGTEXTS:
                  type: array
                  items:
                    type: object
                    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
              required:
              - CLASSNUM
              - CLASSTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CLASSADDITIONAL:
                    type: object
                    properties:
                      BOM_USAGE_OK:
                        type: string
                        maxLength: 1
                        description: 'Can Be Used in Bills of Material  enumValues: ""=No,X=Yes'
                        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  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      MULTIPLE_SELECT:
                        type: string
                        maxLength: 1
                        description: 'Multiple Selection Allowed  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                  CLASSBASICDATA:
                    type: object
                    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
                        description: Valid-From Date
                      VALID_TO:
                        type: string
                        format: date
                        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  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SAME_VALUE_W:
                        type: string
                        maxLength: 1
                        description: 'Check for Same Classification with Warning  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SAME_VALUE_E:
                        type: string
                        maxLength: 1
                        description: 'Check for Same Classification with Error Message  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LOCAL_CLASS:
                        type: string
                        maxLength: 1
                        description: 'Local class  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      KATALOG:
                        type: string
                        maxLength: 30
                        description: Name of External Catalog
                  CLASSDOCUMENT:
                    type: object
                    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
                  CLASSSTANDARD:
                    type: object
                    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
                        description: Issue date
                      DATE_OF_VERSION:
                        type: string
                        format: date
                        description: Version date
                      NO_OF_VERSION:
                        type: integer
                        format: int64
                        description: Version Number
                      TABULAR_LAYOUT:
                        type: string
                        maxLength: 20
                        description: Characteristics table
                  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
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  CLASSCHARACTERISTICS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME_CHAR:
                          type: string
                          maxLength: 30
                          description: Characteristic Name
                        DESCR:
                          type: string
                          maxLength: 30
                          description: Characteristic description
                        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
                        PRINT_RELEV:
                          type: string
                          maxLength: 1
                          description: 'Print Relevant  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        SELECT_RELEV:
                          type: string
                          maxLength: 1
                          description: 'Search Relevant  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        DISPLAY_RELEV:
                          type: string
                          maxLength: 1
                          description: 'Display Relevant  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        ENTRY_OBLIGATORY:
                          type: string
                          maxLength: 1
                          description: 'Entry Required  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        INTERVALS_ALLOWED:
                          type: string
                          maxLength: 1
                          description: 'Interval Values Allowed  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        UNFORMATED:
                          type: string
                          maxLength: 1
                          description: 'Unformatted Entry Control  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        PROP_TEMPL:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Display Template When Assigning Values  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        DISPL_VALS:
                          type: string
                          maxLength: 1
                          description: 'Display Allowed Values Defined in Characteristic  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
                        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
                        CLASS_NUM:
                          type: string
                          maxLength: 18
                          description: Class number
                        CLASS_TYPE:
                          type: string
                          maxLength: 3
                          description: Class Type
                        CH_OVRWRT:
                          type: string
                          maxLength: 1
                          description: 'Characteristic is Overwritten  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        VAL_OVRWRT:
                          type: string
                          maxLength: 1
                          description: 'Characteristic Values are Overwritten  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NO_DISPLAY:
                          type: string
                          maxLength: 1
                          description: 'Characteristic Not to be Displayed  enumValues: *=Reference indicator,""=No,X=Yes'
                          enum:
                          - '*'
                          - ''
                          - X
                        CHAR_INHERITED:
                          type: string
                          maxLength: 1
                          description: 'Indicator: characteristic is inherited'
                  CLASSCHARACTVALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME_CHAR:
                          type: string
                          maxLength: 30
                          description: Characteristic Name
                        CHAR_VALUE:
                          type: string
                          maxLength: 30
                          description: Characteristic Value
                        DEFAULT_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Default value  enumValues: ""=No,X=Yes'
                          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
                        DESCR_CVAL:
                          type: string
                          maxLength: 30
                          description: Characteristic value description
                        VAL_SORT:
                          type: integer
                          format: int64
                          description: Int counter
                        VALH_PARNT:
                          type: integer
                          format: int64
                          description: Int. counter for value hierarchy
                  CLASSDESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      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
                  CLASSLONGTEXTS:
                    type: array
                    items:
                      type: object
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
