SAP Reports / Programs

RSCD_SM1 SAP ABAP Report - Test Program for Solution Manager Migration Program Parts







RSCD_SM1 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 RSCD_SM1 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 RSCD_SM1. "Basic submit
SUBMIT RSCD_SM1 AND RETURN. "Return to original report after report execution complete
SUBMIT RSCD_SM1 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: T_UNTIL = Time To
Selection Text: T_FROM = Time From
Selection Text: SL_USER = User
Selection Text: SL_TNAM = Table Name
Selection Text: SL_TKEY = Table Key up to 71 Characters
Selection Text: SL_TK254 = Table Key if > 71 Characters
Selection Text: SL_STR = Key GUID for STRINGS
Selection Text: SL_OBJID = Object ID
Selection Text: SL_OBJ = Object Class
Selection Text: SL_KGUID = Key GUID
Selection Text: SL_CHGNR = Change Number
Selection Text: P_TEST = Test Run (No Write to DB)
Selection Text: P_SYSID = Source System
Selection Text: P_REL = Source Release
Selection Text: P_PROD = Production Run
Selection Text: P_NDEL = Do Not Delete Entries
Selection Text: P_MANDT = Target Client
Selection Text: P_DELA = Delete Entries and Exit
Selection Text: P_DEL = Delete Entries
Selection Text: P_COMMIT = Perform Commit Work in FM
Selection Text: P_CNT = Commit Counter
Selection Text: D_UNTIL = Date To
Selection Text: D_FROM = Date From
Selection Text: COMMENT = Comment for Run
Title: Test Program for Solution Manager Migration Program Parts
Text Symbol: 012 = Call SM_CHANGEDOCUMENT_DELETE Ends with RC:
Text Symbol: 011 = Number of Rows not Written:
Text Symbol: 010 = Number of Newly Written CDHDR Rows:
Text Symbol: 009 = Deleted New
Text Symbol: 008 = Deleted Old
Text Symbol: 007 = Call SM_CHANGEDOCUMENT_WRITE Ends with RC:
Text Symbol: 006 = Call SM_CHANGEDOCUMENT_READ Ends with RC:
Text Symbol: 005 = Call SM_CHANGEDOCUMENT_READ with:
Text Symbol: 004 = Delete Previous Entries in CDHDR, CDPOS, CDPOS_UID, ...?
Text Symbol: 003 = Run Description
Text Symbol: 002 = Control for Test or Production Run
Text Symbol: 001 = Selection Parameters for Change Documents


INCLUDES used within this REPORT RSCD_SM1

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:

SM_CHANGEDOCUMENT_DELETE CALL FUNCTION 'SM_CHANGEDOCUMENT_DELETE' EXPORTING iv_mandant_new = p_mandt changenumber_tab = sl_chgnr[] date_of_change = d_from objectclass_tab = sl_obj[] objectid_tab = sl_objid[] tablekey_tab = sl_tkey[] tablename_tab = sl_tnam[] time_of_change = t_from username_tab = sl_user[] tablekey254_tab = sl_tk254[] keyguid_tab = sl_kguid[] keyguid_str_tab = sl_str[] date_until = d_until time_until = t_until commit_counter = p_cnt with_commit = p_commit IMPORTING es_cdsolmig = ls_cdsolmig EXCEPTIONS no_ranges_for_delete = 1 no_data_deleted = 2 wrong_date_or_time = 3 OTHERS = 4.

SM_CHANGEDOCUMENT_READ CALL FUNCTION 'SM_CHANGEDOCUMENT_READ' EXPORTING changenumber_tab = sl_chgnr[] date_of_change = d_from objectclass_tab = sl_obj[] objectid_tab = sl_objid[] tablekey_tab = sl_tkey[] tablename_tab = sl_tnam[] time_of_change = t_from username_tab = sl_user[] tablekey254_tab = sl_tk254[] keyguid_tab = sl_kguid[] date_until = d_until time_until = t_until kommentar = comment pv_write_solmig_tab = p_prod keyguid_str_tab = sl_str[] IMPORTING et_cdhdr = lt_cdhdr[] et_cdpos = lt_cdpos[] et_cdpos_uid = lt_cdpos_uid[] es_cdsolmig = ls_cdsolmig et_cdsolmig_dd = lt_cdsolmig_dd[] et_cdpos_str = lt_cdpos_str[] EXCEPTIONS no_position_found = 1 cdsolmig_insert_failed = 2 cdsolmig_dd_insert_failed = 3 OTHERS = 4.

SM_CHANGEDOCUMENT_WRITE CALL FUNCTION 'SM_CHANGEDOCUMENT_WRITE' EXPORTING iv_mandant_new = p_mandt it_cdhdr = lt_cdhdr[] it_cdpos = lt_cdpos[] it_cdpos_uid = lt_cdpos_uid[] it_cdsolmig_dd = lt_cdsolmig_dd[] is_cdsolmig = ls_cdsolmig iv_write_solmig_tab = p_prod it_cdpos_str = lt_cdpos_str[] IMPORTING et_cdsolmig_hdr = lt_cdsolmig_hdr[] et_cdhdr_no_mig = lt_cdhdr_no_mig[] et_cdpos_no_mig = lt_cdpos_no_mig[] et_cdpos_uid_no_mig = lt_cdpos_uid_no_mig[] et_cdpos_str_no_mig = lt_cdpos_str_no_mig[] EXCEPTIONS wrong_parameter = 1 cdhdr_insert_failed = 2 cdpos_insert_failed = 3 cdpos_uid_insert_failed = 4 cdsolmig_hdr_insert_failed = 5 client_not_valid = 6 OTHERS = 7.



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