2008 Mar 20 8:08 AM
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
2008 Mar 20 8:13 AM
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.
2008 Mar 20 8:10 AM
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
2008 Mar 20 8:13 AM
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.
2008 Mar 20 8:15 AM
I have to use the named FM because only this one supports AFS-data.
2008 Mar 26 9:37 PM
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