28.2.11

SAP Note 23826 - Error in the ZLIT fct. when OUTZL oper. is used

Symptom:

If operation OUTZL is used in a cycle accessed by function ZLIT, then
the correct results are not achieved for all parameters.

Cause and prerequisites

This is caused by a program error.

Solution
If you run the payroll with RPCALCU0 (USA), RPCALK0 (Canada) or RPCALCJ0 (Japan), make the changes in RPCMAS09. All other country versions are based on the RPCMAS00 program. Make the following changes in the 'Fuzlit' routine in program RPCMAS00 or RPCMAS09:
form fuzlit
ccycl = as-parm1.
* XIT-KENN1 = SPACE.
perform fubzl-init-natio.
* OLDZLPOSID = SPACE.
oldzldate = space.
refresh zh. "<--insert
loop at zl. zh = zl. append zh. endloop. "<--insert
clear loopnr. "<--insert
* loop at zl. "<--deactivate
loop at zh. "<--insert
loopnr = sy-tabix. "<--insert
at first.
if ccycl gt space. perform phase-heading. endif.
endat.
* check as-parm4 ca zl-iftyp. "<--deactivate
check as-parm4 ca zh-iftyp. "<--insert
it = it0.
if ccycl gt space. "Regeleverarbeitung?
* ZL = ZH wird in znn-regel durchgeführt
* zh = zl. "<--deactivate perform znn-regel.
.
.
.
else.
* cdatum = zl-datum. "<--deactivate
cdatum = zh-datum. "<--insert
perform pos-wpbp.
it-abart = wpbp-abart.
it-apznr = wpbp-apznr.
perform pos-cntr.
move-corresponding split-natio to it.
* it-c1znr = zl-c1znr. "<--deactivate
* it-abznr = zl-abznr. "<--deactivate
* it-alznr = zl-alznr. "<--deactivate
* it-lgart = zl-lgart. "<--deactivate
* it-anzhl = zl-anzhl. "<--deactivate
it-c1znr = zh-c1znr. "<--insert
it-abznr = zh-abznr. "<--insert
it-alznr = zh-alznr. "<--insert
it-lgart = zh-lgart. "<--insert
it-anzhl = zh-anzhl. "<--insert
collect it.
endif. "Regelverarbeitung?
endloop. "at ZL

Afterwards, please check to ensure that the payroll program does not
contain any errors.

No comments:

Post a Comment