Skip to Content
0
Former Member
May 09, 2008 at 07:03 AM

How to get the first and second quarter from CRT

35 Views

Dear Freinds,

I have one scenario , the Functional SPEC says Read the payroll results and from the CRT get all the 4 quaters

for the wage type /5UH and sum them and then pass on the to field in the main strucutre.

Iam using the FM HR_GET_PAYROLL_RESULTS

CALL FUNCTION 'HR_GET_PAYROLL_RESULTS'

EXPORTING

pernr = fp_v_pernr

permo = fp_v_permo

pabrj = fp_v_pabrj

pabrp = fp_v_pabrp

actual = 'A'

TABLES

result_tab = i_payresult

EXCEPTIONS

no_results = 1

error_in_currency_conversion = 2

t500l_entry_not_found = 3

period_mismatch_error = 4

t549q_entry_not_found = 5

internal_error = 6

wrong_structure_of_result_tab = 7

OTHERS = 8.

Iam collecting all the Actual Result (current result) values

on the selection screen iam passing for month april (04 2008)

so this falls in the second quater .

the internal table i_payresult is picking up only the second quater (01-04-2008 to 30/04/2008 ) ,but since on the selection screen iam pasing as other period (04 2008) the internal table i_payresult returing from the FM (HR_GET_PAYROLL_RESULTS) only picks the second quater,

could any one let meknow how i can pick up the first quarter as well and add the first and second quater to mee the requirement .

Please help me in this regard

Thanks & regards

maduri