openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_DEFFORMDOC_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Default Formula Document - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_DEFFORMDOC_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_DEFFORMDOC:
                  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
                IV_OPERATION_DEFFORMDOC:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_DEFFORMDOC
              - IV_OPERATION_DEFFORMDOC
      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.
