cancel
Showing results for 
Search instead for 
Did you mean: 

Using CSAI_BOM_MAINTAIN to create BOM,it is giving error in case negative value IN Quantity.

sourabh_sharma6
Explorer
0 Kudos

Using CSAI_BOM_MAINTAIN to create BOM,it is giving error in case negative values in STPO-MENGE(Line Item Quantity).However if we pass negative value in standard transaction(CS01/CS02) if is showing error but creating BOM.

JL23
Active Contributor
0 Kudos

and now we shall guess what the error message is?

sourabh_sharma6
Explorer
0 Kudos

It is showing error as Component Quantity is Negative as informative message but the BOM is not created.However in CS01/CS02 we get the same error message but BOM gets created.

Accepted Solutions (0)

Answers (1)

Answers (1)

JL23
Active Contributor
0 Kudos

in CS01 you can probably click enter to accept the message and to continue, in a background program you can't do the same.

Did you already try to change the message settings to warning or hide, this setting is in IMG > Production > Basic Data > BOM > General data > change message...

Have you somewhere in your CSAI_BOM_MAINTAIN a KZKUP field? If the quantity is negative then it means you get it out of production which is usually a by-product and KZKUP should have an entry.

sourabh_sharma6
Explorer
0 Kudos

Thanks a lot for your input.Just to add on this,I have debugged the function module if we pass KZKUP it is an indicator for co-product not for by-product.Issue resolved(BOM created with negative quantity) when we passed correct component UOM,previously we were passing a wrong UOM different from what is maintained in Material Master.However investigation continues on why this FM is throwing incorrect error.