openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_REPPROV_GETRESTRICTKEYFIG:
    post:
      tags:
      - RSCRM_BO_DATAPROVIDER
      summary: .
      operationId: /rfc/BAPI_REPPROV_GETRESTRICTKEYFIG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                KEYFIGURE:
                  type: string
                  maxLength: 64
                  description: Unique ID of a Key Figure
                SESSIONID:
                  type: integer
                  format: int64
                  description: Unique ID of a Session
                KEYFIGUREFILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      KEYFIGURE:
                        type: string
                        maxLength: 64
                        description: Member Name
                      CHARACTERISTIC:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      SIGN:
                        type: string
                        maxLength: 1
                        description: '+/- Sign Field for Selection Options  enumValues: E=Exclude specified values,I=Select specified values'
                        enum:
                        - E
                        - I
                      OPT:
                        type: string
                        maxLength: 2
                        description: 'Option Field for Selection Options  enumValues: BT=Between: Range of Values,EQ=Equal: Single Value,LE=Less or Equal: Everything <= Value in Field LOW,CP=Contains Pattern: Masked Input: Find Pattern,NB=Not Between: Everything Outside the Range,GE=Greater or Equal: Everything >= Value in Field LOW,NP=Not Contains Pattern: Masked Input: Reject Pattern,NE=Not Equal: Everything Apart from the Specified Single Value,GT=Greater Than: Everything > Value in Field LOW,LT=Less
                          Than: Everything < Value in Field LOW'
                        enum:
                        - BT
                        - EQ
                        - LE
                        - CP
                        - NB
                        - GE
                        - NP
                        - NE
                        - GT
                        - LT
                      LOW:
                        type: string
                        maxLength: 64
                        description: Member Name
                      HIGH:
                        type: string
                        maxLength: 64
                        description: Member Name
              required:
              - KEYFIGURE
              - SESSIONID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  KEYFIGUREDETAIL:
                    type: object
                    properties:
                      KEYFIGURE:
                        type: string
                        maxLength: 32
                        description: UUID in character form
                      KEYFIGUREDESCR:
                        type: string
                        maxLength: 60
                        description: Description
                      KYF_AGGREGATOR:
                        type: integer
                        format: int64
                        description: 'Aggregational behaviour for key figure  enumValues: 006=MEASURE_AGGR_VAR,011=MEASURE_AGGR_COUNT_NOT_ZERO,001=MEASURE_AGGR_SUM,008=MEASURE_AGGR_AVG_NOT_ZERO,004=MEASURE_AGGR_MAX,007=MEASURE_AGGR_STD,013=MEASURE_AGGR_LAST,000=MEASURE_AGGR_UNKNOWN,002=MEASURE_AGGR_COUNT,010=MEASURE_AGGR_AVG_PERIOD,127=MEASURE_AGGR_CALCULATED,009=MEASURE_AGGR_AVG_CALENDAR_DAYS,014=MEASURE_AGGR_NOP,012=MEASURE_AGGR_FIRST,003=MEASURE_AGGR_MIN,005=MEASURE_AGGR_AVG'
                        enum:
                        - '006'
                        - '011'
                        - '001'
                        - '008'
                        - '004'
                        - '007'
                        - '013'
                        - '000'
                        - '002'
                        - '010'
                        - '127'
                        - '009'
                        - '014'
                        - '012'
                        - '003'
                        - '005'
                      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
                      NUM_PREC:
                        type: string
                        maxLength: 1
                        description: Maximum precision (only given if data type is numeric)
                      NUM_SCALE:
                        type: string
                        maxLength: 1
                        description: Display factor (if applicable)
                      KEYFIGURE_UNITS:
                        type: string
                        maxLength: 60
                        description: Unit of measurement (dollars, item, if applicable)
                      KEYFIGURE_REUSENAME:
                        type: string
                        maxLength: 30
                        description: Technical Name of a Reusable Key Figure
                  KEYFIGUREFILTER:
                    type: array
                    items:
                      type: object
                      properties:
                        KEYFIGURE:
                          type: string
                          maxLength: 64
                          description: Member Name
                        CHARACTERISTIC:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        SIGN:
                          type: string
                          maxLength: 1
                          description: '+/- Sign Field for Selection Options  enumValues: E=Exclude specified values,I=Select specified values'
                          enum:
                          - E
                          - I
                        OPT:
                          type: string
                          maxLength: 2
                          description: 'Option Field for Selection Options  enumValues: BT=Between: Range of Values,EQ=Equal: Single Value,LE=Less or Equal: Everything <= Value in Field LOW,CP=Contains Pattern: Masked Input: Find Pattern,NB=Not Between: Everything Outside the Range,GE=Greater or Equal: Everything >= Value in Field LOW,NP=Not Contains Pattern: Masked Input: Reject Pattern,NE=Not Equal: Everything Apart from the Specified Single Value,GT=Greater Than: Everything > Value in Field LOW,LT=Less
                            Than: Everything < Value in Field LOW'
                          enum:
                          - BT
                          - EQ
                          - LE
                          - CP
                          - NB
                          - GE
                          - NP
                          - NE
                          - GT
                          - LT
                        LOW:
                          type: string
                          maxLength: 64
                          description: Member Name
                        HIGH:
                          type: string
                          maxLength: 64
                          description: Member Name
                  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.
