Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

hr abap issue

hi all,

how to extract the hire date from infotype 0041

my requirement is extract the employee hire date

thanks & regards

Revathi Raj

Edited by: revathi raju on Sep 4, 2008 12:11 PM

Tags:
Former Member
Former Member replied

Hi Raju,

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

Thank you

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question