CONTEXTV is a standard Executable ABAP Report 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 CONTEXTV into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: OBJNAME = Context
Selection Text: VERSNO = Version
Title: Contexts: Replace Version
Text Symbol: 001 = Get version
Text Symbol: 002 = The current version will be overwritten;
Text Symbol: 003 = it will be saved temporarily first
Text Symbol: 004 = Context
Text Symbol: 005 = Generated program for the context
INCLUDE CONTEXTI.
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TITEL = 'Version holen'(001) TEXTLINE1 = 'Die aktuelle Version wird überschrieben;'(002) TEXTLINE2 = 'davor wird sie allerdings temporär gesichert'(003) IMPORTING ANSWER = L_ANSWER. "#EC *
SVRS_GET_VERSION_CNTX_40 CALL FUNCTION 'SVRS_GET_VERSION_CNTX_40' EXPORTING OBJECT_NAME = OBJNAME VERSNO = VERSNO TABLES TRDIR_TAB = L_TRDIR_TAB REPOS_TAB = L_SOURCE EXCEPTIONS NO_VERSION = 1 SYSTEM_FAILURE = 2 COMMUNICATION_FAILURE = 3 OTHERS = 4.
RS_CORR_INSERT CALL FUNCTION 'RS_CORR_INSERT' EXPORTING OBJECT = CNTX_ID OBJECT_CLASS = 'CNTX' MODE = ACCESS_MODE GLOBAL_LOCK = 'X' MASTER_LANGUAGE = SY-LANGU EXCEPTIONS OTHERS = 4.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.