SAP Reports / Programs | Basis Components | ABAP Runtime Environment | Syntax, Compiler, Runtime(BC-ABA-LA) SAP BC

CONTEXTV SAP ABAP Report - Contexts: Replace Version







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


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 CONTEXTV. "Basic submit
SUBMIT CONTEXTV AND RETURN. "Return to original report after report execution complete
SUBMIT CONTEXTV VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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


INCLUDES used within this REPORT CONTEXTV

INCLUDE CONTEXTI.


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:

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.



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 CONTEXTV or its description.