Application Development 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: 

User exit for CJ02

Former Member
0 Kudos

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.

5 REPLIES 5

priyaranjan_gupta
Participant
0 Kudos

hi,

check the badi workbreakdown_update.

it has two methods AT SAVE and BEFORE_UPDATE which can be used.

regards,

priyaranjan

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

Three solutions

  • Customer Exits - SMOD CNEX0007
  • BAdI - SE18 WORKBREAKDOWN_UPDATE - method AT_SAVE raising ERROR_WITH_MESSAGE
  • PS Validation - SPRO or OPSI at WBS level

Regards,

Raymond