on 08-16-2013 6:04 AM
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.
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
Hi Hariprasath,
I would say. Change of core functionality is not a good idea. Why don't you use a standard functionality via BBP_DOC_CHECK_BADI? What for do you need a WDA enhancement?
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Konstantin
we are not facing any issue with WDA code changes. by using the do modify view we are just showing the error message when lauching the work item from UWL if the supplier is not maintained.
For all the remaining validations we have used the BADI.
As I mentioned above after implementing the BADI without maintaining the supplier if we trying to make some other changes in the Line Item it doesn't allow to proceed further.
It says the save cannot be carried out in the pop up. As soon as we are getting the message in the pop up all the custom messages implemented through BADI are suppressed by the standard pop up.
Regards,
Hariprasath
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.