Quantcast
Viewing all articles
Browse latest Browse all 3184

During implementation of check BADI - standard pop up suppressed

Dear Experts

 

We have a requirement to maintain supplier as a mandatory field for a SC during the approval process. Purchaser will maintain the
supplier and then proceed with the approval of SC. If not error message should be displayed on the message area until he maintains the supplier for all the Line Item.

 

We have implemented the code in WDA (using enhancement framework) and Check BADI (BBP_ITEM_CHECK_BADI) to get the necessary error
message.

 

Say for example we have two Line Item in SC. Here approver maintains the supplier only for the first Line Item and trying to click save
button without maintaining the Supplier for the second Line Item. During this action by using the Check badi we are trying to show the message on the screen.

 

After that save action all our messages are suppressed and overtaken by standard Pop up at run time.

 

 

 

Image may be NSFW.
Clik here to view.
Untitled.png

 

 

When we suppress pop up the pop up gets suppressed for all functionalities including standard.

 

 

Class - /SAPSRM/CL_CH_WD_MAP_MSG_HDLR

Method - HAS_EXCEPTION

 

   

Within this method we are trying to clear the Exception flag (rv_has_exception). After which we get
error messages as pop up is now hidden. But if we enhance this method our code
will overtake all the standard functionalities to show the pop up in entire SRM
packages. We are not sure about the impact of this change.

 

 

Also is there any other way to handle this requirement.

 

 

 

Kind Regards,

Hariprasath


Viewing all articles
Browse latest Browse all 3184

Trending Articles