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

Re: BOM Creation

Former Member
0 Likes
842

Hi,

I am creating BOM using CSAP_MAT_BOM_CREATE. But BOM header quantity(base Quantity) was updated always with value 1 irrespective of copy from BOM value.

I am getting BOM details from CSAP_MAT_BOM_READ and then passing these values to CSAP_MAT_BOM_CREATE . in the header table stko, I am passing 10 as basw qty to CSAP_MAT_BOM_CREATE. After creation of BOM, When I look into CS03, base qty is updated as 1.

Does any one have come across this scenario and how did you overcomed?

Thanks in Advance

Hi,

I am creating BOM using CSAP_MAT_BOM_CREATE. But BOM header quantity(base Quantity) was updated always with value 1 irrespective of copy from BOM value.

I am getting BOM details from CSAP_MAT_BOM_READ and then passing these values to CSAP_MAT_BOM_CREATE . in the header table stko, I am passing 10 as basw qty to CSAP_MAT_BOM_CREATE. After creation of BOM, When I look into CS03, base qty is updated as 1.

Does any one have come across this scenario and how did you overcomed?

Thanks in Advance

3 REPLIES 3
Read only

sjeevan
Active Contributor
0 Likes
777

It is working for me without any problem in SE37. You need to check the structure which is passing values to I_STKO.

Read only

vijaymanikandan
Contributor
0 Likes
777

Hi

REfer to the links

[http://wiki.sdn.sap.com/wiki/display/ABAP/ToCreateaMaterialBOMalongwiththeAlternateNousingBAPI_MATERIAL_BOM_GROUP_CREATE!]

http://forums.sdn.sap.com/thread.jspa?threadID=1806030

May be you are missing something on the decimal place. Try to pass a different value like 2 or 23 and check the same.

Regards,

Vijay V

Read only

0 Likes
777

Hi,

Sorry, My problem was not solved, I tried in different ways, but not working. I am even using FM CSAP_MAT_BOM_MAINTAIN to chnage the BOM Header qty, it was working when i run FM in SE37, but when i implemented in my program it was not working. By BOM qty is always 1 irrespective of any value I pass.

But Strangely, IF I put a break point and execute , it will save correct value.

I even tried using BDC recording and made ny BDC into Func Mod. and called Func Module, but still not working. Similarly with the

Standard FM CSAP_MAT_BOM_MAINTAIN.

Any Suggestion .

Thanks in Advance