Application Development 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: 

BAPI_MATERIAL_BOM_GROUP_CREATE cannot set "Fixed Qty" = "" (Item cat.'T')

Former Member
0 Kudos
205

Hi All,

I got the problem that BAPI_MATERIAL_BOM_GROUP_CREATE cannot set "Fixed Qty" = "" when item category = "T". It always set = 'X', after finish BOM creation. Is it about the default value somewhere in this BAPI? How can I fix this?

Thank you very much

4 REPLIES 4

JeevanSagar
Active Contributor
0 Kudos
88

Yes, system automatically proposes the "Fixed qty" if the item category is [text|http://help.sap.com/saphelp_46c/helpdata/en/ea/e9b2da4c7211d189520000e829fbbd/frameset.htm] (T). It's standard feature in SAP as it doesn't make sense for a text item (as this serves only for information) to change it's quantity proportionately to the header material quantity.

0 Kudos
88

Thanks Jeevan,

In FM: CSAP_MAT_BOM_CREATE, this FM can create BOM with Fixed Qty= '', if we set FL_DEFAULT_VALUES = ''. Therefore I wonder why BAPI cannot.

The reason I choose BAPI because I cannot create the new BOM with FM if that material already have BOM. It always gives the message "BOM is already exist". Even I use FM: CS_BT_MASTB_READ to propose the new alternative BOM (2,3,4,...), it always message with alternative 1.

The current solution is using CSAP_MAT_BOM_CHANGE to change Fixed Qty after create with BAPI, but it is not the good solution. Therefore I want to know how I can set Fixed Qty blank with BAPI.

0 Kudos
88

I don't know why you want to make the fixed qty = SPACE because from the functional point of view fixed qty = 'X' makes more sense for text item. Coming to your question the reason why some function modules not able to create alternate boms is because of the IMG setting in OS27 the field Mult. BOM inactive is checked (TCS03-MULFL). It means the business doesn't want alternate boms to be created (intentionally or accidentally). But if that is not the requirement you go ahead and uncheck it, then your FMs should work. If the BAPI is able to create alternate BOMs it means it's by passing that check in OS27.

0 Kudos
88

Thanks a lot Jeevan,

My text item is like water which vary to the other ingredients. My team lead really want to make it related to physical production. I am not sure if the text item has any effect to cost of product or any accounts. If not, I think it is not too serious to check or not. (But my team lead really serious -____-")

About OS27, my config. is already unchecked, but FM: CSAP_MAT_BOM_CREATE still post the same message. T^T