openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAP_PERIODDTOUT_TO_BAPI:
    post:
      tags:
      - CPE_MAP_DOC_BAPI
      summary: CPE_D - Period Determination Out - Mapping Doc. to BAPI
      operationId: /rfc/CPE_MAP_PERIODDTOUT_TO_BAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CPED_PERIODDTOUT:
                  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
                IV_OPERATION_PERIODDTOUT:
                  type: string
                  maxLength: 3
                  description: Function
              required:
              - IT_CPED_PERIODDTOUT
              - IV_OPERATION_PERIODDTOUT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
