openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_PERIODDTOUT_WRK_FROM_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_WORK_BAPI
      summary: CPE_D - Period Determination Out - Mapping BAPI to Doc. (WRK)
      operationId: /rfc/CPE_PERIODDTOUT_WRK_FROM_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_BAPI_CPE_PERIODDTOUT:
                  type: array
                  items:
                    type: object
                    properties:
                      OPERATION:
                        type: string
                        maxLength: 3
                        description: Function
                      PERIODDTOUT_GUID:
                        type: string
                        format: byte
                        description: CPE  Term - GUID for Result of Period Determination
                      INCOMPLETE:
                        type: string
                        maxLength: 1
                        description: CPE Term - Period Determination for Quotations Incomplete
                      PERIODSTATUS:
                        type: integer
                        format: int64
                        description: CPE Term - Status of Period Determination
                      FIRSTTIMESTAMP:
                        type: string
                        maxLength: 14
                        description: CPE Term - First Date and Time of Period Determined
                      LASTTIMESTAMP:
                        type: string
                        maxLength: 14
                        description: CPE Term - End Date and Time of Period Determined
                      READUNTILDATE:
                        type: string
                        maxLength: 14
                        description: CPE Term -Date/Time to Which Quotations/Exch. Rates are Read
                      LASTFOUNDDATE:
                        type: string
                        maxLength: 14
                        description: CPE Term - Date and Time of Last Entry Found
                      REFDATE:
                        type: string
                        format: date
                        description: 'CPE Term - Calculated Reference Date: not used anymore!'
                      BASEDATE:
                        type: string
                        maxLength: 14
                        description: CPE Term - Calculated Base Date and Time
                      REFTIMESTAMP:
                        type: string
                        maxLength: 14
                        description: CPE Term - Calculated Reference Date and Time
              required:
              - IT_BAPI_CPE_PERIODDTOUT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_CPET_PERIODDTOUT_WRK:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        PERIODDTOUT_GUID:
                          type: string
                          format: byte
                          description: CPE  Term - GUID for Result of Period Determination
                        INCOMPLETE:
                          type: string
                          maxLength: 1
                          description: CPE Term - Period Determination for Quotations Incomplete
                        PERIODSTATUS:
                          type: integer
                          format: int64
                          description: CPE Term - Status of Period Determination
                        FIRSTTIMESTAMP:
                          type: string
                          maxLength: 14
                          description: CPE Term - First Date and Time of Period Determined
                        LASTTIMESTAMP:
                          type: string
                          maxLength: 14
                          description: CPE Term - End Date and Time of Period Determined
                        READUNTILDATE:
                          type: string
                          maxLength: 14
                          description: CPE Term -Date/Time to Which Quotations/Exch. Rates are Read
                        LASTFOUNDDATE:
                          type: string
                          maxLength: 14
                          description: CPE Term - Date and Time of Last Entry Found
                        REFDATE:
                          type: string
                          format: date
                          description: 'CPE Term - Calculated Reference Date: not used anymore!'
                        BASEDATE:
                          type: string
                          maxLength: 14
                          description: CPE Term - Calculated Base Date and Time
                        REFTIMESTAMP:
                          type: string
                          maxLength: 14
                          description: CPE Term - Calculated Reference Date and Time
                        UPDKZ:
                          type: string
                          maxLength: 1
                          description: Update indicator
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
