SAP Reports / Programs | Basis Components | Business Management | SAP Business Workflow(BC-BMT-WFM) SAP BC

RSWD_REPLICATE_FROM_9999 SAP ABAP Report - Create Missing Version from Transport Version







RSWD_REPLICATE_FROM_9999 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 RSWD_REPLICATE_FROM_9999 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 RSWD_REPLICATE_FROM_9999. "Basic submit
SUBMIT RSWD_REPLICATE_FROM_9999 AND RETURN. "Return to original report after report execution complete
SUBMIT RSWD_REPLICATE_FROM_9999 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: P_DISP = Display Only
Selection Text: P_EACH = All
Selection Text: P_EXEC = Create Version
Selection Text: P_SEL = Selected
Selection Text: P_WS = D .
Title: Create Missing Version from Transport Version
Text Symbol: T01 = Check for missing version for following workflow definitions
Text Symbol: T02 = Action for Affected Workflows
Text Symbol: T03 = Specify a workflow definition
Text Symbol: T04 = Workflow Definitions with Missing Version
Text Symbol: T07 = Returncode of Replication
Text Symbol: T08 = Result of Replication
Text Symbol: T09 = No Version to Be Created for Workflow Defintions
Text Symbol: T10 = No workflow definitions exist that require a version to be created


INCLUDES used within this REPORT RSWD_REPLICATE_FROM_9999

INCLUDE: RSWUINCL.


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:

SWD_CHECK_ORG_OBJECT_EXISTS CALL FUNCTION 'SWD_CHECK_ORG_OBJECT_EXISTS' CHANGING act_object_ext = -low EXCEPTIONS org_object_not_found = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'SWDSHEADER' CHANGING ct_fieldcat = lt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = ls_layout-window_titlebar i_background_id = 'ALV_BACKGROUND' i_buffer_active = 'X' i_callback_program = c_repid is_layout = ls_layout it_fieldcat = lt_fcat it_excluding = gt_excl_func it_sort = lt_sort TABLES t_outtab = gt_wf_version_repl.

SWD_WFD_REPLICATE_FROM_9999 CALL FUNCTION 'SWD_WFD_REPLICATE_FROM_9999' EXPORTING im_task = l_task * IM_HRP1205 = IMPORTING ex_wfdkey = l_wfdkey EXCEPTIONS replication_error = 1 transport_version_not_found = 2 invalid_object_type = 3 replication_not_necessary = 4 OTHERS = 5 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'SWDSHEADER' CHANGING ct_fieldcat = lt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = ls_layout-window_titlebar i_background_id = 'ALV_BACKGROUND' i_buffer_active = 'X' i_callback_program = c_repid is_layout = ls_layout it_fieldcat = lt_fcat it_excluding = gt_excl_func it_sort = lt_sort TABLES t_outtab = gt_repl_result.

SWD_CHECK_ORG_OBJECT_EXISTS CALL FUNCTION 'SWD_CHECK_ORG_OBJECT_EXISTS' CHANGING act_object_ext = -wfd_id EXCEPTIONS org_object_not_found = 1 OTHERS = 2.

SWD_GET_LATEST_WF_VERSION CALL FUNCTION 'SWD_GET_LATEST_WF_VERSION' EXPORTING act_task = l_original_task IMPORTING act_wfdkey = ls_original_wfdkey EXCEPTIONS OTHERS = 1.

SWD_GET_WF_HEADER_TABLE CALL FUNCTION 'SWD_GET_WF_HEADER_TABLE' EXPORTING act_task = l_original_task act_wfdkey = ls_original_wfdkey IMPORTING header_data = ls_original_header EXCEPTIONS OTHERS = 1.

RH_READ_HRS_OBJECT_TEXT CALL FUNCTION 'RH_READ_HRS_OBJECT_TEXT' EXPORTING act_otype = l_otype act_objid = l_objid act_langu = sy-langu store_flag = space authority_check = space read_db = 'X' IMPORTING act_stext = ls_wf_version_repl-text EXCEPTIONS no_data_found = 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 RSWD_REPLICATE_FROM_9999 or its description.