openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_FORMINPUT_WRK_FROM_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_WORK_BAPI
      summary: CPE_D - Formula In - Mapping BAPI to Doc. (WRK)
      operationId: /rfc/CPE_FORMINPUT_WRK_FROM_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_BAPI_CPE_FORMINPUT:
                  type: array
                  items:
                    type: object
                    properties:
                      OPERATION:
                        type: string
                        maxLength: 3
                        description: Function
                      FORMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID of Changed Input for General Data
                      FIXFORMRATE:
                        type: integer
                        format: int64
                        description: CPE Formula - Fixed Rate
                      FIXFORMCURR:
                        type: string
                        maxLength: 5
                        description: CPE - Currency for Fixed Value
                      FIXFORMPRUN:
                        type: integer
                        format: int64
                        description: CPE - Price Unit of Fixed Rate
                      FIXFORMUOM:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure of Fixed Rate
                      FORMCOMMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Formula - Unit of Measure of Commodity Used in Formula
                      FORMCURR:
                        type: string
                        maxLength: 5
                        description: CPE Formula - Currency
                      FORMPRUN:
                        type: integer
                        format: int64
                        description: CPE Formula - Price Unit
                      FORMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Formula - Unit of Measure
                      FORMEVALROUT:
                        type: integer
                        format: int64
                        description: CPE Formula - Routine for Evaluation
                      COMBROUT:
                        type: integer
                        format: int64
                        description: CPE Formula - Routine for Combining Terms
                      QUANSPLITROUT:
                        type: integer
                        format: int64
                        description: CPE Term -Routine for Splitting the Commodity Qty into Terms
                      FORMQUANCONV:
                        type: string
                        maxLength: 5
                        description: CPE - Quantity Conv. Rule from Product UoM to Commodity UoM
                      QUANCNV_COMM:
                        type: integer
                        format: int64
                        description: CPE - Comm. Qty for Conversion from Product UoM to Comm. UoM
                      QUANCNV_ITEM:
                        type: integer
                        format: int64
                        description: CPE - Item Qty for Conversion from Product UoM to Comm. UoM
                      ITEMPRODUOM:
                        type: string
                        maxLength: 3
                        description: CPE Caller - Unit of Measure of Product in Document Item
                      R3ACCURACY:
                        type: string
                        maxLength: 1
                        description: CPE - Evaluation with ABAP Accuracy
                      FIXFORMRATE_ISO:
                        type: integer
                        format: int64
                        description: Currency amount for BAPIS (with 9 decimal places)
                      FIXFORMCURR_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code currency
                      FIXFORMUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      FORMCOMMUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      FORMCURR_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code currency
                      FORMUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      QUANCNV_COMM_ISO:
                        type: integer
                        format: int64
                        description: CPE  - External Format for Quantity Fields in BAPIs
                      QUANCNV_ITEM_ISO:
                        type: integer
                        format: int64
                        description: CPE  - External Format for Quantity Fields in BAPIs
                IT_BAPI_CPE_FORMIN_USER:
                  type: array
                  items:
                    type: object
                    properties:
                      OPERATION:
                        type: string
                        maxLength: 3
                        description: Function
                      FORMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID of Changed Input for General Data
              required:
              - IT_BAPI_CPE_FORMINPUT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_CPET_FORMINPUT_WRK:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        FORMINPUT_GUID:
                          type: string
                          format: byte
                          description: CPE Formula - GUID of Changed Input for General Data
                        FIXFORMRATE:
                          type: integer
                          format: int64
                          description: CPE Formula - Fixed Rate
                        FIXFORMCURR:
                          type: string
                          maxLength: 5
                          description: CPE - Currency for Fixed Value
                        FIXFORMPRUN:
                          type: integer
                          format: int64
                          description: CPE - Price Unit of Fixed Rate
                        FIXFORMUOM:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure of Fixed Rate
                        FORMCOMMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Formula - Unit of Measure of Commodity Used in Formula
                        FORMCURR:
                          type: string
                          maxLength: 5
                          description: CPE Formula - Currency
                        FORMPRUN:
                          type: integer
                          format: int64
                          description: CPE Formula - Price Unit
                        FORMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Formula - Unit of Measure
                        FORMEVALROUT:
                          type: integer
                          format: int64
                          description: CPE Formula - Routine for Evaluation
                        COMBROUT:
                          type: integer
                          format: int64
                          description: CPE Formula - Routine for Combining Terms
                        QUANSPLITROUT:
                          type: integer
                          format: int64
                          description: CPE Term -Routine for Splitting the Commodity Qty into Terms
                        FORMQUANCONV:
                          type: string
                          maxLength: 5
                          description: CPE - Quantity Conv. Rule from Product UoM to Commodity UoM
                        QUANCNV_COMM:
                          type: integer
                          format: int64
                          description: CPE - Comm. Qty for Conversion from Product UoM to Comm. UoM
                        QUANCNV_ITEM:
                          type: integer
                          format: int64
                          description: CPE - Item Qty for Conversion from Product UoM to Comm. UoM
                        ITEMPRODUOM:
                          type: string
                          maxLength: 3
                          description: CPE Caller - Unit of Measure of Product in Document Item
                        R3ACCURACY:
                          type: string
                          maxLength: 1
                          description: CPE - Evaluation with ABAP Accuracy
                        UPDKZ:
                          type: string
                          maxLength: 1
                          description: Update indicator
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
