SAP Reports / Programs | Payroll(PY) SAP PY

RPLM30HQ SAP ABAP Report - Tax final settlement







RPLM30HQ 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 RPLM30HQ 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

PC00_M21_LN30H0 - PC00_M21_LN30H0


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 RPLM30HQ. "Basic submit
SUBMIT RPLM30HQ AND RETURN. "Return to original report after report execution complete
SUBMIT RPLM30HQ 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: DIR = Directory name
Selection Text: FILE1 = UNIX file name
Selection Text: FORML = Form code (setting (T5H2B))
Selection Text: FORML_F = Form code (format (T512P))
Selection Text: M30_N_OA = M30 also for non self-assessm.
Selection Text: NEMITT = PN's list not belonging here
Selection Text: NYJEL = Form code
Selection Text: PERSNR = Personnel number
Selection Text: P_ALTIP = Subtype Domestic partner
Selection Text: P_CHECK = Comparison
Selection Text: P_HATEL = Submission before deadline
Selection Text: P_HATUT = Submission after deadline
Selection Text: P_INFO = Indicate errors also in list
Selection Text: P_NATKI = Skip inactive pers. numbers
Selection Text: SZCS = E/e group Staff off payroll
Selection Text: SZK = E/e subgroup Staff off payroll
Selection Text: TESTMODE = Test mode
Title: Tax final settlement
Text Symbol: JSZ = Paying agent's predecessor TaxNo
Text Symbol: KNV = Directory name
Text Symbol: MK1 = Value of following variables (lines) must be checked!
Text Symbol: MK2 = The
Text Symbol: MK3 = variable val. smaller than
Text Symbol: MK4 = !
Text Symbol: MRW = Max. number of lines a page
Text Symbol: MS1 = Rollowing employees have already been sent in former declaration!
Text Symbol: MS2 = Rollowing employees have not yet been sent, therefore cannot be corrected!
Text Symbol: NIT = List of pers.nos for other form
Text Symbol: NOA = M30 also f. not self-assessors
Text Symbol: NRF = Skip reference pers.numbers
Text Symbol: NY1 = Income statement
Text Symbol: NY2 = Determine employment tax
Text Symbol: NY3 = Data supply on employees' annual income
Text Symbol: NY4 = Notification on tax arrears
Text Symbol: NY5 = Data supply on vacation check (Jan-Aug)
Text Symbol: NY8 = Determine 15% HIP of farmer
Text Symbol: NYC = Select form
Text Symbol: NYJ = Form code





Text Symbol: NYU = Select form code
Text Symbol: I12 = Family member's tax number must be specified!
Text Symbol: HM1 = Other
Text Symbol: HIB = Error list with incomplete data
Text Symbol: H21 = Dependant w/ seq.no. given in follow. wage types does not exist (excl. from K53)
Text Symbol: H11 = Following dependants are to be included in K34 (they have tax number)
Text Symbol: H01 = Follow. dependants are to be included in K35 (they have no tax no.)
Text Symbol: GFS = Seq.no. in wage type:
Text Symbol: GFL = Wage t.:
Text Symbol: GES = Sequence no. (infotype 021):
Text Symbol: GEA = Dependant's subtype (infotype 021):
Text Symbol: G17 = Dependant's address not specified (infotype 006 or table T5H2X)
Text Symbol: G16 = Dependant's citizenship not specified (infotype 021)
Text Symbol: G15 = Dependant's mother's name not specified (infotype 286 or table T5H2X)
Text Symbol: G14 = Dependant's date of birth not specified (infotype 021)
Text Symbol: G13 = Dependant's place of birth not specified (infotype 021)
Text Symbol: G12 = Tax number or natural identifying data above of dependant must be specified!
Text Symbol: G11 = Family member's name not specified (infotype 021 or table T5H2X)
Text Symbol: G10 = Dependant's code number not specified (infotype 021)
Text Symbol: G01 = Incomplete data of family members to be indicated in tax settl.
Text Symbol: FSD = Starting no. (DM29)
Text Symbol: FSC = Starting no. (10M29-03-C)
Text Symbol: Z01 = Following employees have no income data, therefore, have not been processed.
Text Symbol: XSL = Additional parameters
Text Symbol: WX2 = Field "Write errors in list too" is not checked on the selection screen
Text Symbol: WX1 = List does not contain errors, if any:
Text Symbol: WR3 = Entry Leave
Text Symbol: WR2 = Personnel number Self-a.? Left? Left in in-year? On the payroll?
Text Symbol: WR1 = Nam
Text Symbol: WR0 = Data of following personnel numbers should not be contained in form:
Text Symbol: WP4 = Name Pers. no.
Text Symbol: WP3 = the calculated tax (to be paid actually).
Text Symbol: WP2 = that tax actually deducted for incomes stated in lines 164-177 supersede
Text Symbol: WP1 = program may find them wrong because current controls of M29 do not allow
Text Symbol: WP0 = Form M29 completed for following employees, however, the APEH control
Text Symbol: WO4 = Name Pers. no.
Text Symbol: WO3 = These employees are not included in the file.
Text Symbol: WO2 = with incomes from others, taxed separately.
Text Symbol: WO1 = are obliged for self-assessment as they supersede limit of 50,000 HUF





Text Symbol: WO0 = Form M29 completed for following employees, however, actually, they
Text Symbol: WK3 = Name Pers. no.
Text Symbol: WK2 = Code of private pension fund membership is wrong (not 1, 2 or 3)
Text Symbol: WK1 = Name Pers. no.
Text Symbol: WK0 = Foundation's code is wrong (not 1, 2, 3 or 4) for following employees
Text Symbol: WF1 = Name Pers. no.
Text Symbol: WF0 = Data change in file(s) failed
Text Symbol: WAH = Warning: none.
Text Symbol: WA2 = 29/A 29/B
Text Symbol: WA1 = Name Personnel number
Text Symbol: WA0 = Too many M29/A or M29/B sheets, cannot be saved in file.
Text Symbol: VKH = No variable coding error occurred.
Text Symbol: TUM = Test mode
Text Symbol: TDK = Save processed pers.nos.
Text Symbol: TDF = Create files again
Text Symbol: TCP = 852 code page no.
Text Symbol: SKA = Out-of-sequence data supply
Text Symbol: RS3 = Check whether already entered.
Text Symbol: RS2 = Files submitted to APEH must be registered in table T5H2N.
Text Symbol: RS1 = For correction files:
Text Symbol: RCA = Short address ST
Text Symbol: PCA = Postal address ST
Text Symbol: OLN = Write amounts long formt
Text Symbol: OA1 = Name Pers. no.
Text Symbol: OA0 = Follow. employees are not self-assessors; no M30 list created for them
Text Symbol: 029 = employee's place of birth not specifed (infotype 002)
Text Symbol: 030 = employee's private address incomplete (infotype 006)
Text Symbol: 031 = No entry in table & for argument &
Text Symbol: 032 = personnel no. not employee's main pers. no. (121 or 163)
Text Symbol: 033 = spouse's tax number not specified (infotype 021)
Text Symbol: 034 = posted to /4CE (spouse does not claim fam.allow.) in 307,
Text Symbol: 035 = employee's passport number not specified (infotype 175)
Text Symbol: 036 = family allowance split not required (/4CJ in 307)
Text Symbol: 037 = spouse's name not specified (infotype 021)
Text Symbol: 038 = employee's FEOR number not specified (infotype 176)
Text Symbol: 039 = postal address is to be posted on 307 (subtype 7)
Text Symbol: 03A = employee's postal address is not specified (infotype 006)
Text Symbol: 040 = Pers. no.:
Text Symbol: 041 = -



Text Symbol: 050 = family allowance claimed or its split required (/4CL or /4CJ),
Text Symbol: 051 = but no foetus or dependant posted (307 or 21)
Text Symbol: 052 = more than one reference personnel number of employee is marked
Text Symbol: 053 = as main personnel number (infotype 163)
Text Symbol: 054 = pregnancy period as per temporary rules (/4GJ or /4GK)
Text Symbol: 055 = is posted, but family allowance is not posted (/4CD)
Text Symbol: 056 = if sequence of allowance is posted (/4F1../4FB), then
Text Symbol: 057 = no allowance can be excluded! (i.e. value '99' is not possible)
Text Symbol: 058 = sequence of allowances can be specified only (/4F1../4FB),
Text Symbol: 059 = if sequence is given for each allowance!
Text Symbol: 060 = Employee will not be included in data supply.
Text Symbol: 028 = employee's date of birth not specified (infotype 002)
Text Symbol: 001 = Incomplete data
Text Symbol: 002 = Pers. no.:
Text Symbol: 003 = -
Text Symbol: 004 = Non-definable variables (based on table T5H2B)
Text Symbol: 005 = Too high amount for tax allowances
Text Symbol: 006 = The following variables cannot be checked (NO ERROR).
Text Symbol: 007 = RUN RESULTS
Text Symbol: 008 = Incomplete data
Text Symbol: 009 = infotype 176 missing
Text Symbol: 010 = infotype 1 missing
Text Symbol: 011 = infotype 6 missing (subtype 1 or 2)
Text Symbol: 012 = infotype 175 missing
Text Symbol: 013 = infotype 307 missing
Text Symbol: 014 = infotype 163 missing
Text Symbol: 015 = infotype 2 missing
Text Symbol: 016 = employee's name not specified (infotype 001)
Text Symbol: 017 = employee's personnel number not specified (infotype 175)
Text Symbol: 018 = employee's nationality not specified (infotype 002)
Text Symbol: 019 = employee's tax number not specified (infotype 163)
Text Symbol: 020 = Variable
Text Symbol: 021 = cannot be defined.
Text Symbol: 022 = cannot be checked.
Text Symbol: 023 = infotype 164 missing
Text Symbol: 026 = employee's mother's name not specified (infotype 175)
Text Symbol: 027 = employee's maiden name not specified (infotype 175)
Text Symbol: FKS = Select persons off the payroll
Text Symbol: FN7 = File name (10M29-04-co-debtor-A)
Text Symbol: FNA = File name (10M29-03-dependant-C)
Text Symbol: FNB = File name (MB29 volunt.fund)
Text Symbol: FNC = File name (DM29 fam.all. form)
Text Symbol: FNL = Pers.no. list file name
Text Symbol: FNV = File name
Text Symbol: FR0 = Form selection
Text Symbol: FR1 = none
Text Symbol: FR5 = M29-05
Text Symbol: FR6 = M29-06
Text Symbol: FRA = Additional M29 forms (format)
Text Symbol: FRB = M29-02
Text Symbol: FRC = Attch.
Text Symbol: FRD = M29-03
Text Symbol: FRE = M29-04
Text Symbol: FRF = File parameters
Text Symbol: FRK = Additional parameters
Text Symbol: FRM = FormName
Text Symbol: FRS = Select form code
Text Symbol: FRU = Form code:
Text Symbol: FRX = M29/2
Text Symbol: FS2 = Starting no. (BM29)
Text Symbol: FSA = Starting no.(10M29-04-A)
Text Symbol: FSB = Starting number
Text Symbol: ETS = Subt.dom.partner
Text Symbol: 100 = No. of records,
Text Symbol: 101 = form:
Text Symbol: 102 = Number of records in file
Text Symbol: 200 = Files could not be deleted
Text Symbol: 201 = Before restarting the program in productive mode, data supply
Text Symbol: 202 = and technical files should be manually deleted
Text Symbol: ADF = Write tax differences in list of pers.nos.
Text Symbol: CA0 = Comparison
Text Symbol: CA1 = Check previous update run
Text Symbol: CA2 = Tax diff. file name
Text Symbol: CA3 = Save to file
Text Symbol: CK1 = Accompanying list for claiming family allowance
Text Symbol: CK2 = Amount:
Text Symbol: CK3 = Where:
Text Symbol: CK4 = Non-validated part of consolidated allowances
Text Symbol: CK5 = Non-validated part of housing credit allow.
Text Symbol: CK6 = Non-validated part of common charge card allow.
Text Symbol: CK7 = Non-validated part of severe disability allowance
Text Symbol: CKA = Family allowance split NOT required, but amount of family allowance
Text Symbol: CKB = family allowance cannot be validated
Text Symbol: CPS = Write in not compressed form
Text Symbol: CST = Only D (delete) decl.
Text Symbol: CT1 = Non-validated part of tuition allowance
Text Symbol: ER1 = No error occurred
Text Symbol: ERH = No error occurred. See also button SETTING


INCLUDES used within this REPORT RPLM30HQ

INCLUDE: RPLM30HV,
RPCEXTH0, "ÜGYFÉLSPECIFIKUS KONVERZIÓK
RPC2RHH0,
RPC2RX00,
RPPPXD00,
RPPPXD10,
RPC2CD00,
MPPREF00.
INCLUDE: RPPPXM00,
RPCMGR00.


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:

STRING_CONCATENATE call function 'STRING_CONCATENATE' exporting string1 = row string2 = relevantpernr-pernr importing string = row.

STRING_CONCATENATE call function 'STRING_CONCATENATE' exporting string1 = row string2 = '/' importing string = row.

ROUND call function 'ROUND' " felfelé kerekítve adódik a lapok száma exporting decimals = 0 input = temp_2 sign = '+' importing output = pages.

ROUND call function 'ROUND' " felfelé kerekítve adódik a lapok száma exporting decimals = 0 input = temp_2 sign = '+' importing output = pages_m29_4.

ROUND call function 'ROUND' " felfelé kerekítve adódik a lapok száma exporting decimals = 0 input = temp_2 sign = '+' importing output = pages_b.

ROUND call function 'ROUND' " felfelé kerekítve adódik a lapok száma exporting decimals = 0 input = temp_2 sign = '+' importing output = pages_c.

ROUND call function 'ROUND' exporting decimals = 0 input = lv_oldal_tmp1 sign = '+' importing output = lv_oldal_tmp2.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * CODEPAGE = 'ASC' * FILENAME = FILE3 * FILETYPE = 'ASC' * MODE = 'A' * TABLES * DATA_TAB = PROCESSED * EXCEPTIONS * FILE_OPEN-ERROR = 1 * OTHERS = 2.

POPUP_TO_DECIDE call function 'POPUP_TO_DECIDE' exporting defaultoption = '1' textline1 = 'Most futtatja először a programot' textline2 = '"éles"-ben (adatok mágneses adat-' textline3 = 'hordozóra mentésével együtt)?' text_option1 = 'Igen' text_option2 = 'Nem' titel = 'Fájl megnyitása sikertelen' importing answer = answer.

POPUP_TO_DECIDE * call function 'POPUP_TO_DECIDE' * exporting * defaultoption = '1' * textline1 = 'Azok is szerepeljenek a' * textline2 = 'listában, akiknek nincs' * textline3 = 'adóhátralékuk?' * text_option1 = 'Igen' * text_option2 = 'Nem' * titel = 'Figyelmeztetés' * importing * answer = only_nn.

RP_HIRE_FIRE call function 'RP_HIRE_FIRE' exporting beg = pn-begda end = pn-endda importing hire_date = cdatum fire_date = edatum tables pp0000 = p0000 "in pp0001 = p0001 "in pphifi = phifi. "out

ENQUEUE_E_TABLE call function 'ENQUEUE_E_TABLE' exporting tabname = 'T5H2B' varkey = varkey exceptions foreign_lock = 1 system_failure = 2.

DEQUEUE_E_TABLE call function 'DEQUEUE_E_TABLE' exporting tabname = 'T5H2B' varkey = varkey.

HRCA_COMPANYCODE_GETDETAIL call function 'HRCA_COMPANYCODE_GETDETAIL' exporting companycode = p0001-bukrs importing address = addr-addrnumber exceptions not_found = 1 others = 2.

ADDR_GET call function 'ADDR_GET' exporting address_selection = addr importing sadr = sadr1 exceptions parameter_error = 1 address_not_exist = 2 version_not_exist = 3 internal_error = 4 others = 5.

HELP_VALUES_GET_NO_DD_NAME call function 'HELP_VALUES_GET_NO_DD_NAME' exporting * cucol = cucol * curow = curow * display = ' ' selectfield = fieldname titel = text-nyc reduced_status_only = 'X' * no_pers_help_select = 'X' * title_in_values_list = ' ' * use_user_selections = ' ' * show_all_values_at_first_time = 'X' * write_selectfield_in_colours = 'X' importing ind = ind tables fields = fields full_table = nyomtatv heading_table = heading_table exceptions full_table_empty = 01 no_tablestructure_given = 02 no_tablefields_in_dictionary = 03 more_then_one_selectfield = 04 no_selectfield = 05.

STRING_CONCATENATE call function 'STRING_CONCATENATE' exporting string1 = t5h4e-kodfs string2 = t5h4e-kmod1 importing string = mp_subty exceptions too_small = 01.

HELP_VALUES_GET_NO_DD_NAME call function 'HELP_VALUES_GET_NO_DD_NAME' exporting * cucol = cucol * curow = curow * display = ' ' selectfield = fieldname titel = text-nyu reduced_status_only = 'X' * no_pers_help_select = 'X' * title_in_values_list = ' ' * use_user_selections = ' ' * show_all_values_at_first_time = 'X' * write_selectfield_in_colours = 'X' importing ind = ind tables fields = fields full_table = p_popuptab heading_table = heading_table exceptions full_table_empty = 01 no_tablestructure_given = 02 no_tablefields_in_dictionary = 03 more_then_one_selectfield = 04 no_selectfield = 05.

HR_DISPLAY_BASIC_LIST call function 'HR_DISPLAY_BASIC_LIST' exporting lay_out = 1 head_line1 = header1 head_line2 = header2 basic_list_title = sy-title file_name = 'Törzsszámlista' foot_note1 = footnote1 * foot_note2 = footnote2 * foot_note3 = footnote3 current_report = sy-repid list_level = list_level importing return_code = return_code tables data_tab = show_table fieldname_tab = fieldnames error_tab = errortab exceptions print_problems = 5 others = 1.

HR_DISPLAY_BASIC_LIST call function 'HR_DISPLAY_BASIC_LIST' exporting lay_out = 1 head_line1 = header1 head_line2 = header2 basic_list_title = sy-title file_name = 'Törzsszámlista' foot_note1 = footnote1 * foot_note2 = footnote2 * foot_note3 = footnote3 current_report = sy-repid list_level = list_level importing return_code = return_code tables data_tab = show_table_short fieldname_tab = fieldnames error_tab = errortab exceptions print_problems = 5 others = 1.

HR_HU_BE_ES_KILEPESEK * call function 'HR_HU_BE_ES_KILEPESEK' * exporting * per_nr = pernr-pernr * ref_begin = '18000101' * ref_end = '99991231' * tables * hire_fire = i_hire_fire * exceptions * bad_dates = 1 * t5h4e_error = 2 * p0041_begda = 3 * p0041_future = 4 * p0041_sequence = 5 * others = 6.

RP_HIRE_FIRE call function 'RP_HIRE_FIRE' exporting beg = pn-begda end = pn-endda importing hire_date = cdatum fire_date = edatum tables pp0000 = p0000 "in pp0001 = p0001 "in pphifi = phifi. "out

HR_HU_UTOLSO_BELEPES call function 'HR_HU_UTOLSO_BELEPES' exporting per_nr = relevantpernr-pernr ref_date = pn-endda importing last_hire = l_lasthire * MASSN = * MASSG = exceptions not_found = 1 t5h4e_error = 2 p0041_begda = 3 p0041_future = 4 p0041_sequence = 5 others = 6.

HR_HU_UTOLSO_KILEPES call function 'HR_HU_UTOLSO_KILEPES' exporting per_nr = relevantpernr-pernr ref_date = pn-endda importing last_fire = l_lastfire * MASSN = * MASSG = exceptions not_found = 1 others = 2.

POPUP_TO_INFORM call function 'POPUP_TO_INFORM' exporting titel = 'Hiba T5H2M mentésekor' txt1 = 'Az adadatszolgáltatási és technikai' txt2 = 'fájlok törlése után az éles futtatást' txt3 = 'meg kell ismételni!'.

HR_DISPLAY_BASIC_LIST call function 'HR_DISPLAY_BASIC_LIST' exporting lay_out = 1 head_line1 = header1 head_line2 = header2 basic_list_title = sy-title file_name = 'Törzsszámlista' foot_note1 = footnote1 * foot_note2 = footnote2 * foot_note3 = footnote3 current_report = sy-repid list_level = list_level importing return_code = return_code tables data_tab = show_table fieldname_tab = fieldnames error_tab = errortab exceptions print_problems = 5 others = 1.



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