openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_TERM_ALL_READ_CB:
    post:
      tags:
      - CPE_TERM_CB
      summary: 'CPE - Term: Read all Term Data from Customizing Buffer'
      operationId: /rfc/CPE_TERM_ALL_READ_CB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_COND_TYPE:
                  type: string
                  maxLength: 4
                  description: Condition type
                IV_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language Key
                IV_LOGSYS:
                  type: string
                  maxLength: 10
                  description: Logical system
                IV_NO_BUFFER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_TERMID:
                  type: string
                  maxLength: 10
                  description: CPE Term -  Key
                IV_VALIDTO:
                  type: string
                  maxLength: 14
                  description: CPE - 'Valid To' Time Stamp of Commodity Pricing Object
              required:
              - IV_COND_TYPE
              - IV_LOGSYS
              - IV_TERMID
              - IV_VALIDTO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_CALCRULE:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      CALCRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Calculation Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      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
                  ES_PERIODDET_C:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      PERIODDETRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Period Determination Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      PERIODDETROUT:
                        type: integer
                        format: int64
                        description: CPE Term- Period Determination Routine for Commodity Pricing
                      SOURCEROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Source Routine for Price Quot. or Curr. Ex. Rates
                      REFDATEROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Reference Date and Time Routine
                      DATEOFFSETROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Date Offset Routine for Period Determination
                      OFFSETUNITS:
                        type: integer
                        format: int64
                        description: CPE Term - Number of Time Units for Date Offset Routine
                      TIMEUOMROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Time UoM Routine
                      TIMEUNITSBEF:
                        type: integer
                        format: int64
                        description: CPE Term - Time Units Before Calculated Base Date
                      TIMEUNITSAFT:
                        type: integer
                        format: int64
                        description: CPE Term - Time Units After Calculated Base Date
                      EXCL_BASEDATE:
                        type: string
                        maxLength: 1
                        description: 'CPE Term - Exclude Base Date  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      DATEFROM:
                        type: string
                        format: date
                        description: CPE Term - Start Date for Fixed Period
                      TIMEFROM:
                        type: string
                        maxLength: 6
                        description: CPE Term - Start Time for Fixed Period
                      DATETO:
                        type: string
                        format: date
                        description: CPE Term - End Date for Fixed Period
                      TIMETO:
                        type: string
                        maxLength: 6
                        description: CPE Term - End Time for Fixed Period
                      READUNTILROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Read-Until Routine for Quotation/Exchange Rate
                      DATELISTROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Date List Routine for Period Determination
                      PERDETCALID:
                        type: string
                        maxLength: 2
                        description: CPE Term - Calendar Used for Period Determination
                      MISSENTRYROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Routine for Missing Entry Used for Period Determ.
                      CLOSEDDAYSROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Routine for Closed Market Days
                      MAXWEIGHTING:
                        type: integer
                        format: int64
                        description: CPE Term - Maximum Weighting of a Element During Averaging
                  ES_PERIODDET_Q:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      PERIODDETRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Period Determination Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      PERIODDETROUT:
                        type: integer
                        format: int64
                        description: CPE Term- Period Determination Routine for Commodity Pricing
                      SOURCEROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Source Routine for Price Quot. or Curr. Ex. Rates
                      REFDATEROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Reference Date and Time Routine
                      DATEOFFSETROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Date Offset Routine for Period Determination
                      OFFSETUNITS:
                        type: integer
                        format: int64
                        description: CPE Term - Number of Time Units for Date Offset Routine
                      TIMEUOMROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Time UoM Routine
                      TIMEUNITSBEF:
                        type: integer
                        format: int64
                        description: CPE Term - Time Units Before Calculated Base Date
                      TIMEUNITSAFT:
                        type: integer
                        format: int64
                        description: CPE Term - Time Units After Calculated Base Date
                      EXCL_BASEDATE:
                        type: string
                        maxLength: 1
                        description: 'CPE Term - Exclude Base Date  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      DATEFROM:
                        type: string
                        format: date
                        description: CPE Term - Start Date for Fixed Period
                      TIMEFROM:
                        type: string
                        maxLength: 6
                        description: CPE Term - Start Time for Fixed Period
                      DATETO:
                        type: string
                        format: date
                        description: CPE Term - End Date for Fixed Period
                      TIMETO:
                        type: string
                        maxLength: 6
                        description: CPE Term - End Time for Fixed Period
                      READUNTILROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Read-Until Routine for Quotation/Exchange Rate
                      DATELISTROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Date List Routine for Period Determination
                      PERDETCALID:
                        type: string
                        maxLength: 2
                        description: CPE Term - Calendar Used for Period Determination
                      MISSENTRYROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Routine for Missing Entry Used for Period Determ.
                      CLOSEDDAYSROUT:
                        type: integer
                        format: int64
                        description: CPE Term - Routine for Closed Market Days
                      MAXWEIGHTING:
                        type: integer
                        format: int64
                        description: CPE Term - Maximum Weighting of a Element During Averaging
                  ES_SURCHARGE:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      SURCHARGERULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Surcharge Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      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
                  ES_TERM:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      TERMID:
                        type: string
                        maxLength: 10
                        description: CPE Term -  Key
                      COND_TYPE:
                        type: string
                        maxLength: 4
                        description: 'CPE: Condition Type for Commodity Pricing'
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      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  enumValues: 020=Commodity Coverage,007=Credit Memo Request,009=Invoice,019=Purchase Contract,015=Credit Memo Cancellation,018=Purchase Order,017=Returns Delivery for Order,001=Inquiry,013=Credit Memo,012=Intercompany Credit Memo,002=Quotation,006=Returns,014=Debit Memo,011=Intercompany Invoice,021=Opportunity,010=Invoice Cancellation,004=Contract,016=Goods Movement,003=Sales Order,005=Master Contract,008=Debit Memo Request'
                        enum:
                        - '020'
                        - '007'
                        - '009'
                        - '019'
                        - '015'
                        - '018'
                        - '017'
                        - '001'
                        - '013'
                        - '012'
                        - '002'
                        - '006'
                        - '014'
                        - '011'
                        - '021'
                        - '010'
                        - '004'
                        - '016'
                        - '003'
                        - '005'
                        - '008'
                      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
                  ES_TERMRULE:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      TERMRULE:
                        type: string
                        maxLength: 5
                        description: CPE Term - Term Rule
                      VALIDTO:
                        type: string
                        maxLength: 14
                        description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                      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
                  ET_TERMCONV:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        TERMID:
                          type: string
                          maxLength: 10
                          description: CPE Term -  Key
                        COND_TYPE:
                          type: string
                          maxLength: 4
                          description: 'CPE: Condition Type for Commodity Pricing'
                        VALIDTO:
                          type: string
                          maxLength: 14
                          description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                        CONVPLACE:
                          type: integer
                          format: int64
                          description: CPE - Conversion Place
                        CURRFROM:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted During Conversion ('from')
                        UOMFROM:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure to Be Converted During Conv. ('From')
                        CURRTO:
                          type: string
                          maxLength: 5
                          description: CPE - Currency to Be Converted to During Conversion ('to')
                        UOMTO:
                          type: string
                          maxLength: 3
                          description: CPE - Unit of Measure Converted to During Conversion
                        CONVERSIONRULE:
                          type: string
                          maxLength: 5
                          description: CPE - Conversion Rule
                        FIXEXCHRATE:
                          type: integer
                          format: int64
                          description: CPE Term - Fixed Exchange Rate for Currency Conversion
                        FACTORFROM:
                          type: integer
                          format: int64
                          description: CPE - From-Factor for Conversion
                        FACTORTO:
                          type: integer
                          format: int64
                          description: CPE - To-Factor for Conversion
                  ET_TERMROUND:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        TERMID:
                          type: string
                          maxLength: 10
                          description: CPE Term -  Key
                        COND_TYPE:
                          type: string
                          maxLength: 4
                          description: 'CPE: Condition Type for Commodity Pricing'
                        VALIDTO:
                          type: string
                          maxLength: 14
                          description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
                        CONVPLACE:
                          type: integer
                          format: int64
                          description: CPE - Conversion Place
                        ROUNDRULE:
                          type: string
                          maxLength: 5
                          description: CPE - Rounding Rule
                  EV_CALCRULETEXT:
                    type: string
                    maxLength: 40
                    description: Description
                  EV_PERDETRULETEXT_C:
                    type: string
                    maxLength: 40
                    description: Description
                  EV_PERDETRULETEXT_Q:
                    type: string
                    maxLength: 40
                    description: Description
                  EV_SURCHARGERULETEXT:
                    type: string
                    maxLength: 40
                    description: Description
                  EV_TERMRULETEXT:
                    type: string
                    maxLength: 40
                    description: Description
                  EV_TERMTEXT:
                    type: string
                    maxLength: 40
                    description: Description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
