hr abap issue
how to extract the hire date from infotype 0041
my requirement is extract the employee hire date
thanks & regards
Edited by: revathi raju on Sep 4, 2008 12:11 PM
The Date type for hire date is ' U1 '
Now you need to loop through all the dates in the infortype 41
and compare the date types for U1.
Once u get the date type in the variable
DAR0X ,Then particular DAT0X will be ur hire date...
ok lets see the example as how to do...
data: l_datar type datar, l_dardt type dardt. do 12 times varying l_datar from pa0041-dar01 next pa0041-dar02 varying l_dardt from pa0041-dat01 next pa0041-dat02. if l_datar eq U1. v_hiredate = l_dardt. endif. enddo.
The above is just a sample code..Check if it is helpful