openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_DEFTERMGRP_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Default Term Group - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_DEFTERMGRP_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_DEFTERMGRP:
                  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
                      TERMNO:
                        type: integer
                        format: int64
                        description: CPE Term - Number in Formula
                      TERMID:
                        type: string
                        maxLength: 10
                        description: CPE Term -  Key
                      TERMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID of Changed General Input
                      TERMCONVIN_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID for Conversion Input
                      TERMROUNDIN_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID of Rounding Input
                      TERMGROUP:
                        type: string
                        maxLength: 1
                        description: CPE Term - Term Group
                      PROVIS:
                        type: string
                        maxLength: 1
                        description: CPE Term - Term Is Used only for Provisional Pricing
                      PROVTERMNO:
                        type: integer
                        format: int64
                        description: CPE Term - Number of the Corresponding Provisional Term
                      FACTOR1:
                        type: integer
                        format: int64
                        description: CPE Term - Factor 1
                      FACTOR2:
                        type: integer
                        format: int64
                        description: CPE Term - Factor 2
                      TERMCOMMQUAN:
                        type: integer
                        format: int64
                        description: CPE Term - Total Commodity Quantity for Calculating Term
                      TERMCOMMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure of Total Commodity Quantity
                IV_OPERATION_DEFTERMGRP:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_DEFTERMGRP
              - IV_OPERATION_DEFTERMGRP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_DEFTERMGRP:
                    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
                        TERMNO:
                          type: integer
                          format: int64
                          description: CPE Term - Number in Formula
                        TERMID:
                          type: string
                          maxLength: 10
                          description: CPE Term -  Key
                        TERMINPUT_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID of Changed General Input
                        TERMCONVIN_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID for Conversion Input
                        TERMROUNDIN_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID of Rounding Input
                        TERMGROUP:
                          type: string
                          maxLength: 1
                          description: CPE Term - Term Group
                        PROVIS:
                          type: string
                          maxLength: 1
                          description: CPE Term - Term Is Used only for Provisional Pricing
                        PROVTERMNO:
                          type: integer
                          format: int64
                          description: CPE Term - Number of the Corresponding Provisional Term
                        FACTOR1:
                          type: integer
                          format: int64
                          description: CPE Term - Factor 1
                        FACTOR2:
                          type: integer
                          format: int64
                          description: CPE Term - Factor 2
                        TERMCOMMQUAN:
                          type: integer
                          format: int64
                          description: CPE Term - Total Commodity Quantity for Calculating Term
                        TERMCOMMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - Unit of Measure of Total Commodity Quantity
                        TERMCOMMQUAN_ISO:
                          type: integer
                          format: int64
                          description: CPE  - External Format for Quantity Fields in BAPIs
                        TERMCOMMUOM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
