MSSTASK SAP (MS SQL Server task description (as from msdb..systasks)) Structure details

Dictionary Type: Structure
Description: MS SQL Server task description (as from msdb..systasks)




ABAP Code to SELECT data from MSSTASK
Related tables to MSSTASK
Access table MSSTASK




Structure field list including key, data, relationships and ABAP select examples

MSSTASK 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 task description (as from msdb..systasks)" 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_MSSTASK TYPE MSSTASK.

The MSSTASK table consists of various fields, each holding specific information or linking keys about MS SQL Server task description (as from msdb..systasks) data available in SAP. These include TASKNAME (MS SQL Server task name), SUBSYSTEM (MS SQL Server subsystem used for a SQL task), SERVER (MS SQL Server server to be used for a SQL task execution), USERNAME (MS SQL Server user name).. 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 MSSTASK 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
TASKIDMS SQL Server task identifier MSSTASKIDINT410INT4
TASKNAMEMS SQL Server task name MSSTSKNAMECHAR128
SUBSYSTEMMS SQL Server subsystem used for a SQL task MSSSUBSYSTCHAR30TEXT30
SERVERMS SQL Server server to be used for a SQL task execution MSSSERVER_CHAR30TEXT30
USERNAMEMS SQL Server user name MSSUNAMECHAR30TEXT30
OWNERLOGINMS SQL Server login ID MSSLOGINIDINT25INT2
DBNAMEMS SQL Server: Database name MSSDDBNAMECHAR30TEXT30
ENABLEDMS SQL Server task enabled status bit MSSENABLEDINT13INT1
FREQTYPEMS SQL Server task frequency type MSSFREQTYPINT410INT4
FREQINTERMS SQL Server frequency interval MSSFREQINTINT410INT4
FREQSUBTYPMS SQL Server frequency sub type of a SQL task MSSFRQSTYPINT410INT4
FREQSUBINTMS SQL Server task frequency sub interval MSSFRQSINTINT410INT4
FREQRELINTMS SQL Server frequency relative interval of a SQL task MSSFRQRINTINT410INT4
FREQRECFACMS SQL Server task frequency recurrence factor MSSFRQRFACINT410INT4
ACTSTRTDATMS SQL Server task active start date MSSACTSDATINT410INT4
ACTENDDATEMS SQL Server task active end date MSSACTEDATINT410INT4
ACTSTRTTODMS SQL Server task active start time of day MSSACTSTODINT410INT4
LASTRUNDATMS SQL Server last run date for SQL task MSSLRUNDATINT410INT4
LASTRUNTIMMS SQL Server last task run time MSSLRUNTIMINT410INT4
NEXTRUNDATMS SQL Server next task run date MSSNRUNDATINT410INT4
NEXTRUNTIMMS SQL Server next task run time MSSNRUNTIMINT410INT4
RUNPRIOMS SQL Server task run priority MSSRUNPRIOINT410INT4
RETRYATTEMMS SQL Server task execution retry attempts MSSRETRYATINT410INT4
RETRYDELAYMS SQL Server task retry delay MSSRETRYDEINT410INT4
CREATEDATEMS SQL Server task creation date and time MSSCREDATECHAR20TEXT20
MODIFYDATEMS SQL Server task modification date and time MSSMODDATECHAR20TEXT20
COMMANDMS SQL Server task command MSSTASKCMDCHAR255TEXT255
LASTLEVELMS SQL Server last task execution status MSSLASTLVLINT410INT4
LASTDURATEMS SQL Server last task run duration MSSLASTDURINT410INT4
LASTNUMRETMS SQL Server number of retries for last execution MSSLASTNREINT410INT4
DESCRIPTMS SQL Server task description MSSDESCCHAR255TEXT255

Key field Non-key field



How do I retrieve data from SAP structure MSSTASK using ABAP code?

As MSSTASK 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 MSSTASK as there is no data to select.

How to access SAP table MSSTASK

Within an ECC or HANA version of SAP you can also view further information about MSSTASK and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!