03-15-2014 2:05 AM
Hi Experts -
I am working on a client requirement dealing with t code CJ02 in SAP PS module. Customer wants some custom checks on certain fields when creating/editing WBS structure under a project. I need this validation to happen at PAI event (ENTER or SAVE)
Is there a SAP provided exit that can be leveraged for this functionality?
Please let me know. Much thanks.
Thank you,
Amit.
03-15-2014 2:49 AM
hi,
check the badi workbreakdown_update.
it has two methods AT SAVE and BEFORE_UPDATE which can be used.
regards,
priyaranjan
03-16-2014 7:40 PM
Hi -
Thank you for your reply. Though this BADI is trigerred at SAVE of WBS element, when I raise an error message from it, all the screen fields are greyed out. My only option is to raise the exception of the method. This inturn displays the error message as an information message in a pop-up.
Do you know of any other way or any other exit? Otherwise the only solution I see is to do an Enhancement spot in the PAI routine of the screen logic.
Thanks for the help.
Amit.
03-17-2014 9:10 AM
Hi Amit
Even the message is displayed as an information message if you raise exception but it wont let you save. This is how this BADI method functionality is designed. Apart from it it does not look ok to you you can try PS validations on save
Thanks
Nabheet
03-17-2014 8:59 AM
Hi,
You probably already think about it but you can create an exit in validation and substitution for the wbs transaction OPSI.
The inconvenience is that this exit are only trigered at save but in case of an error the user can still modify the values.
Do you have try exit CNEX0001?
Best regards
Yannick
03-17-2014 9:12 AM
Three solutions
Regards,
Raymond