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 and BADI trigger in background

Former Member
0 Kudos

Hi All,

I've implemented user exit/BADI for transaction eg: IW31 to auto default certain values. For those work order which schedule via IP10 or create by customize upload program, if those user exit/BADI manage to trigger? Thanks.

5 REPLIES 5

Former Member
0 Kudos

Hi Sky,

You can create a function module with the function requirement which you want. When using call function in background task in the User Exit/BADI.

Thanks,

Yawa

0 Kudos

Hi Yawa,

Let say I using user exit to default certain field value in work order. The user exit is working fine during online transaction and it manage to trigger.

How about if those work order create via customize upload program and this program will be schedule running in background job. Will the user exit manage to trigger at this point?

0 Kudos


Hi Sky,

You create the work order by upload program. Do you use BAPI to create?

Maybe the user exit/BADI cannot be triggered When through BAPI create.

You need to find another way to implement the function same as in user exit/BADI.

Thanks,

Yawa

0 Kudos

Hi Yawa,

Thanks for your reply.

I may create the upload program via BDC. So wonder if this program running is background job, those BADI/User exit if manage to trigger.

My question may normally if the user exit manage to be called when those creation transaction (eg: IW31, ME21N, etc) running in background?

0 Kudos


Hi Sky,

You can set breakpoint in background job runing the z-program. to debug the background running program. whether the user exit was triggerred.

During debugging, you can change the BDC mode as 'A'. check step by step operation. whether the user exit can be triggerred.

You can check the sy-batch field. whether this field affected the user exit triggerred.

Thanks,

Yawa