‎2009 May 10 9:54 AM
Dear All,
Bom is created with given BAPI_MATERIAL_BOM_GROUP_CREATE. But the issue is while creating multiple subitems for each item. it is creating only one subitem for each item.
Please let me know regarding this.
Regards
Anil
‎2009 May 11 5:32 AM
Hello,
To create a BOM u can use "CSAP_MAT_BOM_CREATE" this FM.
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
EXPORTING
MATERIAL = MATERIAL
PLANT = N_PLANT
BOM_USAGE = '1'
VALID_FROM =
CHANGE_NO =
REVISION_LEVEL =
I_STKO = I_STKO
FL_NO_CHANGE_DOC = ' '
FL_COMMIT_AND_WAIT = ' '
FL_CAD = ' '
FL_DEFAULT_VALUES = 'X'
IMPORTING
FL_WARNING =
BOM_NO =
TABLES
T_STPO = T_STPO
T_DEP_DATA =
T_DEP_DESCR =
T_DEP_ORDER =
T_DEP_SOURCE =
T_DEP_DOC =
T_LTX_LINE =
T_STPU =
EXCEPTIONS
ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE I001 WITH 'BOM not Created for' MATERIAL.
elseif SY-SUBRC = 0.
MESSAGE I001 WITH 'BOM Created for' MATERIAL.
ENDIF.
Thanks & Regards,
Sayali Paradkar
‎2009 May 11 8:32 AM
‎2009 May 11 10:49 AM
Dear All,
I have done this on myself with subitems.
First bapi(csap_mat_create) is not yet relased by SAP and more over it will satisfy limited funcitonalities.
Other one, already checked yesterday,but it doesnt help me. In my case it is having subitems for each
item
Regards,
Anil Kumar