openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/KFM_KF_DEFINITION_GET_RFC:
    post:
      tags:
      - GKFM_KF
      operationId: /rfc/KFM_KF_DEFINITION_GET_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_KF_ADM_VAR:
                  type: string
                  maxLength: 30
                I_KF_ID:
                  type: string
                  format: byte
                I_PROGRAM:
                  type: string
                  maxLength: 40
                I_SRC_SYSTEM:
                  type: string
                  maxLength: 10
                I_USER_ID:
                  type: string
                  maxLength: 12
                I_VARIANT:
                  type: string
                  maxLength: 14
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_KF_DETAIL:
                    type: object
                    properties:
                      KF_ID:
                        type: string
                        format: byte
                        description: ID for User-Specific Key Figure
                      KF_ADM_VAR_ID:
                        type: string
                        format: byte
                        description: Variant ID of Administrator Key Figure
                      KF_ADM_VAR:
                        type: string
                        maxLength: 30
                        description: Technical Name of Key Figure Administrator
                      KF_DIRECTION:
                        type: string
                        maxLength: 1
                        description: 'Key Figure Direction  enumValues: 3=Bidirectional,2=Negative,1=Positive'
                        enum:
                        - '3'
                        - '2'
                        - '1'
                      KF_UNIT:
                        type: string
                        maxLength: 3
                        description: Unit of Key Figure
                      KF_CURR:
                        type: string
                        maxLength: 5
                        description: Key Figure Currency
                      KF_UNIT_CURR:
                        type: string
                        maxLength: 30
                        description: 'Description: Quantity Unit for Key Figure'
                      KF_DECIMALS:
                        type: string
                        maxLength: 1
                        description: 'Number of Decimal Places for Key Figure Display  enumValues: 0=0,1=0.0,5=0.00000,2=0.00,3=0.000,4=0.0000'
                        enum:
                        - '0'
                        - '1'
                        - '5'
                        - '2'
                        - '3'
                        - '4'
                      KF_MIN_VALUE:
                        type: integer
                        format: int64
                        description: Minimum Value of Key Figure
                      KF_MAX_VALUE:
                        type: integer
                        format: int64
                        description: Maximum Value of Key Figure
                      KF_TARGET:
                        type: integer
                        format: int64
                        description: Target Value of Key Figure
                      KF_R2YGATE:
                        type: integer
                        format: int64
                        description: Red->Yellow Threshold Value of Key Figure
                      KF_Y2GGATE:
                        type: integer
                        format: int64
                        description: Yellow->green threshold value of key figure
                      KF_G2YGATE:
                        type: integer
                        format: int64
                        description: Green->Yellow Threshold Value of Key Figure
                      KF_Y2RGATE:
                        type: integer
                        format: int64
                        description: Yellow->Red Threshold Value of Key Figure
                      KF_NAME:
                        type: string
                        maxLength: 60
                        description: Name of Key Figure
                      KF_DESCR:
                        type: string
                        maxLength: 255
                        description: Key Figure Description
                      KF_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of User-Specific Key Figure  enumValues: 1=Simple Key Figure,2=Key Figure Group,3=Key Figure Comparison'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      KF_PERIOD:
                        type: string
                        maxLength: 1
                        description: 'Period Type for Key Figure  enumValues: 4=Month,5=Year,1=Hour,2=Day,3=Week'
                        enum:
                        - '4'
                        - '5'
                        - '1'
                        - '2'
                        - '3'
                      KF_NUM_PERIODS:
                        type: integer
                        format: int64
                        description: 'Number of Periods (Validity of Key Figures)  enumValues: 01='
                        enum:
                        - '01'
                      KF_PERS_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Personalization Type of Key Figure  enumValues: 1=Can be Personalized (Val. for Each Key Figure and User),0=Cannot be Personalized (Determine Value for Each Key Figure)'
                        enum:
                        - '1'
                        - '0'
                      KF_CMT_SETTING:
                        type: string
                        maxLength: 1
                        description: 'Settings for Comments  enumValues: 0=No Comments,2=Public Comments (Chat),1=Personalized Comments (Notes)'
                        enum:
                        - '0'
                        - '2'
                        - '1'
                      KF_ALERT:
                        type: string
                        maxLength: 1
                        description: 'Alert Settings for Key Figure  enumValues: 2=Alert when key figure status changes to ''red'',4=Alert when key figure status changes to ''yellow'',3=Alert when key figure status ''red'',1=No Alert,5=Alert when key figure status ''yellow'''
                        enum:
                        - '2'
                        - '4'
                        - '3'
                        - '1'
                        - '5'
                      KF_PROGRAM:
                        type: string
                        maxLength: 40
                        description: Report for Generating Key Figure Value
                      KF_VARIANT:
                        type: string
                        maxLength: 14
                        description: Variant of Report for Generating Key Figure
                      KF_SRC_SYSTEM:
                        type: string
                        maxLength: 10
                        description: Source System of Key Figure
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
