openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPE_EXECUTE:
    post:
      tags:
      - SRSE
      summary: ABAP Remote Processing Engine
      operationId: /rfc/RPE_EXECUTE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT_HOST:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: ESF-Clienthost
                LAST_TRIPTIME:
                  type: integer
                  format: int32
                  default: 0
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT:
                        type: string
                        description: Reference of Object Key
                      OPCODE:
                        type: string
                        description: Operation Code for Engine
                      METHOD:
                        type: string
                        description: Method Name
                      BEG_IMP_PARMS:
                        type: string
                        description: Index of Importing Parameters in PARAMS Table
                      CNT_IMP_PARMS:
                        type: string
                        description: Number of Importing Parameters
                      BEG_OUT_PARMS:
                        type: string
                        description: Index of Exporting Parameters in PARAMS Table
                      CNT_OUT_PARMS:
                        type: string
                        description: Number of Exporting Parameters
                PARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        description: Parameter Name
                      TYPE:
                        type: string
                        description: Parameter Type
                      VALUE:
                        type: string
                        description: Value Index in the VALUES Table
                      META:
                        type: string
                        description: Meta Information for the Value Manager
                      KIND:
                        type: string
                        description: Parameter Type - 'E', 'I', 'R', or 'C'
                VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        format: byte
                        description: Value Data
              required:
              - LINES
              - PARAMS
              - VALUES
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERRORS:
                    type: array
                    items:
                      type: object
                      properties:
                        CATEGORY:
                          type: string
                          description: Error Category
                        LINE:
                          type: string
                          description: Script Line Index
                        CLASS:
                          type: string
                          description: Class Name of Object that Causes the Exception
                        PARAM:
                          type: string
                          description: Index of Parameter that Causes the Exception
                        VALUE:
                          type: string
                          description: Index of Value that Causes the Exception
                        CODE:
                          type: string
                          description: Exception Code
                        STATE:
                          type: string
                          description: State of the Engine
                        DESCRIPTION:
                          type: string
                          description: Exception Description
                        LOCATION:
                          type: string
                          description: Error Location (<Program> / <Include> / <Source Line>)
                  RETURNS:
                    type: array
                    items:
                      type: object
                      properties:
                        VINDX:
                          type: string
                          description: Index of Return Value in RSE_VALUES_TAB
                        VALUE:
                          type: string
                          format: byte
                          description: Data of Return Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
