openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAPO_UPDATE_CUBE2:
    post:
      tags:
      - RSAPO
      operationId: /rfc/RSAPO_UPDATE_CUBE2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DIM_TABLNM:
                  type: string
                  maxLength: 30
                I_INFOCUBE:
                  type: string
                  maxLength: 30
                I_ROUND:
                  type: string
                  default: RS_C_FALSE
                  maxLength: 1
                I_SHOW_REPORT:
                  type: string
                  default: RS_C_FALSE
                  maxLength: 1
                I_T_FIELDNM:
                  type: array
                  items:
                    type: string
                    maxLength: 30
                    description: Field name
                I_T_UPD_PERIODS:
                  type: array
                  items:
                    type: object
                    properties:
                      PERIODS:
                        type: array
                        items:
                          type: object
                          properties:
                            IOBJNM:
                              type: string
                              maxLength: 30
                              description: Object
                            LOW:
                              type: string
                              maxLength: 60
                              description: 'Dim: Field for a User-Defined Characteristic Value'
                            HIGH:
                              type: string
                              maxLength: 60
                              description: 'Dim: Field for a User-Defined Characteristic Value'
                      FORMULAS:
                        type: array
                        items:
                          type: object
                          properties:
                            FACT_A:
                              type: string
                              maxLength: 30
                              description: InfoObject
                            VALUE_1:
                              type: number
                              description: 'APO: Factor for the SET clause'
                            FACT_B:
                              type: string
                              maxLength: 30
                              description: InfoObject
                            VALUE_2:
                              type: number
                              description: 'APO: Factor for the SET clause'
                            PREC:
                              type: integer
                              format: int32
                              description: Number of Decimal Places
                            ROUND:
                              type: string
                              maxLength: 1
                              description: Should be rounded
                E_T_CODE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
              required:
              - I_DIM_TABLNM
              - I_INFOCUBE
              - I_T_FIELDNM
              - I_T_UPD_PERIODS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_T_CODE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
