UCUS0_VARIANT_MIGRATION 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 UCUS0_VARIANT_MIGRATION 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: S_VAR = D .
Selection Text: S_FNAME = D .
Selection Text: PA_AREA = D .
Selection Text: C_TST = D .
Selection Text: C_PRT = D .
Title: Migration of Variants
Text Symbol: HV2 = Variant - New Name
Text Symbol: HWV = Programs with variants
Text Symbol: INV = Changes in Investments
Text Symbol: LG1 = Legend
Text Symbol: LID = InventoryData
Text Symbol: LJE = Jrnl Entries
Text Symbol: LPR = Delete Logs
Text Symbol: LSD = SupplierDta
Text Symbol: LST = Totals Recs
Text Symbol: MDA = Master Data List
Text Symbol: MSG = Messages
Text Symbol: MTH = Method Execution
Text Symbol: NS1 = Migrated
Text Symbol: NS2 = Migration not needed
Text Symbol: NS3 = Migration not possible
Text Symbol: NS4 = Variant has no values
Text Symbol: PRT = Log
Text Symbol: PS1 = Program status OK; regeneration prior to migration
Text Symbol: PS2 = Program status OK
Text Symbol: PS3 = Program status ERROR; Regeneration could not be executed
Text Symbol: RCD = Reconcile Data Strs
Text Symbol: RVS = Mass Reverse
Text Symbol: TSK = Task Execution
Text Symbol: TST = Test Run
Text Symbol: VAR = Variant Selection
Text Symbol: VDE = Exclude variant &1 from migration
Text Symbol: XBR = XBRL Selection Screen
Text Symbol: HV1 = Variant
Text Symbol: ACP = Nonperiodic Copy
Text Symbol: ADL = Nonperiodic Deletion
Text Symbol: ARE = Cons Area
Text Symbol: BAP = Nonperiodic Copy/Deletion
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ICON_CREATE call function 'ICON_CREATE' exporting name = &2 text = &3 info = &4 importing result = &1 exceptions others = 0.
RS_GET_SCREENS_4_1_VARIANT CALL FUNCTION 'RS_GET_SCREENS_4_1_VARIANT' EXPORTING program =
-program variant = ls_varid-variant TABLES dynnr = lt_dynnr variscreens = lt_variscreens EXCEPTIONS no_screens = 1 variant_not_existent = 2 OTHERS = 3.
RS_REPORTSELECTIONS_INFO CALL FUNCTION 'RS_REPORTSELECTIONS_INFO' EXPORTING report = i_program default_values = abap_false TABLES field_info = lt_prog_field_info EXCEPTIONS no_selections = 1 report_not_existent = 2 subroutine_pool = 3 OTHERS = 4.
CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report =-report variant = -variant execute_direct = 'X' TABLES valutab = ls_variant_content-t_var_valuetab EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3.
RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report =
-report variant = -variant execute_direct = ' ' TABLES valutab = ls_variant_content-t_var_valuetab OBJECTS = ls_variant_content-t_var_objects EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3.
RS_REPORTSELECTIONS_INFO CALL FUNCTION 'RS_REPORTSELECTIONS_INFO' EXPORTING report = is_parameters-program default_values = abap_true TABLES field_info = lt_field_info def_values =
EXCEPTIONS no_selections = 1 report_not_existent = 2 subroutine_pool = 3 OTHERS = 4.
RS_CHANGE_CREATED_VARIANT CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT' EXPORTING curr_report =
-variant-report "<- curr_variant = -variant-variant "<- vari_desc = -s_var_desc "<- * ONLY_CONTENTS = TABLES vari_contents = -t_var_valuetab "<- * vari_text = -t_var_text * vari_sel_desc = -t_var_sel_desc OBJECTS = -t_var_objects "NAME and KIND EXCEPTIONS illegal_report_or_variant = 1 illegal_variantname = 2 not_authorized = 3 not_executed = 4 report_not_existent = 5 report_not_supplied = 6 variant_doesnt_exist = 7 variant_locked = 8 selections_no_match = 9 OTHERS = 10.
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 UCUS0_VARIANT_MIGRATION or its description.
UCUS0_VARIANT_MIGRATION - Migration of Variants UCUS0_VARIANT_MIGRATION - Migration of Variants UCUS0_VARIANT_LISTING - List Variants UCUS0_VARIANT_LISTING - List Variants UCUMD_REPAIR_DOCTYPE_FIELDOPT - Consistency Check for Manual Document Types UCUMD_REPAIR_DOCTYPE_FIELDOPT - Consistency Check for Manual Document Types