openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_TEST_READ_FA_CALLER_DATA:
    post:
      tags:
      - CPE_TEST
      summary: CPE_D - Read FA caller data from file
      operationId: /rfc/CPE_TEST_READ_FA_CALLER_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_APPSERV:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_DISPLAYLIST:
                  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
                  maxLength: 100
                  description: Character 100
              required:
              - IV_APPSERV
              - IV_DISPLAYLIST
              - IV_PRESSERV
              - IV_SOURCE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_FA_CALLER_DATA:
                    type: object
                    properties:
                      HEADER_DATA:
                        type: object
                        properties:
                          DOC_GUID:
                            type: string
                            format: byte
                            description: CPE Caller  - GUID of Document Header
                          LOGSYS:
                            type: string
                            maxLength: 10
                            description: Logical system
                          APPLICATION:
                            type: string
                            maxLength: 4
                            description: CPE Caller - Application using CPE
                          ORGANIZATION:
                            type: string
                            maxLength: 14
                            description: CPE Caller - Organization
                          DOC_CATEGORY:
                            type: integer
                            format: int64
                            description: CPE Caller - Document Category
                          RFC_CONTEXT:
                            type: string
                            maxLength: 10
                            description: CPE Caller - Context of RFC Destination
                          ASSEMBLY_DATE:
                            type: string
                            maxLength: 14
                            description: CPE Formula - Assembly Date and Time
                          PRC_PROCEDURE:
                            type: string
                            maxLength: 6
                            description: CPE Caller - Pricing Procedure
                          CPE_FA_PROCEDURE:
                            type: string
                            maxLength: 6
                            description: CPE Caller - Formula Assembly Procedure
                          CPE_FA_ROUTINE:
                            type: integer
                            format: int64
                            description: CPE - Routine
                          ATTRIBUTES:
                            type: array
                            items:
                              type: object
                              properties:
                                FIELDNAME:
                                  type: string
                                  maxLength: 30
                                  description: Component name
                                VALUE:
                                  type: string
                                  maxLength: 50
                                  description: Comment
                                DATATYPE:
                                  type: string
                                  maxLength: 4
                                  description: Data Type in ABAP Dictionary
                      ITEM_DATA:
                        type: array
                        items:
                          type: object
                          properties:
                            DOCITEM_GUID:
                              type: string
                              format: byte
                              description: CPE Caller - GUID of Document Item
                            DOC_CATEGORY:
                              type: integer
                              format: int64
                              description: CPE Caller - Document Category
                            ASSEMBLY_DATE:
                              type: string
                              maxLength: 14
                              description: CPE Formula - Assembly Date and Time
                            ATTRIBUTES:
                              type: array
                              items:
                                type: object
                                properties:
                                  FIELDNAME:
                                    type: string
                                    maxLength: 30
                                    description: Component name
                                  VALUE:
                                    type: string
                                    maxLength: 50
                                    description: Comment
                                  DATATYPE:
                                    type: string
                                    maxLength: 4
                                    description: Data Type in ABAP Dictionary
                      COND_TYPES:
                        type: array
                        items:
                          type: string
                          maxLength: 4
                          description: 'CPE: Condition Type for Commodity Pricing'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
