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: 

stlnr field in bom_update badi?

Former Member
0 Kudos

hi all,

my task is to "implement a badi when ever material BOM is created".i am using BOM_UPDATE badi.

i AM NOT GETTING THE VALUE OF STLNR field in any of the internal table.where would i get the value?

thanks.

1 ACCEPTED SOLUTION

YayatiEkbote
Contributor
0 Kudos

Hello Charu,

Which method of the BADI are you using? Sometimes the fields have different name but same domain or data element. So while debugging check the field in which the requisite value comes. STLNR is the field for BOM number. Importing parameter DELTA_STZUB of method change_at_save of BADI BOM_UPDATE is a structure. Access this structure and you will see STLNR inside it.

Regards,

Yayati Ekbote

7 REPLIES 7

YayatiEkbote
Contributor
0 Kudos

Hello Charu,

Which method of the BADI are you using? Sometimes the fields have different name but same domain or data element. So while debugging check the field in which the requisite value comes. STLNR is the field for BOM number. Importing parameter DELTA_STZUB of method change_at_save of BADI BOM_UPDATE is a structure. Access this structure and you will see STLNR inside it.

Regards,

Yayati Ekbote

0 Kudos

yes, i have introduced code in change_at_save method.in debugging mode delta_stkob-stlnr value is 'INTERNAL'.

rest of the tables remains empty...i m not able find out the bom number allocated when nem bom is created.

charu

Edited by: charudevrani on Jan 9, 2012 7:42 AM

0 Kudos

hello charu,

Are you applying the debugger by putting a 'BREAK-POINT' in the method of BADI or you are debugging by running the transaction. May be you are checking the field before the value is given to field. Have you checked any other BADI for your purpose?

Regards,

Yayati Ekbote

0 Kudos

hi,

applying the debugger by putting a 'BREAK-POINT' in the method of BADI .

0 Kudos

other badi other then bom_update after i press save button doesnot contain stlnr field.

0 Kudos

Hi,

In the same BADI, implement the Method 'CHANGE_BEFORE_UPDATE', in that the table DELTA_STZUB has the entry for STLNR.

The above method will get triggered after the Method 'CHANGE_AT_SAVE'.

Thanks & Regards

Bala Krishna P

0 Kudos

hi thanks problem solved