SAP Reports / Programs

CONTEXT2 SAP ABAP dialog Program - Contexts: Dialog operations







CONTEXT2 is a standard Module pool for a dialog screen ABAP Program available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter CONTEXT2 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT CONTEXT2. "Basic submit
SUBMIT CONTEXT2 AND RETURN. "Return to original report after report execution complete
SUBMIT CONTEXT2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Contexts: Dialog operations
Text Symbol: CTX = Context


INCLUDES used within this REPORT CONTEXT2

INCLUDE: CONTEXTI, CONTEXTJ.
INCLUDE: CONTEXTI, CONTEXTJ.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RS_ACCESS_PERMISSION CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING MODE = 'FREE' OBJECT = P_CONTEXT_ID OBJECT_CLASS = 'CNTX'.

RS_ACCESS_PERMISSION CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING MODE = P_MODE OBJECT = P_CONTEXT_ID OBJECT_CLASS = 'CNTX' GLOBAL_LOCK = 'X' EXCEPTIONS CANCELED_IN_CORR = 1 ENQUEUED_BY_USER = 2 ENQUEUE_SYSTEM_FAILURE = 3 ILLEGAL_PARAMETER_VALUES = 4 LOCKED_BY_AUTHOR = 5 NO_MODIFY_PERMISSION = 6 NO_SHOW_PERMISSION = 7 PERMISSION_FAILURE = 8 REQUEST_LANGUAGE_DENIED = 9 OTHERS = 10.

EDITOR_PROGRAM CALL FUNCTION 'EDITOR_PROGRAM' EXPORTING DISPLAY = DISPLAY PROGRAM = SPROG.

RS_TOOL_ACCESS CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING OPERATION = OPERATION OBJECT_NAME = SPROG OBJECT_TYPE = 'PROG'.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING LIST_TEXT = L_TEXT IMPORTING OUT_ARCHIVE_PARAMETERS = ARC_PARAMS OUT_PARAMETERS = PRI_PARAMS VALID = VALID.

SVRS_AFTER_CHANGED_ONLINE_NEW CALL FUNCTION 'SVRS_AFTER_CHANGED_ONLINE_NEW' EXPORTING e071_entry = L_TR_OBJ IMPORTING VERSION_NEW = P_VERSNO EXCEPTIONS NON_VERSIONABLE_OBJTYPE = 1 NO_TADIR_ENTRY = 2 OBJECT_NOT_FOUND = 3 OBJECT_NOT_LOCKED = 4 OTHERS = 5.

SVRS_DISPLAY_DIRECTORY_NEW CALL FUNCTION 'SVRS_DISPLAY_DIRECTORY_NEW' EXPORTING OBJECT_TYPE = 'CNTX' OBJECT_NAME = L_OBJECT_NAME DISPLAY = 'X' COMPARE = 'X' COMPARE_REMOTE = 'X' RECALL = 'X' EXCEPTIONS NO_DIRECTORY = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name CONTEXT2 or its description.