We are using 10 to 12 wagetypes for infotype - 8 through BADI implementation. But there is a place to enter max 5 to 7 wage types in grid for remaining we have to scroll down the grid.
The issue is that Indirect Valuation wage types are not getting calculated because of less space on grid. Is there any way to increase the grid hight or calculating wagetypes even if there is no space left on screen.
" With this FM you can Get the PERNR CU
CALL FUNCTION 'CU_READ_RGDIR'
persnr = l_pernr
in_rgdir = ti_rgdir
no_record_found = 1
OTHERS = 2.
" After you have to do a Loop at ti_rgdir:
LOOP AT ti_rgdir WHERE srtza EQ 'A' AND .
" Get wage result
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
clusterid = 'VE'
employeenumber = l_pernr
sequencenumber = ti_rgdir-seqnr
payroll_result = it_result
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
" Check the it_result deep structure to watch the wage results.
Hope it helps you...
Alexis Sánchez N.
SAP ABAP Development Consultant
Edited by: Thomas Zloch on Apr 13, 2010 10:50 PM