2011 Nov 17 8:27 AM
Hi Experts,
I have a requirement like need to hire the employee without the employee number, once the emp number is generated then I need to pick the same and do the other info types like ( 0001,2,6,8, ect.)
Can any body suggest that how can I achieve the above req. Do we have any Function modules of BDC.
I have used the BDC, then employee number is getting generated but I am unable to pick the same emp number for other info types for creation of records.
Regards
Sreenivas
2011 Nov 17 9:00 AM
Hi,
if you can get all datas for personal one time. hr functional can create a new action type(massn) with a line 0-1-2, 6, 8 exc so you can batch all infotypes in one operation with one excel. this method doesn t need pernr for each infotype. but if you don t want to develop a new batch program. you can add a 'Last Person' checkbox to existing batch programs. when checkbox clicked you can get last pernr with
SELECT MAX( pernr ) from pa0000 into gv_pernr
where stat2 ne '0'.
Çağatay
2011 Nov 18 7:03 AM
Hi Seenu,
Are you generating employee no using BDC?
If so then you can even pick it after it gets generated. First check while recording the screen field(technical name) getting populated with this pernr.
Go just further to check whether if any memory Id(parameter id) linked to it , after call transaction , import that memory ID to a new variable which is nothing But your generated pernr.
Then you can follow your rest of the logic to input other infotypes.
The most Important point is : FIND OUT THE MEMORY ID OF PERNR ON YOUR SCREEN.
2011 Nov 18 7:04 AM
Hi Seenu,
Are you generating employee no using BDC?
If so then you can even pick it after it gets generated. First check while recording the screen field(technical name) getting populated with this pernr.
Go just further to check whether if any memory Id(parameter id) linked to it , after call transaction , import that memory ID to a new variable which is nothing But your generated pernr.
Then you can follow your rest of the logic to input other infotypes.
The most Important point is : FIND OUT THE MEMORY ID OF PERNR ON YOUR SCREEN.
2011 Nov 18 7:28 AM
I have used the BDC, then employee number is getting generated but I am unable to pick the same emp number f
If its bdc you can get it from the bdc message table.
Kesav