openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_TERMCONVOUT_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Term Conversion Out - Mapping BAPI to Doc.
      operationId: /rfc/CPE_MAP_TERMCONVOUT_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_TERMCONVOUT:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      TERMCONVOUT_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID for Conversion Result
                      CONVPLACE:
                        type: integer
                        format: int64
                        description: CPE - Conversion Place
                      USEDEXCHRATE:
                        type: integer
                        format: int64
                        description: CPE - Exchange Rate Used for Currency Conversion
                      USEDCURRFROM:
                        type: string
                        maxLength: 5
                        description: CPE - Currency to Be Converted During Conversion ('from')
                      USEDCURRTO:
                        type: string
                        maxLength: 5
                        description: CPE - Currency to Be Converted to During Conversion ('to')
                      USEDFACTORFROM:
                        type: integer
                        format: int64
                        description: CPE - From-Factor Used for Conversion
                      USEDUOMFROM:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure to Be Converted During Conv. ('From')
                      USEDFACTORTO:
                        type: integer
                        format: int64
                        description: CPE - To-Factor Used for Conversion
                      USEDUOMTO:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure Converted to During Conversion
                IV_OPERATION_TERMCONVOUT:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_TERMCONVOUT
              - IV_OPERATION_TERMCONVOUT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_TERMCONVOUT:
                    type: array
                    items:
                      type: object
                      properties:
                        OPERATION:
                          type: string
                          maxLength: 3
                          description: Function
                        TERMCONVOUT_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID for Conversion Result
                        CONVPLACE:
                          type: integer
                          format: int64
                          description: CPE - Conversion Place
                        USEDEXCHRATE:
                          type: integer
                          format: int64
                          description: CPE - Exchange Rate Used for Currency Conversion
                        USEDCURRFROM:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted During Conversion ('from')
                        USEDCURRTO:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted to During Conversion ('to')
                        USEDFACTORFROM:
                          type: integer
                          format: int64
                          description: CPE - From-Factor Used for Conversion
                        USEDUOMFROM:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure to Be Converted During Conv. ('From')
                        USEDFACTORTO:
                          type: integer
                          format: int64
                          description: CPE - To-Factor Used for Conversion
                        USEDUOMTO:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure Converted to During 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.
