Application Development 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: 

TCODE PA40

Former Member
0 Kudos

Hi ,

I have created a bdc recording for fk01 transacation. Whenever i hire an employee using pa40 this BDC should be triggered in background after pa40 hiring process is done for the employee. How to make the BDC trigger after pa40 action

Rgds,

Vani.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi vani,

1. When PA40 is done, many infotypes come in sequence ( as per configuration) for entering the data.

2. When the last infotype comes, we can make use

the standard user exit (for all infotypes)

userexit = PBAS0001.

3. In that you can use the fm/exit

EXIT_SAPFP50M_002

This gets triggered while saving the data in the infotype.

4. Since this will get triggered everytime an infotype is saved,

we can write some specific code inside it,

to check whether the current tcode is PA40 and the

current infotype is the last infotype.

If yes, only then we should SUBMIT our bdc program.

regards,

amit m.

4 REPLIES 4

Former Member
0 Kudos

Hi vani,

1. When PA40 is done, many infotypes come in sequence ( as per configuration) for entering the data.

2. When the last infotype comes, we can make use

the standard user exit (for all infotypes)

userexit = PBAS0001.

3. In that you can use the fm/exit

EXIT_SAPFP50M_002

This gets triggered while saving the data in the infotype.

4. Since this will get triggered everytime an infotype is saved,

we can write some specific code inside it,

to check whether the current tcode is PA40 and the

current infotype is the last infotype.

If yes, only then we should SUBMIT our bdc program.

regards,

amit m.

0 Kudos

Hi,

The exit is not getting triggered when pa40 tcode is run. Control is not going to the break-point set in the exit. What could be the reason. Plz help.

Rgds,

Vani.

0 Kudos

Hi again,

1. It should get triggered.

(It will get triggered after pa40 first screen,

when each of the infotypes are SAVED).

I have worked on this same tcode and it was working fine.

2. What you can do is instead of pa40,

use pa30 tcode and try to modify any infotype (eg. 0002)

and save. (atleast modify one field so that save happens, or create a record)

3. Put unconditional breakpoint inside the exit. and make

sure the exit is ACTIVATED in CMOD.

Some minor operational mistake may be there, otherwise

it will work.

regards,

amit m.

Former Member
0 Kudos

Hi Vani.

I would like to suggest a couple of references, as it is similar to your requirement,

[SDN - Reference - Dynamic Actions|]

[SDN - Reference - Creating a new employee and Dynamic Action PA40|;

[SDN - Reference - Dynamic Action in PA40|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave