openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_JOB_HIST_STEPS:
    post:
      tags:
      - SFMSS_JOBS
      summary: MS SQL server function to get the list of SAP Job History Steps
      operationId: /rfc/GET_JOB_HIST_STEPS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CCMS_TYPE:
                  type: integer
                  format: int32
                  default: 1
                  description: MS SQL server - Job execution days in the week
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                JOBID:
                  type: string
                  format: byte
                  default: ''
                  description: MS SQL server job id
                NUM_OF_DAYS:
                  type: integer
                  format: int32
                  default: 30
                  description: MS SQL server - run time limit for dbcc commands
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                TASKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      STEPID:
                        type: integer
                        format: int32
                        description: MS SQL server - the id of the step in the job
                      STEPNAME:
                        type: string
                        maxLength: 100
                        description: MS SQL server - the name of the step
                      SUBSYSTEM:
                        type: string
                        maxLength: 60
                        description: MS SQL server - Name of the subsystem used for job execution
                      JOBCOMMAND:
                        type: string
                        maxLength: 520
                        description: MS SQL server - command executed by the subsytem
                      SUCCESSCDE:
                        type: integer
                        format: int32
                        description: MS SQL server - success code returned by cmdexe subsystem
                      SUCCESSACT:
                        type: integer
                        format: int32
                        description: MS SQL server - action to be performed after job success
                      SUCCESSSTP:
                        type: integer
                        format: int32
                        description: MS SQL server - the next step id in job after job success
                      FAILACT:
                        type: integer
                        format: int32
                        description: MS SQL server - action to be perfor. after job step failure
                      FAILSTP:
                        type: integer
                        format: int32
                        description: MS SQL server - next step after the failure of job step
                      DBASENAME:
                        type: string
                        maxLength: 64
                        description: MS SQL server - name of the database in which job is exec.
                      DBASEUNAME:
                        type: string
                        maxLength: 64
                        description: MS SQL server - name of db user executing the step
                      RETRY:
                        type: integer
                        format: int32
                        description: MS SQL server - retry attempts for the job or step
                      RETRYINT:
                        type: integer
                        format: int32
                        description: MS SQL server - wait interval between retry attempts
                      OUTPUTFILE:
                        type: string
                        maxLength: 255
                        description: MS SQL server - the name of the job step's output file
                      LSTRUNSTA:
                        type: integer
                        format: int32
                        description: MS SQL server  - status of the previous exec. job step.
                      LSTRUNDU:
                        type: integer
                        format: int32
                        description: MS SQL server - time taken for the previous exec of the job
                      LSTRUNRET:
                        type: integer
                        format: int32
                        description: MS SQL server - retry attempts of the last exec. of the job
                      LSTRUNDT:
                        type: integer
                        format: int32
                        description: MS SQL server - date of the job step's prev execution
                      LSTRUNTI:
                        type: integer
                        format: int32
                        description: MS SQL server - time of the job step's previous execution
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TASKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        STEPID:
                          type: integer
                          format: int32
                          description: MS SQL server - the id of the step in the job
                        STEPNAME:
                          type: string
                          maxLength: 100
                          description: MS SQL server - the name of the step
                        SUBSYSTEM:
                          type: string
                          maxLength: 60
                          description: MS SQL server - Name of the subsystem used for job execution
                        JOBCOMMAND:
                          type: string
                          maxLength: 520
                          description: MS SQL server - command executed by the subsytem
                        SUCCESSCDE:
                          type: integer
                          format: int32
                          description: MS SQL server - success code returned by cmdexe subsystem
                        SUCCESSACT:
                          type: integer
                          format: int32
                          description: MS SQL server - action to be performed after job success
                        SUCCESSSTP:
                          type: integer
                          format: int32
                          description: MS SQL server - the next step id in job after job success
                        FAILACT:
                          type: integer
                          format: int32
                          description: MS SQL server - action to be perfor. after job step failure
                        FAILSTP:
                          type: integer
                          format: int32
                          description: MS SQL server - next step after the failure of job step
                        DBASENAME:
                          type: string
                          maxLength: 64
                          description: MS SQL server - name of the database in which job is exec.
                        DBASEUNAME:
                          type: string
                          maxLength: 64
                          description: MS SQL server - name of db user executing the step
                        RETRY:
                          type: integer
                          format: int32
                          description: MS SQL server - retry attempts for the job or step
                        RETRYINT:
                          type: integer
                          format: int32
                          description: MS SQL server - wait interval between retry attempts
                        OUTPUTFILE:
                          type: string
                          maxLength: 255
                          description: MS SQL server - the name of the job step's output file
                        LSTRUNSTA:
                          type: integer
                          format: int32
                          description: MS SQL server  - status of the previous exec. job step.
                        LSTRUNDU:
                          type: integer
                          format: int32
                          description: MS SQL server - time taken for the previous exec of the job
                        LSTRUNRET:
                          type: integer
                          format: int32
                          description: MS SQL server - retry attempts of the last exec. of the job
                        LSTRUNDT:
                          type: integer
                          format: int32
                          description: MS SQL server - date of the job step's prev execution
                        LSTRUNTI:
                          type: integer
                          format: int32
                          description: MS SQL server - time of the job step's previous execution
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
