openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_CALCRULE_READ_CB:
    post:
      tags:
      - CPE_CALCRULE_CB
      summary: CPE_C - Calculation Rule - Read from Customizing Buffer
      operationId: /rfc/CPE_CALCRULE_READ_CB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_CALCRULE:
                  type: string
                  maxLength: 5
                  description: CPE Term - Calcul.Rule for Calculating Rate from Quotations
                IV_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language key
                IV_LOGSYS:
                  type: string
                  maxLength: 10
                  description: Logical system
                IV_NO_BUFFER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_VALIDTO:
                  type: string
                  maxLength: 14
                  description: CPE - Valid to Time Stamp of Object
              required:
              - IV_CALCRULE
              - IV_LOGSYS
              - IV_VALIDTO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_CALCRULE:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      CALCRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Calculation Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      CALCROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Calculation Routine
                      CALCMIN:
                        type: integer
                        format: int64
                        description: CPE Term - Minimum of Commodity Rate Calculation
                      CALCMAX:
                        type: integer
                        format: int64
                        description: CPE Term - Maximum of Commodity Rate Calculation
                      CALCMMCURR:
                        type: string
                        maxLength: 5
                        description: CPE Term - Currency of Rate Calculation Limits
                      CALCMMPRUN:
                        type: integer
                        format: int64
                        description: CPE Term - Price Unit of Rate Calculation Limits
                      CALCMMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure for Rate Limits
                  EV_RULETEXT:
                    type: string
                    maxLength: 40
                    description: Description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
