openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_MAPPING_TEST:
    post:
      tags:
      - CPE_TEST
      summary: Test of CPE Mapping
      operationId: /rfc/CPE_MAPPING_TEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_APPLICATION:
                  type: string
                  default: 'V   '
                  maxLength: 4
                  description: CPE Caller - Application using CPE
                IV_APPSERV:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                IV_PRESSERV:
                  type: string
                  default: X
                  maxLength: 1
                  description: Single-character flag
                IV_SOURCE_FILE:
                  type: string
                  default: C:\CPE_TEST_DOC\
                  maxLength: 255
                  description: Char255
              required:
              - IV_APPLICATION
              - IV_APPSERV
              - IV_PRESSERV
              - IV_SOURCE_FILE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_LOG_MSG:
                    type: array
                    items:
                      type: object
                      properties:
                        PRIORITY:
                          type: integer
                          format: int64
                          description: CPE - Priority of Log Entry
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PROG_CLASS:
                          type: string
                          maxLength: 50
                          description: 'CPE - Log: Program'
                        FUNCTION:
                          type: string
                          maxLength: 50
                          description: 'CPE - Log: Function'
                        GUID_TYPE:
                          type: string
                          maxLength: 1
                          description: CPE - GUID Type
                        GUID:
                          type: string
                          format: byte
                          description: CPE - Object GUID
                        COND_TYPE:
                          type: string
                          maxLength: 4
                          description: 'CPE: Condition Type for Commodity Pricing'
                        CPE_MODULE:
                          type: string
                          maxLength: 2
                          description: CPE - Module of the Commodity Pricing Engine
                        SUBMODULE:
                          type: string
                          maxLength: 2
                          description: CPE Log - Submodule
                        STEP:
                          type: string
                          maxLength: 4
                          description: CPE Log - Step
                        LOG_NUMBER:
                          type: integer
                          format: int64
                          description: CPE Log - Number
                        TERMNO:
                          type: integer
                          format: int64
                          description: CPE Term - Number in Formula
                        COUNTER:
                          type: integer
                          format: int64
                          description: CPE Log - Counter
                        LOGICAL_KEY:
                          type: string
                          maxLength: 27
                          description: CPE Log - Logical Key for Messages
                        OUT_IN:
                          type: string
                          maxLength: 1
                          description: CPE Log - Output or Input
                        SORTNO:
                          type: integer
                          format: int64
                          description: CPE Log - Number for Sorting
                  ET_NAMEVALUEPAIRS_10:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Name of a structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Component name
                        VALUE:
                          type: string
                          maxLength: 10
                          description: Character Field Length = 10
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: Data Type in ABAP Dictionary
                  ET_NAMEVALUEPAIRS_255:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Name of a structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Component name
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Char255
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: Data Type in ABAP Dictionary
                  ET_NAMEVALUEPAIRS_50:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Name of a structure
                        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
                  TEST_ERROR_OCCURRED:
                    type: string
                    maxLength: 1
                    description: Single-character flag
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
