openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_CPEDOC_RFC_FORMREF_GET_OW:
    post:
      tags:
      - CPE_CPEDOC_OW
      summary: 'CPE Doc: Read Reference Data of Formulas'
      operationId: /rfc/CPE_CPEDOC_RFC_FORMREF_GET_OW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_DOCITEM_GUID:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCITEM_GUID:
                        type: string
                        format: byte
                        description: CPE Caller - GUID of Document Item
                IV_AUTHORIZATION_APPL:
                  type: string
                  default: ' '
                  maxLength: 4
                  description: CPE Caller - Application using CPE
                IV_AUTHORIZATION_DOCCT:
                  type: integer
                  format: int64
                  default: 0
                  description: CPE Caller - Document Category
                IV_AUTHORIZATION_ORG:
                  type: string
                  default: ' '
                  maxLength: 14
                  description: CPE Caller - Organization
                IV_VALIDFROM:
                  type: string
                  maxLength: 14
                  description: CPE - 'Valid From' Time Stamp of Commodity Pricing Object
              required:
              - IT_DOCITEM_GUID
              - IV_AUTHORIZATION_APPL
              - IV_AUTHORIZATION_DOCCT
              - IV_AUTHORIZATION_ORG
              - IV_VALIDFROM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_FORMREF:
                    type: array
                    items:
                      type: object
                      properties:
                        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
                        FORMRATE:
                          type: integer
                          format: int64
                          description: CPE Formula - Rate in Formula Currency
                        FORMCURR:
                          type: string
                          maxLength: 5
                          description: CPE Formula - Currency
                        FORMPRUN:
                          type: integer
                          format: int64
                          description: CPE Formula - Price Unit
                        FORMUOM:
                          type: string
                          maxLength: 3
                          description: CPE Formula - Unit of Measure
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
