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,user exit.

Former Member
0 Kudos

my requirement is in tcode cs02,

when i give the particular material number - 16666

and enter into it , no one should able to save the datas...

is it possible?

if so how? userexit, badi..

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

Murali,

yes it is quite possible put check in BADI CEWB_BOM_UPDATE

method CHECK_BOM_AT_SAVE from se19

Amit.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos

Murali,

yes it is quite possible put check in BADI CEWB_BOM_UPDATE

method CHECK_BOM_AT_SAVE from se19

Amit.

0 Kudos

ok but in that method if u check the parameters,

there is no specific parameter for material number, and there is no changing parameters..

my req. is too specific with the material no.166666

0 Kudos

hi,

u have the field for material in STPOB structure in badi CEWB_BOM_UPDATE method CHECK_BOM_AT_SAVE.

0 Kudos

yes check_bom_at_save is useful.

could u help me with the code

0 Kudos

hi i have coded like this,

but when i save this and try to debug , it is not going into the debug screen at all.?

method IF_EX_CEWB_BOM_UPDATE~CHECK_BOM_AT_SAVE .

read table mastb into w_mastb with key matnr =

'000000000000016666' .

if sy-subrc eq 0 .

message i600(fr) with w_mastb-matnr .

endif .

endmethod.