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: 

CS_BI_BOM_CHANGE_BATCH_INPUT - need urgent help

Former Member
0 Kudos

Hi!

Does anyone of you already used this function module for changing an existing BOM?

CS_BI_BOM_CHANGE_BATCH_INPUT

I don't know exactly how to use this function module and it would be really nice if someone has some example coding or a simple documentation.

Thanks a lot!

Kind regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use this FM:

CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'

EXPORTING

MATERIAL = GWA_SELBOM-MATNR

PLANT = LV_PLANT

BOM_USAGE = '1'

ALTERNATIVE = LV_STLAL

VALID_FROM = LV_DATUV

I_STKO = GWA_I_STKO

FL_COMMIT_AND_WAIT = 'X'

FL_DEFAULT_VALUES = 'X'

IMPORTING

FL_WARNING = LWA_FL_WARN

O_STKO = LWA_O_STKO

TABLES

T_STPO = GT_T_STPO

EXCEPTIONS

ERROR = 1

OTHERS = 2.

Please reward if hekpfull.

Rebeka.

4 REPLIES 4

Former Member
0 Kudos

Hi Jet,

Go to SE37 and give the function module name and press where-used-list button to find where and all the function module is being used ..

Regards,

Santosh

Former Member
0 Kudos

Use this FM:

CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'

EXPORTING

MATERIAL = GWA_SELBOM-MATNR

PLANT = LV_PLANT

BOM_USAGE = '1'

ALTERNATIVE = LV_STLAL

VALID_FROM = LV_DATUV

I_STKO = GWA_I_STKO

FL_COMMIT_AND_WAIT = 'X'

FL_DEFAULT_VALUES = 'X'

IMPORTING

FL_WARNING = LWA_FL_WARN

O_STKO = LWA_O_STKO

TABLES

T_STPO = GT_T_STPO

EXCEPTIONS

ERROR = 1

OTHERS = 2.

Please reward if hekpfull.

Rebeka.

0 Kudos

I have to use the named FM because only this one supports AFS-data.

0 Kudos

Use the below function module to change the AFS BOM. go through the documentation you need to pass the UPDATE INDICATOR.

/AFS/BAPI_MAT_BOM_MAINTAIN