openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXPG_COMMAND_EXECUTE_LONG:
    post:
      tags:
      - SXPT
      operationId: /rfc/SXPG_COMMAND_EXECUTE_LONG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADDITIONAL_PARAMETERS:
                  type: string
                  maxLength: 255
                  description: Arguments for the External Command
                COMMANDNAME:
                  type: string
                  maxLength: 18
                  description: Name of External Command
                DESTINATION:
                  type: string
                  maxLength: 32
                  description: Target System
                DIALOG:
                  type: string
                  maxLength: 1
                  description: Character 1024
                LONG_PARAMS:
                  type: string
                  maxLength: 1024
                  description: Character 1024
                OPERATINGSYSTEM:
                  type: string
                  default: SY-OPSYS
                  maxLength: 10
                  description: Executing Host System
                STDERR:
                  type: string
                  default: X
                  maxLength: 1
                  description: Log STDERR Output Data
                STDOUT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Log STDOUT Output Data
                TARGETSYSTEM:
                  type: string
                  default: SY-HOST
                  maxLength: 1024
                  description: Target System
                TERMINATIONWAIT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Wait for Termination of Exteranl Command
                TRACE:
                  type: string
                  maxLength: 1
                  description: Perform Trace (Only for Tests)
                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: Exitcode of External Program
                  STATUS:
                    type: string
                    maxLength: 1
                    description: Status
                  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.
