Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Display age of emp in it0002
1. how to display "age of employee"? Reply
Posted: Nov 23, 2011 5:01 PM
Hi,
Can you pls tell me the procedure to display "age of employee" in IT 0002?
I appreciate your helping nature.
Thanks
Yogi
Re: how to display "age of employee"? Reply
Posted: Nov 23, 2011 5:47 PM in response to: yugender
Kummari
Create a custom field in IT0002 with the help of the ABAP and maintain the AGE of an
employee but this will vary from time to time.
Best Regards,
Re: how to display "age of employee"? Reply
Posted: Nov 23, 2011 5:49 PM in response to: yugender
Kummari
You could show ee's age by modifying infotype header assigned to IT0002 to have an
additional field (IT = 0002, field name =
'EMPL_AGE', config in T588J).
Re: how to display "age of employee"? Reply
Posted: Nov 23, 2011 8:24 PM in response to: yugender
Kummari
as per my knowledge there is standard screen avilable in country grouping 99 which has age
field , you can search for the readily avilable screen
Re: how to display "age of employee"? Reply
Posted: Nov 24, 2011 5:37 AM in response to: yugender
Kummari
Hi,
There are different screens available for Infotype 2 for various countries.
Each Screen differs from the other one with few different fields.
I remember IT2 screen having this Age field. Check if that contains other fields also.
You can search ModulePool for iT 2
Thanks & Regards,
Param
Re: how to display "age of employee"? Reply
Posted: Nov 24, 2011 6:08 AM in response to: yugender
Kummari
Hi Yugendar,
Get the Date of Birth (GBDAT) from Infotype 0002 and use Sy-Datum field and mention
condition like this
2. wa_final-age = Gbdat-sydatym.
or
use this FM
data : months like vtbbewe-atage,
years like vtbbewe-atage,
days like vtbbewe-atage.
clear : days, years, months.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = t_pa0001-doj
i_date_to = sy-datum
i_flg_separate = 'X'
importing
e_days = days
e_months = months
e_years = years.
if days gt '15'.
months = months + 1.
endif.