openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSCRMBW_KEY_FIGURES_GETDETAIL:
    post:
      tags:
      - RSCRMBW
      operationId: /rfc/RSCRMBW_KEY_FIGURES_GETDETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_MEM_NAM:
                  type: string
                  maxLength: 64
                I_REPORTUID:
                  type: string
                  maxLength: 72
                E_T_CRMKYFFILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                        enum:
                        - E
                        - I
                      OPT:
                        type: string
                        maxLength: 2
                        description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal >=
                          value in field LOW,BT=Between: Range of values'
                        enum:
                        - EQ
                        - LT
                        - NE
                        - GT
                        - NP
                        - NB
                        - CP
                        - LE
                        - GE
                        - BT
                      LOW:
                        type: string
                        maxLength: 64
                        description: Member Name
                      HIGH:
                        type: string
                        maxLength: 64
                        description: Member Name
                E_T_CRMKYFFORMULA:
                  type: array
                  items:
                    type: object
                    properties:
                      STEPNR:
                        type: integer
                        format: int64
                        description: Formula stage
                      OPERTYP1:
                        type: string
                        maxLength: 1
                        description: 'Type of operand  enumValues: ""=Blank,B=Basis,K=Formula,V=Variable,C=Constant,I=InfoObject,H=Formula stage'
                        enum:
                        - ''
                        - B
                        - K
                        - V
                        - C
                        - I
                        - H
                      OPERAND1:
                        type: string
                        maxLength: 32
                        description: Formula operand
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Formula operator
                      OPERTYP2:
                        type: string
                        maxLength: 1
                        description: 'Type of operand  enumValues: ""=Blank,B=Basis,K=Formula,V=Variable,C=Constant,I=InfoObject,H=Formula stage'
                        enum:
                        - ''
                        - B
                        - K
                        - V
                        - C
                        - I
                        - H
                      OPERAND2:
                        type: string
                        maxLength: 32
                        description: Formula operand
                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_MEM_NAM
              - I_REPORTUID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_S_CRMKYFDETAIL:
                    type: object
                    properties:
                      MES_UID:
                        type: string
                        maxLength: 32
                        description: UUID in character form
                      MES_CAP:
                        type: string
                        maxLength: 60
                        description: Description
                      MES_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)
                      MES_UNITS:
                        type: string
                        maxLength: 60
                        description: Unit of measurement (dollars, item, if applicable)
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      OBJCAP:
                        type: string
                        maxLength: 60
                        description: Description
                      FIELDNM:
                        type: string
                        maxLength: 30
                        description: Field Name InfoObject In Structures (Not in database table)
                      DTELNM:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      CHKTAB:
                        type: string
                        maxLength: 30
                        description: View of master data tables
                      DATATP:
                        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
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length of InfoObjects in BW - see Docu
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      FVALEX:
                        type: string
                        maxLength: 1
                        description: 'Domain fixed values exist (flag)  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      INTTP:
                        type: string
                        maxLength: 1
                        description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                          (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DIGITS:
                        type: integer
                        format: int64
                        description: Number of Characters in Field
                      POSIT:
                        type: integer
                        format: int64
                        description: Position of the Field in the Structure / Table
                      MASK:
                        type: string
                        maxLength: 20
                        description: Template (not used)
                      MASKLEN:
                        type: integer
                        format: int64
                        description: Template length (not used)
                      BYTELENG:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      KYFTP:
                        type: string
                        maxLength: 3
                        description: 'Key figure type  enumValues: FLO=Floating point number (without unit),AMO=Amount,INT=Whole number,QUA=Quantity,TIM=Time,NUM=Number (without unit),DAT=Date'
                        enum:
                        - FLO
                        - AMO
                        - INT
                        - QUA
                        - TIM
                        - NUM
                        - DAT
                      NCUMFL:
                        type: string
                        maxLength: 1
                        description: 'Non-cumulative value (flag)  enumValues: 1=Stock with change involving stocks,2=Stock with inward and outward movement,""=Cumulative value'
                        enum:
                        - '1'
                        - '2'
                        - ''
                      FIXCUKY:
                        type: string
                        maxLength: 5
                        description: Fixed currency
                      FIXUNIT:
                        type: string
                        maxLength: 3
                        description: Fixed Unit of Measure
                      AGGRGEN:
                        type: string
                        maxLength: 3
                        description: 'Usual Aggregation  enumValues: MAX=Maximum,MIN=Minimum,NO2=No Longer Used,SUM=Summation'
                        enum:
                        - MAX
                        - MIN
                        - NO2
                        - SUM
                      AGGREXC:
                        type: string
                        maxLength: 3
                        description: 'Exception Aggregation  enumValues: FIR=First Value,AV1=Average (Weighted with Number of Days),MIN=Minimum,NO2=No Aggregation (X, If More Than One Value Occurs),NHA=No Aggregation Along Hierarchy,NGA=No Aggregation of Postable Nodes Along Hierarchy,CNT=Counter (All Values),STD=Standard Deviation,AV0=Average (Values Not Equal to Zero),VAR=Variance,MAX=Maximum,NOP=No Aggregation (X, If More Than One Value Uneq. to 0 Occurs),CN0=Counter (Values Unequal to Zero ),AVG=Average
                          (All Values),NO1=No Aggregation (X, If More Than One Record Occurs),LAS=Last Value,SUM=Summation,AV2=Average (Weighted with No. of Working Days; Factory Calcul.)'
                        enum:
                        - FIR
                        - AV1
                        - MIN
                        - NO2
                        - NHA
                        - NGA
                        - CNT
                        - STD
                        - AV0
                        - VAR
                        - MAX
                        - NOP
                        - CN0
                        - AVG
                        - NO1
                        - LAS
                        - SUM
                        - AV2
                      AGGRCHA:
                        type: string
                        maxLength: 30
                        description: Reference characteristic for exception aggregation
                      KYFDECIM:
                        type: string
                        maxLength: 1
                        description: 'Decimal places (of a key figure)  enumValues: 0=0,1=0.0,6=0.000000,5=0.00000,8=0.00000000,2=0.00,3=0.000,""=Not defined,4=0.0000,7=0.0000000,9=0.000000000'
                        enum:
                        - '0'
                        - '1'
                        - '6'
                        - '5'
                        - '8'
                        - '2'
                        - '3'
                        - ''
                        - '4'
                        - '7'
                        - '9'
                      KYFPRSNT:
                        type: string
                        maxLength: 1
                        description: 'Display (of a key figure)  enumValues: 1=in 10,3=in 1,000,5=in 100,000,0=in 1,6=in 1,000,000,8=in 100,000,000,""=Not defined,2=in 100,4=in 10,000,7=in 10,000,000,9=in 1,000,000,000'
                        enum:
                        - '1'
                        - '3'
                        - '5'
                        - '0'
                        - '6'
                        - '8'
                        - ''
                        - '2'
                        - '4'
                        - '7'
                        - '9'
                      KYFNAV:
                        type: string
                        maxLength: 1
                        description: 'Navigation indicator for key figures  enumValues: 1=Must be selected,2=Not allowed,""=Not assigned,0=Permitted without restrictions'
                        enum:
                        - '1'
                        - '2'
                        - ''
                        - '0'
                      UNINM:
                        type: string
                        maxLength: 30
                        description: Unit InfoObject (currency/unit)
                      DOMANM:
                        type: string
                        maxLength: 30
                        description: Domain name
                      PACKFL:
                        type: string
                        maxLength: 1
                        description: 'Key Figure is Edited with Maximum Precision  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                  E_T_CRMKYFFILTER:
                    type: array
                    items:
                      type: object
                      properties:
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                          enum:
                          - E
                          - I
                        OPT:
                          type: string
                          maxLength: 2
                          description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal
                            >= value in field LOW,BT=Between: Range of values'
                          enum:
                          - EQ
                          - LT
                          - NE
                          - GT
                          - NP
                          - NB
                          - CP
                          - LE
                          - GE
                          - BT
                        LOW:
                          type: string
                          maxLength: 64
                          description: Member Name
                        HIGH:
                          type: string
                          maxLength: 64
                          description: Member Name
                  E_T_CRMKYFFORMULA:
                    type: array
                    items:
                      type: object
                      properties:
                        STEPNR:
                          type: integer
                          format: int64
                          description: Formula stage
                        OPERTYP1:
                          type: string
                          maxLength: 1
                          description: 'Type of operand  enumValues: ""=Blank,B=Basis,K=Formula,V=Variable,C=Constant,I=InfoObject,H=Formula stage'
                          enum:
                          - ''
                          - B
                          - K
                          - V
                          - C
                          - I
                          - H
                        OPERAND1:
                          type: string
                          maxLength: 32
                          description: Formula operand
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Formula operator
                        OPERTYP2:
                          type: string
                          maxLength: 1
                          description: 'Type of operand  enumValues: ""=Blank,B=Basis,K=Formula,V=Variable,C=Constant,I=InfoObject,H=Formula stage'
                          enum:
                          - ''
                          - B
                          - K
                          - V
                          - C
                          - I
                          - H
                        OPERAND2:
                          type: string
                          maxLength: 32
                          description: Formula operand
                  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.
