Application Development and Automation 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: 
Read only

which method for badi WORKORDER_UPDATE

Former Member
0 Likes
830

i need to trigger error message if user enter a specific qty at CJ20N, activity level,

in which method shall i use, i tried BEFORE_UPDATE method, but it triggers short dump, AT_SAVE method only enables at header level, is there any way i can trigger the error msg ? pls adivce

3 REPLIES 3
Read only

Former Member
0 Likes
588

I checked the documentation for this BADI which says-

"Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time."

So , It doesnt seem to be possible for any other method as per the documentation.

Cheers,

Disha

Read only

0 Likes
588

Hi Disha,

yes i understood AT_SAVE method can be used to trigger error msg, but it did not fulfill my requirement , as it is triggered at the early of save, i need to check the material quantity at acitvity level, hence i cannot use this method..

Read only

0 Likes
588

So I guess, probably using this BADI , you will not be able to check material quanitity at the activity level.

You need to find some work aroind for doing so.