openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSRD_MS_GET_VARIABLE_DEF:
    post:
      tags:
      - RSRD_MS_VARIABLES
      operationId: /rfc/RSRD_MS_GET_VARIABLE_DEF
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_OBJECT_ID:
                  type: string
                  maxLength: 40
                I_OBJECT_TYPE:
                  type: string
                  maxLength: 2
                E_T_MESSAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      TEXT:
                        type: string
                        maxLength: 160
                        description: Message Test for RFC Error Message
              required:
              - I_OBJECT_ID
              - I_OBJECT_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_HANDLE:
                    type: string
                    maxLength: 32
                  E_SUBRC:
                    type: integer
                    format: int32
                  E_T_VARIABLE_DEFINITION:
                    type: array
                    items:
                      type: object
                      properties:
                        VAR_ID:
                          type: object
                          properties:
                            VNAM:
                              type: string
                              maxLength: 30
                              description: Name (ID) of a Report Variable
                            HANDLE:
                              type: integer
                              format: int64
                              description: 'BW: General reference field for internal IDs'
                        HANDLE:
                          type: integer
                          format: int64
                          description: 'BW: General reference field for internal IDs'
                        VARTYP:
                          type: integer
                          format: int64
                          description: Type of a Report Variable
                        VPARSEL:
                          type: string
                          maxLength: 1
                          description: 'Parameter Selection: Single Value, Interval, Selection Opt.'
                        ENTRYTP:
                          type: integer
                          format: int64
                          description: Entry required
                        VNAM:
                          type: string
                          maxLength: 30
                          description: Name (ID) of a Report Variable
                        VTXT:
                          type: string
                          maxLength: 60
                          description: Long description
                        HELP_AVAIL:
                          type: string
                          maxLength: 1
                          description: Indicates if BROWSE function is possible
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        IOBJTXT:
                          type: string
                          maxLength: 60
                          description: Long description
                        QTITLE:
                          type: string
                          maxLength: 60
                          description: Long description
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DATATP:
                          type: string
                          maxLength: 4
                          description: Data Type in ABAP Dictionary
                        PERSONALIZED:
                          type: string
                          maxLength: 1
                          description: Describes How Variables Were Personalized
                        DYNCHANGE:
                          type: string
                          maxLength: 1
                          description: Variable Can Be Changed During Query Navigation
                        PRSNT1:
                          type: string
                          maxLength: 1
                          description: Single figure display
                  E_T_MESSAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        TEXT:
                          type: string
                          maxLength: 160
                          description: Message Test for RFC Error Message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
