SAP Reports / Programs

O2_WAPP_RECOVER_VERSION SAP ABAP Report - O2: Program to Reload Version







O2_WAPP_RECOVER_VERSION 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 O2_WAPP_RECOVER_VERSION 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 O2_WAPP_RECOVER_VERSION. "Basic submit
SUBMIT O2_WAPP_RECOVER_VERSION AND RETURN. "Return to original report after report execution complete
SUBMIT O2_WAPP_RECOVER_VERSION 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: VERSNO = D Version Number
Selection Text: OBJTYPE = D Object Type
Selection Text: OBJNAME = D Object name
Title: O2: Program to Reload Version
Text Symbol: T01 = Restore Version
Text Symbol: D02 = Cancel
Text Symbol: D01 = Cont.
Text Symbol: 001 = Do you want to continue processing?


INCLUDES used within this REPORT O2_WAPP_RECOVER_VERSION

No INCLUDES are used within this REPORT code!


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 global_lock = 'X' mode = so2_access_modify object = ls_pagekey object_class = so2_page_trobject suppress_language_check = suppr_langu_check suppress_upgrade_check = 'X' importing modification_language = ls_modif_l tadire = ls_tadir devclass = ls_devclass EXCEPTIONS permission_failure = 1 OTHERS = 9.

SVRS_GET_VERSION_WAPP_40 * CALL FUNCTION 'SVRS_GET_VERSION_WAPP_40' * EXPORTING * object_name = p_objname * versno = p_versno * TABLES * pagedir = lt_pagedir * pagedirt = lt_pagedirt * pagecon = lt_pagecon * pagepar = lt_pagepar * pagepart = lt_pagepart * pageevh = lt_events * EXCEPTIONS * no_version = 1 * system_failure = 2 * communication_failure = 3 * OTHERS = 4.

SVRS_AFTER_CHANGED_ONLINE_NEW CALL FUNCTION 'SVRS_AFTER_CHANGED_ONLINE_NEW' EXPORTING e071_entry = ls_e071 IMPORTING version_new = lv_versnum EXCEPTIONS non_versionable_objtype = 1 * Keine Meldung sondern weitermachachen, da der CORR_INSERT auf * jeden Fall eine neue Version zieht und die Fehlermeldungen hier * irrelevant sind.

O2_WAPP_INSERT_OBJECT * CALL FUNCTION 'O2_WAPP_INSERT_OBJECT' * EXPORTING * page_key = ls_pagekey * TABLES * pagedir = lt_pagedir * pagedirt = lt_pagedirt * pagecon = lt_pagecon * pagepar = lt_pagepar * pagepart = lt_pagepart * events = lt_events * EXCEPTIONS * OTHERS = 1.

O2_GET_WAPA_SOURCEN CALL FUNCTION 'O2_GET_WAPA_SOURCEN' EXPORTING p_objname = p_objname p_versno = p_versno p_langu = p_langu p_master_l = p_master_l p_devclass = p_devclass IMPORTING pt_page_content = lt_page_content pt_ev_handler = lt_ev_handler pt_typesource = lt_typesource pt_parameters = lt_parameters ps_page_attr = ls_page_attr pt_used_guids = lt_used_guids.

RS_INSERT_INTO_WORKING_AREA CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA' EXPORTING object = so2_page_trobject obj_name = lv_obj_name EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-t01 diagnose_object = 'BC_CPAG_RECOVER_VERSION' text_question = text-001 text_button_1 = 'Weiter'(d01) icon_button_1 = 'ICON_OKAY' text_button_2 = 'Abbrechen'(d02) icon_button_2 = 'ICON_CANCEL' default_button = '2' display_cancel_button = ' ' popup_type = 'ICON_MESSAGE_WARNING' IMPORTING answer = lv_answer TABLES parameter = lt_parameter EXCEPTIONS OTHERS = 0.



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