openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_TERMINPUT_FROM_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Term In - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_TERMINPUT_FROM_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_BAPI_CPE_TERMINPUT:
                  type: array
                  items:
                    type: object
                    properties:
                      OPERATION:
                        type: string
                        maxLength: 3
                        description: Function
                      TERMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID of Changed General Input
                      TERMTYPE:
                        type: integer
                        format: int64
                        description: CPE Term - Term Calculation Type
                      TERMRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Term Rule
                      QUOTSRC:
                        type: string
                        maxLength: 2
                        description: Quotation Source
                      QUOTTYPE:
                        type: string
                        maxLength: 5
                        description: Quotation Type
                      QUOTNAME:
                        type: string
                        maxLength: 18
                        description: Quotation Name
                      QUOTGROUP:
                        type: string
                        maxLength: 5
                        description: Quotation Group
                      REFDOCCAT:
                        type: integer
                        format: int64
                        description: CPE Term - Reference Document Category
                      REFDOC:
                        type: string
                        maxLength: 10
                        description: CPE Term - Reference Document Number
                      REFITEM:
                        type: string
                        maxLength: 10
                        description: CPE Term - Reference Document Item Number
                      REFGUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID of Reference Document Item
                      REFCOND:
                        type: string
                        maxLength: 4
                        description: CPE Term - Reference Condition Type
                      FIXTERMRATE:
                        type: integer
                        format: int64
                        description: CPE Term - Fixed Rate
                      FIXTERMCURR:
                        type: string
                        maxLength: 5
                        description: CPE - Currency for Fixed Value
                      FIXTERMPRUN:
                        type: integer
                        format: int64
                        description: CPE - Price Unit of Fixed Rate
                      FIXTERMUOM:
                        type: string
                        maxLength: 3
                        description: CPE - Unit of Measure of Fixed Rate
                      USERVAL1:
                        type: integer
                        format: int64
                        description: CPE Term - Freely Usable Field
                      USERUOM1:
                        type: string
                        maxLength: 3
                        description: CPE Term - Freely Usable Unit of Measure Field
                      CALCRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Calculation Rule
                      SURCHARGERULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Surcharge Rule
                      PERDETRULE_Q:
                        type: string
                        maxLength: 5
                        description: CPE Term - Period Determination Rule for Commodity Rates
                      PERDETRULE_C:
                        type: string
                        maxLength: 5
                        description: CPE Term - Period Determ. Rule for Currency Exchange Rates
                      PERDTIN_GUID_Q:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Changed Input of Period Determination
                      PERDTIN_GUID_C:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Changed Input of Period Determination
                      CALCROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Calculation Routine
                      CALCMIN:
                        type: integer
                        format: int64
                        description: CPE Term - Minimum of Commodity Rate Calculation
                      CALCMAX:
                        type: integer
                        format: int64
                        description: CPE Term - Maximum of Commodity Rate Calculation
                      CALCMMCURR:
                        type: string
                        maxLength: 5
                        description: CPE Term - Currency of Rate Calculation Limits
                      CALCMMPRUN:
                        type: integer
                        format: int64
                        description: CPE Term - Price Unit of Rate Calculation Limits
                      CALCMMUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure for Rate Limits
                      SURCHARGEROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Surcharge Routine
                      SURCHARGEABS:
                        type: integer
                        format: int64
                        description: CPE Term - Absolute Surcharge for Commodity
                      SURCHARGECURR:
                        type: string
                        maxLength: 5
                        description: CPE Term - Currency of Absolute Surcharge
                      SURCHARGEPRUN:
                        type: integer
                        format: int64
                        description: CPE Term - Price Unit of Absolute Surcharge
                      SURCHARGEUOM:
                        type: string
                        maxLength: 3
                        description: CPE Term - Unit of Measure of Absolute Surcharge
                      SURCHARGEFACTOR1:
                        type: integer
                        format: int64
                        description: CPE Term - Factor 1 when Combining Surcharge and Quotation
                      SURCHARGEFACTOR2:
                        type: integer
                        format: int64
                        description: CPE Term - Factor 2 when Combining Surcharge and Quotation
                      FIXTERMRATE_ISO:
                        type: integer
                        format: int64
                        description: Currency amount for BAPIS (with 9 decimal places)
                      FIXTERMCURR_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code currency
                      FIXTERMUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      USERUOM1_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      CALCMIN_ISO:
                        type: integer
                        format: int64
                        description: Currency amount for BAPIS (with 9 decimal places)
                      CALCMAX_ISO:
                        type: integer
                        format: int64
                        description: Currency amount for BAPIS (with 9 decimal places)
                      CALCMMCURR_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code currency
                      CALCMMUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      SURCHARGEABS_ISO:
                        type: integer
                        format: int64
                        description: Currency amount for BAPIS (with 9 decimal places)
                      SURCHARGECUR_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code currency
                      SURCHARGEUOM_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                IT_BAPI_CPE_TERMIN_USER:
                  type: array
                  items:
                    type: object
                    properties:
                      OPERATION:
                        type: string
                        maxLength: 3
                        description: Function
                      TERMINPUT_GUID:
                        type: string
                        format: byte
                        description: CPE Term - GUID of Changed General Input
              required:
              - IT_BAPI_CPE_TERMINPUT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_CPED_TERMINPUT:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        TERMINPUT_GUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID of Changed General Input
                        TERMTYPE:
                          type: integer
                          format: int64
                          description: CPE Term - Term Calculation Type
                        TERMRULE:
                          type: string
                          maxLength: 5
                          description: CPE Term - Term Rule
                        QUOTSRC:
                          type: string
                          maxLength: 2
                          description: Quotation Source
                        QUOTTYPE:
                          type: string
                          maxLength: 5
                          description: Quotation Type
                        QUOTNAME:
                          type: string
                          maxLength: 18
                          description: Quotation Name
                        QUOTGROUP:
                          type: string
                          maxLength: 5
                          description: Quotation Group
                        REFDOCCAT:
                          type: integer
                          format: int64
                          description: CPE Term - Reference Document Category
                        REFDOC:
                          type: string
                          maxLength: 10
                          description: CPE Term - Reference Document Number
                        REFITEM:
                          type: string
                          maxLength: 10
                          description: CPE Term - Reference Document Item Number
                        REFGUID:
                          type: string
                          format: byte
                          description: CPE Term - GUID of Reference Document Item
                        REFCOND:
                          type: string
                          maxLength: 4
                          description: CPE Term - Reference Condition Type
                        FIXTERMRATE:
                          type: integer
                          format: int64
                          description: CPE Term - Fixed Rate
                        FIXTERMCURR:
                          type: string
                          maxLength: 5
                          description: CPE - Currency for Fixed Value
                        FIXTERMPRUN:
                          type: integer
                          format: int64
                          description: CPE - Price Unit of Fixed Rate
                        FIXTERMUOM:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure of Fixed Rate
                        USERVAL1:
                          type: integer
                          format: int64
                          description: CPE Term - Freely Usable Field
                        USERUOM1:
                          type: string
                          maxLength: 3
                          description: CPE Term - Freely Usable Unit of Measure Field
                        CALCRULE:
                          type: string
                          maxLength: 5
                          description: CPE Term - Calculation Rule
                        SURCHARGERULE:
                          type: string
                          maxLength: 5
                          description: CPE Term - Surcharge Rule
                        PERDETRULE_Q:
                          type: string
                          maxLength: 5
                          description: CPE Term - Period Determination Rule for Commodity Rates
                        PERDETRULE_C:
                          type: string
                          maxLength: 5
                          description: CPE Term - Period Determ. Rule for Currency Exchange Rates
                        PERDTIN_GUID_Q:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Changed Input of Period Determination
                        PERDTIN_GUID_C:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Changed Input of Period Determination
                        CALCROUT:
                          type: integer
                          format: int64
                          description: CPE Term - Calculation Routine
                        CALCMIN:
                          type: integer
                          format: int64
                          description: CPE Term - Minimum of Commodity Rate Calculation
                        CALCMAX:
                          type: integer
                          format: int64
                          description: CPE Term - Maximum of Commodity Rate Calculation
                        CALCMMCURR:
                          type: string
                          maxLength: 5
                          description: CPE Term - Currency of Rate Calculation Limits
                        CALCMMPRUN:
                          type: integer
                          format: int64
                          description: CPE Term - Price Unit of Rate Calculation Limits
                        CALCMMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - Unit of Measure for Rate Limits
                        SURCHARGEROUT:
                          type: integer
                          format: int64
                          description: CPE Term - Surcharge Routine
                        SURCHARGEABS:
                          type: integer
                          format: int64
                          description: CPE Term - Absolute Surcharge for Commodity
                        SURCHARGECURR:
                          type: string
                          maxLength: 5
                          description: CPE Term - Currency of Absolute Surcharge
                        SURCHARGEPRUN:
                          type: integer
                          format: int64
                          description: CPE Term - Price Unit of Absolute Surcharge
                        SURCHARGEUOM:
                          type: string
                          maxLength: 3
                          description: CPE Term - Unit of Measure of Absolute Surcharge
                        SURCHARGEFACTOR1:
                          type: integer
                          format: int64
                          description: CPE Term - Factor 1 when Combining Surcharge and Quotation
                        SURCHARGEFACTOR2:
                          type: integer
                          format: int64
                          description: CPE Term - Factor 2 when Combining Surcharge and Quotation
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
