Skip to Content
0
Former Member
Jun 02, 2009 at 06:32 PM

not getting correct data for masterdata from cmod

32 Views

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