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: 

BADI / EXITS for CJ20N (on Save)

abap_learner
Explorer
0 Kudos

Hello Everyone,

I need a BADI/Exit for CJ20N which basically provides these 3 fields values when someone click on "save" button of tcode: CJ20N.

You can get the below screen by pressing (ctrl+shift+F4) if you open any WBS element no. :

pic.png

Thankyou!

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

What do you mean with 'provide', do you want to force the values or to trigger the display (always?)

A BAdI like WORKBREAKDOWN_UPDATE wouldn't be useful to change data prior to change, so you should look at substitution/validation for WBS (OPSI or SPRO, that will allow use of Exit for some code)

0 Kudos

On save, I need the value of the fields that are shown in attached screenshot.

0 Kudos

The BAdI WORKBREAKDOWN_UPDATE methods also provide this information, AT SAVE allows raising an error when BEFORE_UPDATE only allow triggering of other task. A user-exit executed in validation or substitution rule on WBS will provide access to fields of PRPS for some action during the transaction.