openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_PERIODDTIN_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Period Determination In - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_PERIODDTIN_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_PERIODDTIN:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      PERIODDTIN_GUID:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Changed Input of Period Determination
                      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
                      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
                IV_OPERATION_PERIODDTIN:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_PERIODDTIN
              - IV_OPERATION_PERIODDTIN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPI_CPE_PERIODDTIN:
                    type: array
                    items:
                      type: object
                      properties:
                        OPERATION:
                          type: string
                          maxLength: 3
                          description: Function
                        PERIODDTIN_GUID:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Changed Input of Period Determination
                        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
                        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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
