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: 

Validating fields in CJ20N using BADI

Former Member
0 Kudos
820

Hi

I have a requirement to implement a BADI BUS2001/BUS2054.

There are two Bussiness Add-Ins for - the following transactions-CJ20N, CJ27, CJ2B, CJ2D, CJ20, CJ01, CJ11, CJ12.

1)For project definition (object BUS2001): PROJECTDEF_UPDATE

2)For wbs element (object BUS2054): WORKBREAKDOWN_UPDATE

If I am correct until this information, Coud you please guide me how to implement the BAdI to validate some of the field inputs(like Statistical Indicator,Account Assignment, Settlement Rule ...etc) in this transaction.

Your Help is highly appreciated.

ThankQ

Krishna

1 REPLY 1

Former Member
0 Kudos
161

Go to SE19 -> Create Implementation -> Calssic Badi -> WORKBREAKDOWN_UPDATE -> Create Impl. -> Give a Z** name to your badi implementation. The class name will automatically be suggested. keep it. Once you do this, you are into what looks very similar to class builder. most likely, you would use 'At_Save' meathod. however, from the documentation of this BADI, it apears that it is not possible to throw any hard errors.. if you do, WBS elements info is likely to be discarded.

Once at this point, double click on the class name and then At_SAVE. this will take you to where you can type your code. Check the import parameters for what values you have available.

Also, go to the following link and navigate to "Business add-ins" in the left navi panel. It walks you thru every stpe.

http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf1940e11d295df0000e82de14a/frameset.htm