RPUQSTC3 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use the report to import the newly assigned withholding tax numbers for those liable for withholding tax, which are assigned by the cantonal tax office of Vaud...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RPUQSTC3 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: P_SIM = Simulation
Selection Text: P_PCHG = Change Log
Selection Text: P_FILE = XML File
Selection Text: P_ACI = XML File Based on EMP-ACI
Title: HR-CH: Import Withholding Tax Numbers Canton of Vaud
Text Symbol: T03 = Importing New Withholding Tax Numbers
Text Symbol: T02 = Simulation
Text Symbol: T01 = Conversion
Text Symbol: I04 = Rejected Personnel Numbers
Text Symbol: I03 = IT Rec. Already Contains Tax Number to Be Inserted
Text Symbol: I02 = Successfully Processed Personnel Numbers
Text Symbol: I01 = Import Is Only Simulated - No DB Updates
Text Symbol: E7A = Failed
Text Symbol: E0A = Infotype Record with Deviating Canton Is Ignored
Text Symbol: E09 = No WHT Numbers Found in File
Text Symbol: E08 = Importing File Not Successful
Text Symbol: E07 = Write to IT 0038 from/to:
Text Symbol: E06 = No IT Record with WHT-Liable and Canton VD Avail.
Text Symbol: E05 = IT Record Already Contains Deviating Tax Number
Text Symbol: E04 = Cannot Lock Master Data
Text Symbol: E03 = Infotype Tax 0038 Not Available
Text Symbol: E02 = Error While Parsing
Text Symbol: E01 = Error Importing File
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = file filetype = 'BIN' has_field_separator = ' ' header_length = 0 IMPORTING filelength = size TABLES data_tab = xml_tab EXCEPTIONS OTHERS = 1.
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = l_wa_per_tax-pernr infty = '0038' TABLES infty_tab = lt_p0038 EXCEPTIONS infty_not_found = 1 OTHERS = 2.
BAPI_EMPLOYEE_ENQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' EXPORTING number = l_wa_per_tax-pernr IMPORTING return = bapiret.
HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = '0038' number = l_wa_p0038-pernr validityend = l_wa_p0038-endda validitybegin = l_wa_p0038-begda lockindicator = l_wa_p0038-sprps record = l_wa_p0038 operation = 'MOD' IMPORTING return = bapiret_up.
BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = l_wa_per_tax-pernr.
HR_PAL_LOG_AND_ALV_DISPLAY CALL FUNCTION 'HR_PAL_LOG_AND_ALV_DISPLAY' EXPORTING i_s_display_profile = l_disp_prof * I_BYPASSING_BUFFER = i_callback_program = l_repid i_structure_name = 'P0038' * I_GRID_TITLE = * IS_LAYOUT = i_default = 'X' i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_0038_prot EXCEPTIONS program_error = 1 OTHERS = 0 .
HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = p_msgid i_msgno = p_msgno i_msgv1 = p_msgv1 i_msgv2 = p_msgv2 i_msgv3 = p_msgv3 i_msgv4 = p_msgv4 i_msgty = p_msgty EXCEPTIONS program_error = 1.
HR_PAL_STATS_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' EXPORTING i_stcnt = p_stcnt i_msgid = p_msgid i_msgno = p_msgno i_msgv1 = p_msgv1 i_msgv2 = p_msgv2 i_msgv3 = p_msgv3 i_msgv4 = p_msgv4 i_msgty = p_msgty EXCEPTIONS program_error = 1.
HR_PAL_PERNR_MSG_ADD CALL FUNCTION 'HR_PAL_PERNR_MSG_ADD' EXPORTING i_pernr = p_pernr i_msgid = p_msgid i_msgno = p_msgno i_msgv1 = p_msgv1 i_msgv2 = p_msgv2 i_msgv3 = p_msgv3 i_msgv4 = p_msgv4 i_msgty = p_msgty EXCEPTIONS program_error = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RPUQSTC3 - HR-CH: Import Withholding Tax Numbers Canton of Vaud RPUQSTC3 - HR-CH: Import Withholding Tax Numbers Canton of Vaud RPUQSTC2 - HR-CH: Import Withholding Tax Tables RPUQSTC2 - HR-CH: Import Withholding Tax Tables RPUQSTC0 - HR CH: Maintain withholding tax tables RPUQSTC0 - HR CH: Maintain withholding tax tables