cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to trigger BADI UJW_LOCKOUT_SCHEDULE_BADI?

former_member245036
Participant
0 Likes
606

Do you know if there is something triggered in BW in background when someone changes the work status using the button "Save Data" ->  "Change Work Status"?

There is an enhanced UJW_LOCKOUT_SCHEDULE_BADI allow you to interfere in that process. How can I call the UJW_LOCKOUT_SCHEDULE when the status is changed?

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

For work status changes you have to look on

BADI UJW_STATE_CHANGE

former_member245036
Participant
0 Likes

Dear Vadim,

I've tried your badi but when I run lock data I can not access debug mode of this badi code.

please guide me more details

thanks so much

former_member186338
Active Contributor
0 Likes

Just add the infinite loop in the beginning of badi, then use SM50 to debug the process

Answers (1)

Answers (1)

Former Member
0 Likes

BADI UJW_LOCKOUT_SCHEDULE is called when data is submitted to check if Work Status allows it or not. BADI UJW_STATE_CHANGE is not used any longer.

former_member186338
Active Contributor
0 Likes

Ups, looks like it's not supported - note: http://service.sap.com/sap/support/notes/2207408

Any other method to trigger some code when user change work status?