openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXPG_CALL_SYSTEM:
    post:
      tags:
      - SXPT
      summary: Execute an External Command
      operationId: /rfc/SXPG_CALL_SYSTEM
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADDITIONAL_PARAMETERS:
                  type: string
                  default: ' '
                  maxLength: 255
                  description: Arguments for the External Command
                COMMANDNAME:
                  type: string
                  maxLength: 18
                  description: Name of External Command
                TRACE:
                  type: string
                  maxLength: 1
                  description: Control indicator for external programs (trace level)
                EXEC_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
              required:
              - COMMANDNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXITCODE:
                    type: integer
                    format: int32
                    description: Status of External Command
                  STATUS:
                    type: string
                    maxLength: 1
                    description: Status of External Command
                  EXEC_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
