openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_DEFFORMDOC_WRK_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_WORK_BAPI
      summary: CPE_D - Default Formula Document - Mapping Doc.(WRK)  to BAPI
      operationId: /rfc/CPE_DEFFORMDOC_WRK_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPET_DEFFORMDOC_WRK:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOC_GUID:
                        type: string
                        format: byte
                        description: CPE Caller  - GUID of Document Header
                      COND_TYPE:
                        type: string
                        maxLength: 4
                        description: 'CPE: Condition Type for Commodity Pricing'
                      FORMID:
                        type: string
                        maxLength: 10
                        description: CPE Formula - Key
                      FORMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID of Changed Input for General Data
                      FORMCONVIN_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID of Input for Conversion
                      FORMROUNDIN_GUID:
                        type: string
                        format: byte
                        description: CPE Formula - GUID for Rounding Input
                      CPE_FA_PROCEDURE:
                        type: string
                        maxLength: 6
                        description: CPE Caller - Formula Assembly Procedure
                      CPE_FA_ROUTINE:
                        type: integer
                        format: int64
                        description: CPE - Routine
                      UPDKZ:
                        type: string
                        maxLength: 1
                        description: Update indicator
              required:
              - IT_CPET_DEFFORMDOC_WRK
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_DEFFORMDOC:
                    type: array
                    items:
                      type: object
                      properties:
                        OPERATION:
                          type: string
                          maxLength: 3
                          description: Function
                        DOC_GUID:
                          type: string
                          format: byte
                          description: CPE Caller  - GUID of Document Header
                        COND_TYPE:
                          type: string
                          maxLength: 4
                          description: 'CPE: Condition Type for Commodity Pricing'
                        FORMID:
                          type: string
                          maxLength: 10
                          description: CPE Formula - Key
                        FORMINPUT_GUID:
                          type: string
                          format: byte
                          description: CPE Formula - GUID of Changed Input for General Data
                        FORMCONVIN_GUID:
                          type: string
                          format: byte
                          description: CPE Formula - GUID of Input for Conversion
                        FORMROUNDIN_GUID:
                          type: string
                          format: byte
                          description: CPE Formula - GUID for Rounding Input
                        CPE_FA_PROCEDURE:
                          type: string
                          maxLength: 6
                          description: CPE Caller - Formula Assembly Procedure
                        CPE_FA_ROUTINE:
                          type: integer
                          format: int64
                          description: CPE - Routine
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
