openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_FORMCONVIN_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Formula Conversion In - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_FORMCONVIN_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_FORMCONVIN:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      FORMCONVIN_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID of Input for Conversion
                      CONVPLACE:
                        type: integer
                        format: int64
                        description: CPE - Conversion Place
                      CURRFROM:
                        type: string
                        maxLength: 5
                        description: CPE - Currency to Be Converted During Conversion ('from')
                      UOMFROM:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure to Be Converted During Conv. ('From')
                      CURRTO:
                        type: string
                        maxLength: 5
                        description: CPE - Currency to Be Converted to During Conversion ('to')
                      UOMTO:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure Converted to During Conversion
                      CONVERSIONRULE:
                        type: string
                        maxLength: 5
                        description: CPE - Conversion Rule
                      FIXEXCHRATE:
                        type: integer
                        format: int64
                        description: CPE Term - Fixed Exchange Rate for Currency Conversion
                      FACTORFROM:
                        type: integer
                        format: int64
                        description: CPE - From-Factor for Conversion
                      FACTORTO:
                        type: integer
                        format: int64
                        description: CPE - To-Factor for Conversion
                IV_OPERATION_FORMCONVIN:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_FORMCONVIN
              - IV_OPERATION_FORMCONVIN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_FORMCONVIN:
                    type: array
                    items:
                      type: object
                      properties:
                        OPERATION:
                          type: string
                          maxLength: 3
                          description: Function
                        FORMCONVIN_GUID:
                          type: string
                          format: byte
                          description: CPE Formula - GUID of Input for Conversion
                        CONVPLACE:
                          type: integer
                          format: int64
                          description: CPE - Conversion Place
                        CURRFROM:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted During Conversion ('from')
                        UOMFROM:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure to Be Converted During Conv. ('From')
                        CURRTO:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted to During Conversion ('to')
                        UOMTO:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure Converted to During Conversion
                        CONVERSIONRULE:
                          type: string
                          maxLength: 5
                          description: CPE - Conversion Rule
                        FIXEXCHRATE:
                          type: integer
                          format: int64
                          description: CPE Term - Fixed Exchange Rate for Currency Conversion
                        FACTORFROM:
                          type: integer
                          format: int64
                          description: CPE - From-Factor for Conversion
                        FACTORTO:
                          type: integer
                          format: int64
                          description: CPE - To-Factor for Conversion
                        CURRFROM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code currency
                        CURRTO_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code currency
                        UOMFROM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                        UOMTO_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
