SAP Reports / Programs | Payroll | USA | Tax Reporter(PY-US-RP-TR) SAP PY

MPU21F01 SAP ABAP INCLUDE - Form routines -> tax reporter







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


Text pool values


Title: Form routines -> tax reporter


INCLUDES used within this REPORT MPU21F01

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:

TREEV_CREATE_COLUMN_TREE CALL FUNCTION 'TREEV_CREATE_COLUMN_TREE' EXPORTING owner_repid = cur_rep dynnr = cur_dyn left = 0 top = 0 width = 0 height = 0 alignment = align parentid = parentid * register_event_item_dbl_click = 'X' * register_event_link_click = 'X' * reg_event_expand_no_children = 'X' * register_event_node_dbl_click = 'X' * register_event_header_click = 'X' * register_event_node_context_m = 'X' * register_event_item_context_m = 'X' * register_event_button_click = 'X' * register_event_checkbox_change= 'X' register_event_sel_change = 'X' item_selection = ' ' node_selection_mode = treev_node_sel_mode_single hierarchy_header = hierarchy_header item_table_structure_name = 'QTREEITM' TABLES columns = columns headers = headers node_table = node_tab item_table = item_tab CHANGING handle = tree EXCEPTIONS create_error = 1 tree_control_not_existing = 2 cntl_system_error = 3 failed = 4 illegal_node_selection_mode = 5 illegal_column_name = 6 illegal_column_alignment = 7 illegal_header_alignment = 8 illegal_header_type = 9 illegal_header_name = 10 duplicated_column_name = 11 duplicated_header_name = 12 illegal_end_col = 13 end_col_not_found = 14 missing_item_structure_name = 15 empty_node_table = 16 error_in_tables = 17 dp_error = 18 illegal_owner_repid = 19 too_many_columns = 20 table_structure_name_not_found = 21 OTHERS = 22.

CONTROL_SET_PROPERTY CALL FUNCTION 'CONTROL_SET_PROPERTY' EXPORTING h_control = tree property = 'Has3DFrame' value = 0.

TREEV_EVENT_CB_EXPAND_NC CALL FUNCTION 'TREEV_EVENT_CB_EXPAND_NC' EXPORTING callback_form = 'HANDLE_TREE_EXPAND_NC' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_ITEM_DBL_CLK CALL FUNCTION 'TREEV_EVENT_CB_ITEM_DBL_CLK' EXPORTING callback_form = 'HANDLE_TREE_ITEM_DBL_CLK' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_NODE_DBL_CLK CALL FUNCTION 'TREEV_EVENT_CB_NODE_DBL_CLK' EXPORTING callback_form = 'HANDLE_TREE_NODE_DBL_CLK' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_BUTTON_CLICK CALL FUNCTION 'TREEV_EVENT_CB_BUTTON_CLICK' EXPORTING callback_form = 'HANDLE_TREE_BUTTON_CLICK' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_LINK_CLICK CALL FUNCTION 'TREEV_EVENT_CB_LINK_CLICK' EXPORTING callback_form = 'HANDLE_TREE_LINK_CLICK' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_NODE_CONTEXT_M CALL FUNCTION 'TREEV_EVENT_CB_NODE_CONTEXT_M' EXPORTING callback_form = 'HANDLE_TREE_NODE_CONTEXT_MENU' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_ITEM_CONTEXT_M CALL FUNCTION 'TREEV_EVENT_CB_ITEM_CONTEXT_M' EXPORTING callback_form = 'HANDLE_TREE_ITEM_CONTEXT_MENU' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_CHECKBOX_CHANGE CALL FUNCTION 'TREEV_EVENT_CB_CHECKBOX_CHANGE' EXPORTING callback_form = 'HANDLE_TREE_CHECKBOX_CHANGE' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_HEADER_CLICK CALL FUNCTION 'TREEV_EVENT_CB_HEADER_CLICK' EXPORTING callback_form = 'HANDLE_TREE_HEADER_CLICK' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 inv_callback_definition = 3 OTHERS = 4.

TREEV_EVENT_CB_SEL_CHANGE CALL FUNCTION 'TREEV_EVENT_CB_SEL_CHANGE' EXPORTING callback_form = 'HANDLE_TREE_SEL_CHANGE' CHANGING handle = tree EXCEPTIONS cb_not_found = 1 failed = 2 instance_not_found = 3 inv_callback_definition = 4 item_selection_not_allowed = 5 single_node_selection_only = 6 OTHERS = 7.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING max_chosen_number = 1 delimiter_sign = '/' text_title = text_title_tmp text_left = text_left_tmp text_right = text_right_tmp status = 'ORDER' text_object = 'TXF_SORT_INFO' IMPORTING return_code = retcode TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = opt_eecop EXCEPTIONS table_string_inconsistency = 01 unknown_status = 02 OTHERS = 03.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING max_chosen_number = 1 delimiter_sign = '/' text_title = text_title_tmp text_left = text_left_tmp text_right = text_right_tmp status = 'ORDER' text_object = 'TXF_SORT_INFO' IMPORTING return_code = retcode TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = opt_ercop EXCEPTIONS table_string_inconsistency = 01 unknown_status = 02 OTHERS = 03.

RP_TAXREP_DETERMINE_SETS CALL FUNCTION 'RP_TAXREP_DETERMINE_SETS' EXPORTING abkrs = ' ' endda = sub-udate molga = molga taxau = ' ' taxty = ' ' timun = prd_type txcmp = sub-taxcp TABLES i51t6 = i51t6.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = $ans TEXTLINE1 = TEXT-P60 TEXTLINE2 = 'Do you want to recreate form?'(032) TITEL = TEXT-P70 IMPORTING ANSWER = $ans.

POPUP_TO_DECIDE_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' EXPORTING titel = text-p70 " textline1 = text-r05 " textline2 = text-r06 * textline3 = text-r07 diagnosetext1 = text-r02 " diagnosetext2 = text-r03 " * diagnosetext3 = text-r04 text_option1 = text-801 " Overwrite text_option2 = text-802 " Print defaultoption = '1' IMPORTING answer = $ans.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'J' TEXTLINE1 = TEXT-P60 TEXTLINE2 = 'Do you want to recreate form?'(032) TITEL = TEXT-P70 IMPORTING ANSWER = $ans.

POPUP_TO_DECIDE_WITH_MESSAGE





CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' EXPORTING TITEL = text-r01 "Bookkeeping_Table_Status TEXTLINE1 = text-r04 TEXTLINE2 = text-r08 "OVERWRITE previous run TEXTLINE3 = 'RECREATE selection using orig date'(R09) DIAGNOSETEXT1 = text-r02 "Report_has_already_been_run DIAGNOSETEXT2 = text-r03 "for_the_selected_criteria.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = jobname IMPORTING jobcount = jobnumber.

F4_DATE CALL FUNCTION 'F4_DATE' EXPORTING date_for_first_month = sy-datum IMPORTING select_date = sub-udate EXCEPTIONS calendar_buffer_not_loadable = 1 date_after_range = 2 date_before_range = 3 date_invalid = 4 factory_calendar_not_found = 5 holiday_calendar_not_found = 6 parameter_conflict = 7 OTHERS = 8.

RP_TAXREP_MANU_FILL CALL FUNCTION 'RP_TAXREP_MANU_FILL' EXPORTING date = dat txcmp = sub-taxcp txfrm = $txfrm TABLES i5ut1 = ipu24 EXCEPTIONS no_fields = 01.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING delimiter_sign = '/' text_title = text_title_tmp text_left = text_left_tmp text_right = text_right_tmp status = 'ORDER' text_object = 'TXF_SORT_INFO' IMPORTING return_code = retcode TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = option EXCEPTIONS table_string_inconsistency = 01 unknown_status = 02 OTHERS = 03.

TREEV_GET_EXPANDED_NODES CALL FUNCTION 'TREEV_GET_EXPANDED_NODES' EXPORTING handle = $tree TABLES node_key_table = exp_tab.

TREEV_COLLAPSE_SUBTREE CALL FUNCTION 'TREEV_COLLAPSE_SUBTREE' EXPORTING handle = $tree node_key = $node_key.

TREEV_EXPAND_NODE CALL FUNCTION 'TREEV_EXPAND_NODE' EXPORTING handle = $tree node_key = $node_key level_count = 1 expand_all_children = 'X'.

RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report = 'RPCTXFU0' variant = g_selected_var TABLES l_params = l_params l_params_nonv = l_params_nonv l_selop = l_selop l_selop_nonv = l_selop_nonv valutab = valutab EXCEPTIONS variant_non_existent = 01 variant_obsolete = 02.

SUSR_USER_DEFAULTS_GET CALL FUNCTION 'SUSR_USER_DEFAULTS_GET' EXPORTING user_name = sy-uname IMPORTING user_defaults = user_def.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING list_name = pri-plist report = $rep mode = 'BATCH' no_dialog = nodialog immediately = ' ' release = ' ' new_list_id = 'X' IMPORTING out_parameters = pri valid = $valid.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING * MAX_CHOSEN_NUMBER = delimiter_sign = '/' text_title = text_title_tmp text_left = text_left_tmp text_right = text_right_tmp status = 'ORDER' text_object = 'TXF_SORT_INFO' IMPORTING return_code = retcode TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = opt_dlod.

POPUP_TO_GET_VALUE CALL FUNCTION 'POPUP_TO_GET_VALUE' EXPORTING fieldname = 'VARIN' tabname = 'T5UT9' titel = 'Save selection set'(o02) valuein = var_name2 IMPORTING answer = $ansv valueout = var_name1 EXCEPTIONS fieldname_not_found = 1 OTHERS = 2.

SPLITTERCONTROL_CREATE CALL FUNCTION 'SPLITTERCONTROL_CREATE' EXPORTING owner_repid = 'SAPMPU21' owner_dynnr = k_2000 dock_at = dock_at_left width = dock_cntl-width height = dock_cntl-height CHANGING h_control = dock_cntl-hwnd.

CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.

RS_CREATE_VARIANT CALL FUNCTION 'RS_CREATE_VARIANT' EXPORTING curr_report = 'RPCTXFU0' curr_variant = var_name1 vari_desc = i_varid TABLES vari_contents = rsparams_tab vari_text = i_varit EXCEPTIONS illegal_report_or_variant = 01 illegal_variantname = 02 not_authorized = 03 not_executed = 04 report_not_existent = 05 report_not_supplied = 06 variant_exists = 07 variant_locked = 08 OTHERS = 99.

RS_CHANGE_CREATED_VARIANT CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT' EXPORTING curr_report = 'RPCTXFU0' curr_variant = var_name1 vari_desc = i_varid TABLES vari_contents = rsparams_tab vari_text = i_varit EXCEPTIONS illegal_report_or_variant = 01 illegal_variantname = 02 not_authorized = 03 not_executed = 04 report_not_existent = 05 report_not_supplied = 06 variant_doesnt_exist = 07 variant_locked = 08 selections_no_match = 09.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = $prct text = $txt.

TREEV_EXPAND_NODE CALL FUNCTION 'TREEV_EXPAND_NODE' EXPORTING handle = tree node_key = nkey level_count = 0 expand_all_children = ' '.

TREEV_SELECT_ITEM * CALL FUNCTION 'TREEV_SELECT_ITEM' * EXPORTING * handle = TREE * node_key = up_defa_frcl * item_name = 'Col1'.




TREEV_SET_SELECTED_NODE CALL FUNCTION 'TREEV_SET_SELECTED_NODE' EXPORTING handle = tree node_key = up_defa_frcl EXCEPTIONS failed = 1 instance_not_found = 2 single_node_selection_only = 3 cntl_system_error = 4 node_not_found = 5 OTHERS = 6.

TREEV_EXPAND_ROOT_NODES CALL FUNCTION 'TREEV_EXPAND_ROOT_NODES' EXPORTING handle = tree level_count = 1 expand_all_children = 'X'.

LIST_FROM_MEMORY CALL FUNCTION 'LIST_FROM_MEMORY' TABLES listobject = $list_tab EXCEPTIONS not_found = 1 OTHERS = 2.

LIST_FREE_MEMORY CALL FUNCTION 'LIST_FREE_MEMORY' TABLES listobject = $list_tab.

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = 'RPCTXFU0' variant = $varnam IMPORTING r_c = rc.

RS_VARIANT_DELETE CALL FUNCTION 'RS_VARIANT_DELETE' EXPORTING report = 'RPCTXFU0' variant = $varnam flag_confirmscreen = $forced flag_delallclient = 'X' IMPORTING variant = $varnam EXCEPTIONS not_authorized = 1 not_executed = 2 no_report = 3 report_not_existent = 4 report_not_supplied = 5 variant_locked = 6 variant_not_existent = 7 no_corr_insert = 8 variant_protected = 9 OTHERS = 10.

BP_START_DATE_EDITOR CALL FUNCTION 'BP_START_DATE_EDITOR' EXPORTING stdt_dialog = btc_yes stdt_opcode = btc_edit_startdate stdt_input = jobtime IMPORTING stdt_output = jobtime.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING event_id = jobtime-eventid event_param = jobtime-eventparm event_periodic = jobtime-periodic laststrtdt = jobtime-laststrtdt laststrttm = jobtime-laststrttm prddays = jobtime-prddays prdhours = jobtime-prdhours prdmins = jobtime-prdmins prdmonths = jobtime-prdmonths prdweeks = jobtime-prdweeks predjob_checkstat = jobtime-checkstat pred_jobcount = jobtime-predjobcnt pred_jobname = jobtime-predjob sdlstrtdt = jobtime-sdlstrtdt sdlstrttm = jobtime-sdlstrttm strtimmed = btc_immed jobcount = jobnumber jobname = jobname EXCEPTIONS job_nosteps = 1 cant_start_immediate = 2.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = jobname IMPORTING jobcount = jobnum EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3.



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