openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXPG_STEP_XPG_START:
    post:
      tags:
      - SSXP
      operationId: /rfc/SXPG_STEP_XPG_START
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BATCH:
                  type: string
                  maxLength: 1
                CONNCNTL:
                  type: string
                  default: H
                  maxLength: 1
                DESTINATION:
                  type: string
                  maxLength: 32
                EXTPROG:
                  type: string
                  maxLength: 128
                  description: Name of External Program
                JOBCOUNT:
                  type: string
                  maxLength: 8
                JOBNAME:
                  type: string
                  maxLength: 32
                LONG_PARAMS:
                  type: string
                  maxLength: 1024
                PARAMS:
                  type: string
                  maxLength: 255
                  description: Parameters of external program
                STDERRCNTL:
                  type: string
                  maxLength: 1
                STDINCNTL:
                  type: string
                  maxLength: 1
                STDOUTCNTL:
                  type: string
                  maxLength: 1
                STEPCOUNT:
                  type: integer
                  format: int32
                TARGET:
                  type: string
                  maxLength: 1024
                TERMCNTL:
                  type: string
                  maxLength: 1
                TRACECNTL:
                  type: string
                  maxLength: 1
                  description: Trace level
                TRACELEVEL:
                  type: integer
                  format: int32
                  default: 0
                LOG:
                  type: array
                  items:
                    type: object
                    properties:
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
              required:
              - EXTPROG
              - PARAMS
              - STDERRCNTL
              - STDINCNTL
              - STDOUTCNTL
              - TERMCNTL
              - TRACECNTL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CONVID:
                    type: string
                    maxLength: 8
                  EXITCODE:
                    type: integer
                    format: int32
                  EXITSTAT:
                    type: string
                    maxLength: 1
                  LAST_HOST:
                    type: string
                    maxLength: 100
                  LAST_PROC:
                    type: string
                    maxLength: 8
                  LAST_PROC_NUM:
                    type: string
                    maxLength: 2
                  STRTSTAT:
                    type: string
                    maxLength: 1
                  XPGID:
                    type: integer
                    format: int32
                  LOG:
                    type: array
                    items:
                      type: object
                      properties:
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
