openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSCRMBW_VARIABLES_GET:
    post:
      tags:
      - RSCRMBW
      operationId: /rfc/RSCRMBW_VARIABLES_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_REPORTUID:
                  type: string
                  maxLength: 72
                E_T_CRMVAR:
                  type: array
                  items:
                    type: object
                    properties:
                      CAT_NAM:
                        type: string
                        maxLength: 32
                        description: CATALOG to which the CUBE belongs
                      CUBE_NAM:
                        type: string
                        maxLength: 70
                        description: Cube name
                      VAR_NAM:
                        type: string
                        maxLength: 10
                        description: Technical name of a variable incl. delimter
                      VAR_CAP:
                        type: string
                        maxLength: 60
                        description: Description (caption)
                      VAR_UID:
                        type: string
                        maxLength: 25
                        description: UUID in compressed form
                      VAR_ORDINAL:
                        type: integer
                        format: int64
                        description: General reference field for numbering
                      VAR_TYPE:
                        type: integer
                        format: int64
                        description: 'Type of variable (member, numeric value)  enumValues: 1='
                        enum:
                        - '1'
                      DATA_TYPE:
                        type: string
                        maxLength: 4
                        description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                          accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                          field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      CHR_MAX_LEN:
                        type: string
                        maxLength: 3
                        description: Maximum length of a value in characters or bytes
                      VAR_PROC_TYPE:
                        type: integer
                        format: int64
                        description: 'Variable processing type  enumValues: 1='
                        enum:
                        - '1'
                      VAR_SELC_TYPE:
                        type: integer
                        format: int64
                        description: 'Variable selection type (single value, interval, sel.option)  enumValues: 1='
                        enum:
                        - '1'
                      VAR_ENTRY_TYPE:
                        type: integer
                        format: int64
                        description: 'Entry required  enumValues: 0=Optional Variable Entry,2=Mandatory, Initial Value not Allowed,1=Mandatory Variable Entry'
                        enum:
                        - '0'
                        - '2'
                        - '1'
                      REF_DIM:
                        type: string
                        maxLength: 32
                        description: Unique name of dimension (dimension unique name)
                      REF_HRY:
                        type: string
                        maxLength: 65
                        description: Hierarchy Unique Name
                      DFLT_LOW:
                        type: string
                        maxLength: 143
                        description: Unique name of a member
                      DFLT_HIGH:
                        type: string
                        maxLength: 143
                        description: Unique name of a member
                      DFLT_LOW_CAP:
                        type: string
                        maxLength: 60
                        description: Description (caption)
                      DFLT_HIGH_CAP:
                        type: string
                        maxLength: 60
                        description: Description (caption)
                      DSCRPTN:
                        type: string
                        maxLength: 60
                        description: Description
                E_T_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
              required:
              - I_REPORTUID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_T_CRMVAR:
                    type: array
                    items:
                      type: object
                      properties:
                        CAT_NAM:
                          type: string
                          maxLength: 32
                          description: CATALOG to which the CUBE belongs
                        CUBE_NAM:
                          type: string
                          maxLength: 70
                          description: Cube name
                        VAR_NAM:
                          type: string
                          maxLength: 10
                          description: Technical name of a variable incl. delimter
                        VAR_CAP:
                          type: string
                          maxLength: 60
                          description: Description (caption)
                        VAR_UID:
                          type: string
                          maxLength: 25
                          description: UUID in compressed form
                        VAR_ORDINAL:
                          type: integer
                          format: int64
                          description: General reference field for numbering
                        VAR_TYPE:
                          type: integer
                          format: int64
                          description: 'Type of variable (member, numeric value)  enumValues: 1='
                          enum:
                          - '1'
                        DATA_TYPE:
                          type: string
                          maxLength: 4
                          description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                            accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                            field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        CHR_MAX_LEN:
                          type: string
                          maxLength: 3
                          description: Maximum length of a value in characters or bytes
                        VAR_PROC_TYPE:
                          type: integer
                          format: int64
                          description: 'Variable processing type  enumValues: 1='
                          enum:
                          - '1'
                        VAR_SELC_TYPE:
                          type: integer
                          format: int64
                          description: 'Variable selection type (single value, interval, sel.option)  enumValues: 1='
                          enum:
                          - '1'
                        VAR_ENTRY_TYPE:
                          type: integer
                          format: int64
                          description: 'Entry required  enumValues: 0=Optional Variable Entry,2=Mandatory, Initial Value not Allowed,1=Mandatory Variable Entry'
                          enum:
                          - '0'
                          - '2'
                          - '1'
                        REF_DIM:
                          type: string
                          maxLength: 32
                          description: Unique name of dimension (dimension unique name)
                        REF_HRY:
                          type: string
                          maxLength: 65
                          description: Hierarchy Unique Name
                        DFLT_LOW:
                          type: string
                          maxLength: 143
                          description: Unique name of a member
                        DFLT_HIGH:
                          type: string
                          maxLength: 143
                          description: Unique name of a member
                        DFLT_LOW_CAP:
                          type: string
                          maxLength: 60
                          description: Description (caption)
                        DFLT_HIGH_CAP:
                          type: string
                          maxLength: 60
                          description: Description (caption)
                        DSCRPTN:
                          type: string
                          maxLength: 60
                          description: Description
                  E_T_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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
