Application Development and Automation 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: 
Read only

badi,user exit.

Former Member
0 Likes
902

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
Read only

Former Member
0 Likes
860

Murali,

yes it is quite possible put check in BADI CEWB_BOM_UPDATE

method CHECK_BOM_AT_SAVE from se19

Amit.

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..

5 REPLIES 5
Read only

Former Member
0 Likes
861

Murali,

yes it is quite possible put check in BADI CEWB_BOM_UPDATE

method CHECK_BOM_AT_SAVE from se19

Amit.

Read only

0 Likes
860

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

Read only

0 Likes
860

hi,

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

Read only

0 Likes
860

yes check_bom_at_save is useful.

could u help me with the code

Read only

0 Likes
860

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.