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

Error in BAPI_MATERIAL_BOM_GROUP_CREATE.

Former Member
0 Likes
1,933

Dear All,

I am trying to create BOM using BAPI : "BAPI_MATERIAL_BOM_GROUP_CREATE" in a Program.

Now the problem is that when I Execute this, after the BAPI, i get Following Error messages in the Return Table of BAPI:

1) Type W - Error when checking the data of the object type=ITM / Id= of group Id=

2) Type E - Bill of material is not valid

3) Type A - No instance of object type BOMGroup has been created. External reference:

Now the other thing is that When i execute the BAPI through SE37 with the same data that is passed through the Program to BAPI, it is successfully creating BOM without any error.

Can some one help on this please??

It is ugent.

Helpful answers will be rewarded.

Regards,

Tejas

3 REPLIES 3
Read only

Former Member
0 Likes
958

Problem Solved...!

Instead of '1' as ALTERNATIVE_BOM in VARIANTS and MATERIALRELATIONS of BAPI, I passed '01'.

that Did it...Cheers.....

-Tejas

Read only

0 Likes
958

Thanks for your post, it helps me a lot.

Read only

P507709
Participant
0 Likes
958

hi,

Have u declared FM:bapi_TRANSACTION_COMMIT .SEE IT IS GIVEN R NOT .and have u declared

1)BOM group

2) VARIANTS

3)Material relations

regards

Durgaprasad