SAP Reports / Programs | Payroll(PY) SAP PY

HSKLVDP9 SAP ABAP Report - Tax report and Tax overview







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


INCLUDES used within this REPORT HSKLVDP9

INCLUDE HSKCXXL7.
INCLUDE MPPREF00. "IV/09


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:

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING pp0002 = p0002 molga = t001p-molga langu = sy-langu format = $$format IMPORTING edit_name = stc-edit_name retcode = ret_code.

HR_SK_GET_ADR CALL FUNCTION 'HR_SK_GET_ADR' EXPORTING anart = ianart vargu = ivargu IMPORTING a_text = oadr_a b_text = oadr_b c_text = oadr_c d_text = oadr_d e_text = own_stat "IV/07 g_text = adr_g "VII/06 h_text = adr_h "VII/06 p_text = oadr_i r_text = own_r adresa = oadr_all c1_text = xwn_c c2_text = ywn_c psc = own_psc mesto = own_mesto EXCEPTIONS no_data = 1 OTHERS = 2.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = text-019 textline1 = msg1 textline2 = msg2.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = text-019 textline1 = msg2.

WS_DOWNLOAD

GUI_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "DBE Uni call function 'GUI_DOWNLOAD' "DBE Uni exporting * BIN_FILESIZE = ' ' * CODEPAGE = ' ' * FILENAME = D_FILE "DBE Uni filename = i_filename "DBE Uni filetype = 'ASC' * MODE = D_MODE append = d_mode "VIII/04 importing filelength = file_len tables data_tab = d_tab * FIELDNAMES = exceptions * FILE_OPEN_ERROR = 1 "VIII/04 file_write_error = 1 * INVALID_FILESIZE = 3 "VIII/04 * INVALID_TABLE_WIDTH = 4 "VIII/04 invalid_type = 5 no_batch = 6 unknown_error = 7 others = 8.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = w_soubor def_path = '/' mask = ',*.*,*.*.'

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = lt_p0121-hpern infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = lt_0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = lt_p0121-hpern infty = '0121' IMPORTING subrc = l_subrc TABLES infty_tab = lt_p0121_mmp EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = lt_p0121-hpern infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = lt_0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = lt_p0121-hpern infty = '0121' IMPORTING subrc = l_subrc TABLES infty_tab = lt_p0121_mmp EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = lt_0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0001' IMPORTING subrc = l_subrc TABLES infty_tab = lt_0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_SK_HIRE_FIRE CALL FUNCTION 'HR_SK_HIRE_FIRE' IMPORTING fire_date = lv_fire hire_date = lv_hire TABLES pphifi = lt_phifi pp0000 = lt_0000 pp0001 = lt_0001.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = rfp infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = p0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * pernr = p0121-hpern * infty = '0001' * IMPORTING * subrc = l_subrc * TABLES * infty_tab = p0001 * EXCEPTIONS * infty_not_found = 1 * OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = l_comtab-pernr infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = p0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = l_comtab-pernr infty = '0001' IMPORTING subrc = l_subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_SK_HIRE_FIRE CALL FUNCTION 'HR_SK_HIRE_FIRE' IMPORTING fire_date = fire hire_date = hire TABLES pphifi = phifi pp0000 = p0000 pp0001 = p0001.






HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0121' IMPORTING subrc = lv_sysubrc TABLES infty_tab = lt_0121[] EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = lt_0121-hpern infty = '0257' IMPORTING subrc = lv_sysubrc TABLES infty_tab = lt_0257[] EXCEPTIONS infty_not_found = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = '20090101' FOREIGN_AMOUNT = -betrg FOREIGN_CURRENCY = 'SKK' LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = -betrg EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0000' IMPORTING subrc = l_subrc TABLES infty_tab = p0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0001' IMPORTING subrc = l_subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0006' IMPORTING subrc = l_subrc TABLES infty_tab = p0006 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0021' IMPORTING subrc = l_subrc TABLES infty_tab = p0021 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0252' IMPORTING subrc = l_subrc TABLES infty_tab = p0252 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0253' IMPORTING subrc = l_subrc TABLES infty_tab = p0253 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0257' IMPORTING subrc = l_subrc TABLES infty_tab = p0257 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

PYXX_GET_EVALUATION_PERIODS * CALL FUNCTION 'PYXX_GET_EVALUATION_PERIODS' * EXPORTING * clusterid = 'SK' * employeenumber = p_pernr * inper_modif = t549a-permo * inper = period * TABLES * rgdir = rgdir * evaluated_periods = res_pay * EXCEPTIONS * no_payroll_results = 1 * no_entry_found_on_cu = 2 * import_error = 3 * OTHERS = 4.

CD_EVALUATION_PERIODS * CALL FUNCTION 'CD_EVALUATION_PERIODS' * EXPORTING * inper_modif = t549a-permo * inper = period * TABLES * rgdir = rgdir * evpdir = rgdir2 * EXCEPTIONS * no_record_found = 1 * OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING PERNR = pern INFTY = '0121' BYPASS_BUFFER = 'X' TABLES INFTY_TAB = lt_rfp_0121[] EXCEPTIONS INFTY_NOT_FOUND = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '0001' IMPORTING subrc = l_subrc TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * pernr = lv_rfp * infty = '0016' * IMPORTING * subrc = l_subrc * TABLES * infty_tab = lt_0016 * EXCEPTIONS * infty_not_found = 1 * OTHERS = 2.

HR_SK_GET_PAYRESULTS * CALL FUNCTION 'HR_SK_GET_PAYRESULTS' * EXPORTING * PERNR = lv_rfp * FROM_PERIOD = lv_from_period * TO_PERIOD = lv_to_period * RETRO = 'X' * TABLES * PAYRESULTS = lt_skres * RET_MY_RGDIR = lt_myrgdir * EXCEPTIONS * NO_MONTH_RESULT = 1 * WRONG_INTERVAL = 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 HSKLVDP9 or its description.