openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_TERMGRPOUT_WRK_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_WORK_BAPI
      summary: CPE_D - Term Group Out - Mapping BAPI to Doc. (WRK)
      operationId: /rfc/CPE_TERMGRPOUT_WRK_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPET_TERMGRPOUT_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
                      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
                      USEDQUAN:
                        type: integer
                        format: int64
                        description: CPE Term - Calculated Commodity Quantity
                      USEDUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - UoM for Calculated Commodity Quantity
                      TERMCONVOUT_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID for Conversion Result
                      PERDTOUT_GUID_Q:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Result of Period Determination
                      PERDTOUT_GUID_C:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Result of Period Determination
                      TERMSTATUS:
                        type: integer
                        format: int64
                        description: CPE Term - Status
                      BILLING_BLOCK:
                        type: string
                        maxLength: 2
                        description: 'CPE Caller - Billing: Blocking Reason for Document Items'
                      TERMVAL:
                        type: integer
                        format: int64
                        description: CPE Term - Value
                      TERMRATE:
                        type: integer
                        format: int64
                        description: CPE Term - Rate in Term Currency
                      TERMCURR:
                        type: string
                        maxLength: 5
                        description: CPE Term - Currency
                      TERMPRUN:
                        type: integer
                        format: int64
                        description: CPE Term - Price Unit
                      TERMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure
                      QUOTATION:
                        type: integer
                        format: int64
                        description: CPE Term - Calculated Quotation
                      QUOTCURR:
                        type: string
                        maxLength: 5
                        description: Quotation Currency
                      QUOTPRUN:
                        type: integer
                        format: int64
                        description: Price Unit of Quotation
                      QUOTUOM:
                        type: string
                        maxLength: 3
                        description: Unit of Measure of Quotation
                      CALC_LIMITUSED:
                        type: integer
                        format: int64
                        description: CPE Term - Used Limit of Calculation Rule
                      QUOT_UOMSUBST:
                        type: string
                        maxLength: 1
                        description: CPE Term - Unit of Measure Subsitution for Quotations
                      SURCHARGERATE:
                        type: integer
                        format: int64
                        description: CPE Term - Total Surcharge for Commodity
                      SURCHRATECURR:
                        type: string
                        maxLength: 5
                        description: CPE Term - Currency of Absolute Surcharge
                      SURCHRATEPRUN:
                        type: integer
                        format: int64
                        description: CPE Term - Price Unit of Absolute Surcharge
                      SURCHRATEUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure of Absolute Surcharge
                      SURCH_UOMSUBST:
                        type: string
                        maxLength: 1
                        description: CPE Term - Unit of Measure Substitution for Surcharge
                      UPDKZ:
                        type: string
                        maxLength: 1
                        description: Update indicator
              required:
              - IT_CPET_TERMGRPOUT_WRK
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_TERMGRPOUT:
                    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
                        USEDQUAN:
                          type: integer
                          format: int64
                          description: CPE Term - Calculated Commodity Quantity
                        USEDUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - UoM for Calculated Commodity Quantity
                        TERMCONVOUT_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID for Conversion Result
                        PERDTOUT_GUID_Q:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Result of Period Determination
                        PERDTOUT_GUID_C:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Result of Period Determination
                        TERMSTATUS:
                          type: integer
                          format: int64
                          description: CPE Term - Status
                        BILLING_BLOCK:
                          type: string
                          maxLength: 2
                          description: 'CPE Caller - Billing: Blocking Reason for Document Items'
                        TERMVAL:
                          type: integer
                          format: int64
                          description: CPE Term - Value
                        TERMRATE:
                          type: integer
                          format: int64
                          description: CPE Term - Rate in Term Currency
                        TERMCURR:
                          type: string
                          maxLength: 5
                          description: CPE Term - Currency
                        TERMPRUN:
                          type: integer
                          format: int64
                          description: CPE Term - Price Unit
                        TERMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - Unit of Measure
                        QUOTATION:
                          type: integer
                          format: int64
                          description: CPE Term - Calculated Quotation
                        QUOTCURR:
                          type: string
                          maxLength: 5
                          description: Quotation Currency
                        QUOTPRUN:
                          type: integer
                          format: int64
                          description: Price Unit of Quotation
                        QUOTUOM:
                          type: string
                          maxLength: 3
                          description: Unit of Measure of Quotation
                        CALC_LIMITUSED:
                          type: integer
                          format: int64
                          description: CPE Term - Used Limit of Calculation Rule
                        QUOT_UOMSUBST:
                          type: string
                          maxLength: 1
                          description: CPE Term - Unit of Measure Subsitution for Quotations
                        SURCHARGERATE:
                          type: integer
                          format: int64
                          description: CPE Term - Total Surcharge for Commodity
                        SURCHRATECURR:
                          type: string
                          maxLength: 5
                          description: CPE Term - Currency of Absolute Surcharge
                        SURCHRATEPRUN:
                          type: integer
                          format: int64
                          description: CPE Term - Price Unit of Absolute Surcharge
                        SURCHRATEUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - Unit of Measure of Absolute Surcharge
                        SURCH_UOMSUBST:
                          type: string
                          maxLength: 1
                          description: CPE Term - Unit of Measure Substitution for Surcharge
                        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
                        USEDQUAN_ISO:
                          type: integer
                          format: int64
                          description: CPE  - External Format for Quantity Fields in BAPIs
                        USEDUOM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                        TERMVAL_ISO:
                          type: integer
                          format: int64
                          description: Currency amount for BAPIS (with 9 decimal places)
                        TERMRATE_ISO:
                          type: integer
                          format: int64
                          description: Currency amount for BAPIS (with 9 decimal places)
                        TERMCURR_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code currency
                        TERMUOM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                        QUOTATION_ISO:
                          type: integer
                          format: int64
                          description: Currency amount for BAPIS (with 9 decimal places)
                        QUOTCURR_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code currency
                        QUOTUOM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                        SURCHRATE_ISO:
                          type: integer
                          format: int64
                          description: Currency amount for BAPIS (with 9 decimal places)
                        SURCHCURR_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code currency
                        SURCHUOM_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                  ET_BAPI_CPE_TERMGRPOUT_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
                        TERMNO:
                          type: integer
                          format: int64
                          description: CPE Term - Number in Formula
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
