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

Error Message Type 'W' gets handled as 'I' in BADI

filipagatic
Explorer
0 Kudos
599

Hello together,

i am using the BADI SD_SLS_CHECK_BEFORE_SAVE and its working almost perfect.

I make a check for the credit limit when removing the deliveryblock. And i want to give out the message as a Warning when the credit limit is exceeded. I tried out the Messagetype 'E' and it displayed me an Error Message like it should and i could not save the salesorder. But in my case i got 'W' in there and i get the Message as Info and it gets saved automatically before asking.

filipagatic_0-1732186002732.png

Does anyone know the solution?

Best regards

Filip

filipagatic_1-1732186222180.png

 

 

View Entire Topic
Zhehui_Xia28
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Filip,

I read your code and don't find anything wrong. Do you mean it works when the message type is "E" and the process is blocked, but when you set the value to "W", it only returns an information but not a warning?

If so, can you use Custom Logic Tracing to check how the BAdI works?

Best Regards,

Zhehui

filipagatic
Explorer
0 Kudos

Hello Zhehui,

yes, the "W" is acting like an information. But i think this type of BADI works like this.

I traced the custom logic and found out that it is returned correctly as a W, but in the Sales Order i just get the information back and it gets saved automatically.

filipagatic_0-1732528551415.png

Best regards 

 

Filip

Zhehui_Xia28
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Filip,

Yes, I think it is possible that some BAdI just runs like this because the value of type is correct.

Best Regards,

Zhehui