SAP Reports / Programs | Payroll | South Africa(PY-ZA) SAP PY

RPCTAXWC SAP ABAP INCLUDE - Forms for South African Tax Calculation







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


Text pool values


Title: Forms for South African Tax Calculation


INCLUDES used within this REPORT RPCTAXWC

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:

HR_ZA_TAX_YEAR_ATTRIB CALL FUNCTION 'HR_ZA_TAX_YEAR_ATTRIB' EXPORTING permo = wtax_aper-permo datum = wtax_aper-bondt IMPORTING noper = t_noper noday = t_noday begda = t_begda endda = t_endda xlose = t_xlose taxyr = wtax_aper-paper-pabrj EXCEPTIONS invalid_permo = 1 invalid_pabrj = 2 t549q_incomplete = 3 OTHERS = 4.

HR_ZA_TAX_YEAR_ATTRIB CALL FUNCTION 'HR_ZA_TAX_YEAR_ATTRIB' EXPORTING permo = wtax_aper-permo pabrj = wtax_aper-paper-pabrj IMPORTING noper = t_noper noday = t_noday begda = t_begda endda = t_endda xlose = t_xlose EXCEPTIONS invalid_permo = 1 invalid_pabrj = 2 t549q_incomplete = 3 OTHERS = 4.

RP_READ_T100 CALL FUNCTION 'RP_READ_T100' EXPORTING arbgb = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 sprsl = sy-langu IMPORTING text = t100_text.

HR_ZA_TAX_PERIOD_FACTOR CALL FUNCTION 'HR_ZA_TAX_PERIOD_FACTOR' EXPORTING permo = wtax_aper-permo typro = wtax_st-txpro begda = wtax_cst-begda endda = wtax_cst-endda IMPORTING partp = ytd-per fullp = ytd-com.

HR_ZA_TAX_PERIOD_FACTOR CALL FUNCTION 'HR_ZA_TAX_PERIOD_FACTOR' EXPORTING permo = wtax_aper-permo typro = wtax_st-txpro begda = wtax_st-begda endda = wtax_st-endda IMPORTING partp = cur-per fullp = cur-com.

HR_ZA_TAX_PERIOD_FACTOR CALL FUNCTION 'HR_ZA_TAX_PERIOD_FACTOR' EXPORTING permo = wtax_aper-permo typro = wtax_st-txpro begda = f_dat "1st day next period endda = t_endda "until end of tax year IMPORTING partp = rem-per fullp = rem-com.

HR_ZA_TAX_PERIOD_FACTOR CALL FUNCTION 'HR_ZA_TAX_PERIOD_FACTOR' EXPORTING permo = wtax_aper-permo typro = wtax_cst-txpro begda = wtax_cst-begda endda = wtax_cst-endda IMPORTING partp = ytd-per fullp = ytd-com.

HR_ZA_TAX_RATES CALL FUNCTION 'HR_ZA_TAX_RATES' EXPORTING taxyr = wtax_aper-paper-pabrj ansal = w_ansal age = wtax_age IMPORTING prreb = f_prreb adreb = f_adreb basyc = f_basyc dedpc = f_dedpc frsal = f_frsal EXCEPTIONS no_t5w2r_record_found = 1 no_t5w2s_record_found = 2 OTHERS = 3.

DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'TYPRO' value = ddval IMPORTING dd07v_wa = domlin.

DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'P16_NAPER' value = ddval IMPORTING dd07v_wa = domlin.

DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'P16_NAPER' value = ddval IMPORTING dd07v_wa = domlin.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES nodetab = nodetab EXCEPTIONS tree_failure = 1 id_not_found = 2 wrong_relationship = 3 OTHERS = 4.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING callback_program = 'RPCTAXW2' status = 'BASIC' callback_moreinfo_display = 'MORE_INFO1' lower_case_sensitive = 'X' node_length = 30 text_length = 80 color_of_node = '0' use_control = type EXCEPTIONS OTHERS = 1.

HR_ZA_TAX_YEAR_ATTRIB CALL FUNCTION 'HR_ZA_TAX_YEAR_ATTRIB' EXPORTING permo = wtax_aper-permo pabrj = wtax_aper-paper-pabrj IMPORTING noper = t_noper noday = t_noday begda = t_begda endda = t_endda xlose = t_xlose EXCEPTIONS invalid_permo = 1 invalid_pabrj = 2 t549q_incomplete = 3 OTHERS = 4.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = c_molga begda = date IMPORTING waers = waers EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

HR_ZA_TAX_PERIOD_FACTOR CALL FUNCTION 'HR_ZA_TAX_PERIOD_FACTOR' EXPORTING permo = wtax_aper-permo typro = wtax_st-txpro begda = wtax_cst-begda endda = wtax_cst-endda IMPORTING partp = ytd-per fullp = ytd-com.



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