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

Regarding BAPI_MATERIAL_BOM_GROUP_CREATE

Former Member
0 Likes
730

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

3 REPLIES 3
Read only

Former Member
0 Likes
505

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

Read only

Former Member
0 Likes
505

Hi Anil,

Check this Link

[Need help regarding BAPI for CS01|;

In the above thread Naveen posted a sample code to create a BOM Group...!

check that,

Thanks & regards,

Dileep .C

Read only

Former Member
0 Likes
505

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