openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_TEST_SIMULATE_DOC_CREATION:
    post:
      tags:
      - CPE_TEST
      summary: 'CPE Test: Simulate creation of document formulas'
      operationId: /rfc/CPE_TEST_SIMULATE_DOC_CREATION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_APPLICATION:
                  type: string
                  maxLength: 4
                  description: CPE Caller - Application using CPE
                IV_APPSERV:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_DISPLAYLIST:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_ITEM_NUMBERS:
                  type: integer
                  format: int32
                  default: 1
                  description: 2 byte integer (signed)
                IV_ONLY_DEFAULT_DATA:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_ONLY_INPUT_DATA:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_PRESSERV:
                  type: string
                  default: X
                  maxLength: 1
                  description: Single-character flag
                IV_SOURCE:
                  type: string
                  default: C:\CPE_TEST_DOC\
                  maxLength: 100
                  description: Character 100
              required:
              - IV_APPLICATION
              - IV_APPSERV
              - IV_DISPLAYLIST
              - IV_ITEM_NUMBERS
              - IV_ONLY_DEFAULT_DATA
              - IV_ONLY_INPUT_DATA
              - IV_PRESSERV
              - IV_SOURCE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_DOCITEMGUID:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCITEM_GUID:
                          type: string
                          format: byte
                          description: CPE Caller - GUID of Document Item
                  ET_DOC_GUID:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_GUID:
                          type: string
                          format: byte
                          description: CPE Caller  - GUID of Document Header
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
