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: 

User-Exit at Save for KL01

Former Member
0 Kudos

Hi,

Is there any user-exit at save for transaction KL01.

Here is my requirement.

Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.

The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.

So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.

Does any one know any user-exit in KL01 which trigger at save. Please let me know

Thanks,

Pratik

3 REPLIES 3

Former Member
0 Kudos

Hi,

Is there any user-exit at save for transaction KL01.

Here is my requirement.

Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.

The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.

So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.

Does any one know any user-exit in KL01 which trigger at save. Please let me know

Thanks,

Pratik

Former Member
0 Kudos

Hi Pratik Shah,

Why don't you call both transactions one after another from PBAS0001. I mean to say that first call KL01 in 'S' mode, read the table to make sure that activity is commited to database, then call KP26.

The other solution is to use enhancement <b>COOMLA01 (Customer Fields for Activity Type Master Data)</b>, create a dummy screen with out any field( so this exit is called and create a Batch Input for KP26.

0 Kudos

Hi Sharad,

Thanks for your reply.

I always have an option for executing both KL01 and KP26 fron PBAS0001, but what i was thinking that if there is any exit available at save in KL01, i can trigger KP26 from there.

If i could not find any exit, i will call both KL01 and KP26 from PBAS0001 itself.

Thanks,

Pratik