08-04-2008 7:46 AM
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.
08-04-2008 7:54 AM
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.
08-04-2008 7:54 AM
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.
08-04-2008 1:06 PM
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.
08-04-2008 1:22 PM
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.
08-04-2008 7:57 AM