Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hirired Employee number

Former Member
0 Kudos
579

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

4 REPLIES 4
Read only

Former Member
0 Kudos
526

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

Read only

former_member187570
Participant
0 Kudos
526

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.

Read only

former_member187570
Participant
0 Kudos
526

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
526

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