openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OSP/BW_REPORT_GET_VARIABLES:
    post:
      tags:
      - /OSP/BW_REPORT
      summary: Get the variables metadata of BW report
      operationId: /rfc/OSP/BW_REPORT_GET_VARIABLES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_REPORT_NAME:
                  type: string
                  maxLength: 40
                  description: BW report object Id
                IV_REPORT_TYPE:
                  type: string
                  maxLength: 2
                  description: BW report object type
              required:
              - IV_REPORT_NAME
              - IV_REPORT_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN:
                    type: array
                    items:
                      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
                  ET_VARIABLE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        VARI_NAME:
                          type: string
                          maxLength: 8
                          description: Name (ID) of a BW Report Variable
                        VARI_PAR_SEL:
                          type: string
                          maxLength: 1
                          description: 'Parameter Selection: Single Value, Interval, Selection Opt.'
                        VARI_TEXT:
                          type: string
                          maxLength: 60
                          description: Long Description
                        ENTRY_TYPE:
                          type: integer
                          format: int64
                          description: Variable Entry type (Mandatory, Optional...)
                        DATA_TYPE:
                          type: string
                          maxLength: 4
                          description: Data Type in ABAP Dictionary
                        OUTPUT_LEN:
                          type: integer
                          format: int64
                          description: Output Length
                        ABAP_TYPE:
                          type: string
                          maxLength: 1
                          description: Selection field type
                        OBJ_NAME:
                          type: string
                          maxLength: 30
                          description: Object Name
                        INT_LEN:
                          type: integer
                          format: int64
                          description: Internal Length
                        P_DECIMALS:
                          type: integer
                          format: int64
                          description: Decimal Places
                        P_SIGN:
                          type: string
                          maxLength: 1
                          description: Negatives
                        CASE_SENSE:
                          type: string
                          maxLength: 1
                          description: 'ABAP: Is upper/lower case allowed in selection?'
                        CHECK_BOX:
                          type: string
                          maxLength: 1
                          description: Checkbox
                        LOWVAL:
                          type: string
                          maxLength: 60
                          description: 'Dim: Field for a User-Defined Characteristic Value'
                        HIGHVAL:
                          type: string
                          maxLength: 60
                          description: 'Dim: Field for a User-Defined Characteristic Value'
                        SIGN:
                          type: string
                          maxLength: 1
                          description: SIGN field in creation of SELECT-OPTIONS tables
                        OPT:
                          type: string
                          maxLength: 2
                          description: Operator in Select Options and other Expressions
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
