SAP Reports / Programs

RRTP_US_DISTRIBUTION SAP ABAP Report - Report: Distribution limits for retirement plan (US enhancement)







RRTP_US_DISTRIBUTION 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 RRTP_US_DISTRIBUTION into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

RTP_US_R4 - Retirement plan distribution limit


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 RRTP_US_DISTRIBUTION. "Basic submit
SUBMIT RRTP_US_DISTRIBUTION AND RETURN. "Return to original report after report execution complete
SUBMIT RRTP_US_DISTRIBUTION 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_YEAR = D Calendar year
Selection Text: RNG_BKKR = D Bank Area
Selection Text: RNG_BPNB = D Business partner
Selection Text: RNG_PLNB = D Plan number of the retirement
Selection Text: RNG_TPCD = D Type code of the retirement pl
Title: Report: Distribution limits for retirement plan (US enhancement)
Text Symbol: R12 = Select accountholders who made distributions above the limit
Text Symbol: R13 = Select accountholders who made distributions below the limit
Text Symbol: RP7 = above the limit
Text Symbol: RP8 = below the limit
Text Symbol: RP9 = Reporting distribution limits:
Text Symbol: S01 = Calendar year Selection
Text Symbol: S02 = Plan Selections
Text Symbol: S03 = Accountholder Selections
Text Symbol: S08 = Distribution limit selection


INCLUDES used within this REPORT RRTP_US_DISTRIBUTION

INCLUDE IRTP_US_CONSTANTS.
INCLUDE RTTP_US_DISTRIBUTION_F01.
INCLUDE IRTP_US_SEL_YEAR.
INCLUDE IRTP_US_SEL_PLAN.
INCLUDE IRTP_US_SEL_ACCOUNTHOLDER.


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:

RTP_US_API_CHECK_YEAR CALL FUNCTION 'RTP_US_API_CHECK_YEAR' EXPORTING i_year = p_year EXCEPTIONS no_year = 1 future_year = 2 OTHERS = 3.

RTP_US_API_CHECK_PLAN_SELECT CALL FUNCTION 'RTP_US_API_CHECK_PLAN_SELECT' TABLES t_rng_bkkrs = rng_bkkr t_rng_plan_number = rng_plnb t_rng_type_code = rng_tpcd EXCEPTIONS invalid_bank_area = 1 plan_number_not_checked = 2 invalid_plan_number = 3 invalid_type_code = 4 OTHERS = 5.

RTP_US_API_CHECK_BP_SELECTION CALL FUNCTION 'RTP_US_API_CHECK_BP_SELECTION' EXPORTING i_role_category = g_con_rolecat_accholder IMPORTING e_stnd_role = l_stnd_role_accholder TABLES t_rng_business_partner = rng_bpnb EXCEPTIONS invalid_partner = 1 OTHERS = 2.

RTP_US_API_FILL_FIELD_CATALOG CALL FUNCTION 'RTP_US_API_FILL_FIELD_CATALOG' EXPORTING i_report_id = '05' TABLES t_field_cat = l_tab_field_catalog.

BKK_BKKRS_INDEPEND_GET_DISPLAY CALL FUNCTION 'BKK_BKKRS_INDEPEND_GET_DISPLAY' EXPORTING i_spras = sy-langu IMPORTING e_inddis = l_sign EXCEPTIONS no_data = 1 text_not_found = 2 OTHERS = 3.

RTP_US_DB_RMD_READ_REP CALL FUNCTION 'RTP_US_DB_RMD_READ_REP' EXPORTING i_tax_year = p_year TABLES t_rng_bkkrs = rng_bkkr t_rng_plan_number = rng_plnb t_rmd = l_tab_rmd.

RTP_US_DB_TOT_READ CALL FUNCTION 'RTP_US_DB_TOT_READ' EXPORTING i_bkkrs = l_wrk_rmd-bkkrs i_plan_number = l_wrk_rmd-plan_number i_tax_year = l_wrk_rmd-tax_year i_amount_id = g_con_dist TABLES t_tot = l_tab_tot EXCEPTIONS not_found = 1 OTHERS = 2.

RTP_US_DB_PLAN_READ_SNG CALL FUNCTION 'RTP_US_DB_PLAN_READ_SNG' EXPORTING i_bkkrs = l_wrk_rmd-bkkrs i_plan_number = l_wrk_rmd-plan_number IMPORTING e_plan = l_str_plan EXCEPTIONS not_found = 1 OTHERS = 2.

RTP_US_DB_BP_PLAN_READ CALL FUNCTION 'RTP_US_DB_BP_PLAN_READ' EXPORTING i_bkkrs = l_wrk_rmd-bkkrs i_plan_number = l_wrk_rmd-plan_number i_rltyp = l_stnd_role_accholder TABLES t_bp_plan = l_tab_bp_plan EXCEPTIONS not_found = 1 OTHERS = 2.

BUP_PARTNER_GET CALL FUNCTION 'BUP_PARTNER_GET' EXPORTING i_partner = l_wrk_bp_plan-partner i_valdt = sy-datlo i_cp_exclude = g_con_cross i_is_exclude = g_con_cross iv_req_blk_msg = g_con_cross IMPORTING e_but000 = ls_bus000 e_but000_int = ls_but000_int EXCEPTIONS partner_not_found = 1 OTHERS = 2.

RTP_US_API_GET_DESCRIPTIONS CALL FUNCTION 'RTP_US_API_GET_DESCRIPTIONS' EXPORTING i_str_accountholder = l_str_but000 i_type_code = l_str_plan-type_code i_bkkrs = l_wrk_rmd-bkkrs IMPORTING e_name = l_wrk_plan_report-name e_type_description = l_wrk_plan_report-type_description e_bkkrs = l_wrk_plan_report-t_bkkrs.

RTP_US_API_ALV_PLAN_REPORT CALL FUNCTION 'RTP_US_API_ALV_PLAN_REPORT' EXPORTING i_str_alv_variant = l_str_alv_variant i_save = 'A' i_report_title = l_report_title i_screen_title_number = '4' TABLES t_plan_report = l_tab_plan_report t_field_catalog = l_tab_field_catalog EXCEPTIONS object_create_error = 1 method_error = 2 OTHERS = 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 RRTP_US_DISTRIBUTION or its description.