Hi gurus,
I have 0employeemaster data. which is getting work center information from one of the HR info type table as below,
LOOP AT i_wkc
WHERE objid = wa_bwe_0employee-plans AND
begda <= wa_bwe_0employee-begda AND
endda >= wa_bwe_0employee-endda.
wa_bwe_0employee-zzwrkc = i_wkc-wkc.
EXIT.
ENDLOOP.
with this logic if the work center gets changes for certain date criteria its not picking up the correct record in 0employee.
eg. for 123 employee number no change in any record since 2008/01.
but the work center for position 56789 has been changed from 23456 to 98765 starting 2008/12/15.
with above code i dont get any record for new changes in work center.
can someon suggest me appropriate code change which can fix the issue asap.
thanks,
KS