MSQJOBSTEP SAP (MS SQL server jobsteps ( as from msdb..sysjobsteps)) Structure details
Description: MS SQL server jobsteps ( as from msdb..sysjobsteps)
Structure field list including key, data, relationships and ABAP select examples
MSQJOBSTEP is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "MS SQL server jobsteps ( as from msdb..sysjobsteps)" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_MSQJOBSTEP TYPE MSQJOBSTEP.
The MSQJOBSTEP table consists of various fields, each holding specific information or linking keys about MS SQL server jobsteps ( as from msdb..sysjobsteps) data available in SAP. These include STEPID (MS SQL Server - the ID of the step in the job), STEPNAME (MS SQL server - the name of the step), SUBSYSTEM (MS SQL server - Name of the subsystem used for job execution), JOBCOMMAND (MS SQL server - command executed by the subsytem).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP MSQJOBSTEP structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
JOBID | MS SQL Server job ID | MSQJOBID | RAW | 16 | MSQHEX16 | ||||
STEPID | MS SQL Server - the ID of the step in the job | MSQJBSTPID | INT4 | 10 | INT4 | ||||
STEPNAME | MS SQL server - the name of the step | MSQJBSTPNA | CHAR | 100 | CHAR100 | ||||
SUBSYSTEM | MS SQL server - Name of the subsystem used for job execution | MSQSUBSYS | CHAR | 60 | CHAR60 | ||||
JOBCOMMAND | MS SQL server - command executed by the subsytem | MSQJOBCMD | CHAR | 520 | CHAR520 | ||||
SUCCESSCDE | MS SQL server - success code returned by cmdexe subsystem | MSQSUCCCDE | INT4 | 10 | INT4 | ||||
SUCCESSACT | MS SQL server - action to be performed after job success | MSQSUCCACT | INT2 | 5 | INT2 | ||||
SUCCESSSTP | MS SQL Server - next step ID in job after job step success | MSQSUCSTID | INT4 | 10 | INT4 | ||||
FAILACT | MSSQL Server - action to be performed after job step failure | MSQFAIACT | INT2 | 5 | INT2 | ||||
FAILSTP | MS SQL server - next step after the failure of job step | MSQFAISTID | INT4 | 10 | INT4 | ||||
DBASENAME | MS SQL server - name of the database in which job is exec. | MSQJBDNAME | CHAR | 64 | CHAR64 | ||||
DBASEUNAME | MS SQL server - name of db user executing the step | MSQJBUNAME | CHAR | 64 | CHAR64 | ||||
RETRY | MS SQL server - retry attempts for the job or step | MSQRETATTE | INT4 | 10 | INT4 | ||||
RETRYINT | MS SQL server - wait interval between retry attempts | MSQRETINTE | INT4 | 10 | INT4 | ||||
OUTPUTFILE | MS SQL server - the name of the job step's output file | MSQJBOUTFL | CHAR | 255 | CHAR255 | ||||
LSTRUNSTA | MS SQL server - status of the previous exec. job step. | MSQLSTRUST | INT4 | 10 | INT4 | ||||
LSTRUNDU | MS SQL server - time taken for the previous exec of the job | MSQLSTRUDU | INT4 | 10 | INT4 | ||||
LSTRUNRET | MS SQL server - retry attempts of the last exec. of the job | MSQLSTRURE | INT4 | 10 | INT4 | ||||
LSTRUNDT | MS SQL server - date of the job step's prev execution | MSQLSTRUDT | INT4 | 10 | INT4 | ||||
LSTRUNTI | MS SQL server - time of the job step's previous execution | MSQLSTRUTI | INT4 | 10 | INT4 |
Key field | Non-key field |
How do I retrieve data from SAP structure MSQJOBSTEP using ABAP code?
As MSQJOBSTEP is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MSQJOBSTEP as there is no data to select.How to access SAP table MSQJOBSTEP
Within an ECC or HANA version of SAP you can also view further information about MSQJOBSTEP and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects