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 BOM_UPDATE

Former Member
0 Likes
2,204

Hi all

where I can find samples about BADI BOM_UPDATE?

txs

Stefano

Hi all

where I can find samples about BADI BOM_UPDATE?

txs

Stefano

2 REPLIES 2
Read only

Former Member
0 Likes
1,273

If you want to make use of the BADI definition BOM_UPDATE, you have do implement this.

This can be done by,

1. Go to SE18 and give the BADI BOM_UPDATE.

2.Go to Implementation-->Create then give the implementation name as ZBOM_UPDATE then give the desription for the implementation.

3.Then go to the interface tab there you can find the Methods.

Here for this defintion you can find the methods are CHANGE_IN_UPDATE, CHANGE_BEFORE_UPDATE, CHANGE_AT_SAVE.

Put the break point in the relevent methods and activate the implementation.

Reward the points if it is useful.

Read only

Former Member
0 Likes
1,273

hi,

DATA: l_matkl type mara-matkl.

DATA: stpob TYPE stpob.

DATA: FIELD_NAME(30) VALUE '(SAPLCSBT)O1-STPOB[]'.

FIELD-SYMBOLS: <TABLE> TYPE TABLE.

ASSIGN (FIELD_NAME) TO <TABLE>.

LOOP AT <TABLE> INTO STPOB.

clear l_matkl

clear stpob-sortf.

select single matkl

from MARA

into l_matkl

where matnr = stpob-idnrk.

if sy-subrc eq 0.

concatenate l_matkl(3) '.' stpob-posnr(3) into sortf.

modify <table> from stpob.

*else.

*modify <table> from stpob.

endif.

ENDLOOP.

COMMIT WORK and WAIT.

Regards