2010 May 12 10:41 AM
Hello everyone,
I'm using the BAPI_PO_CREATE1 to create a purchase order, but it's giving me the following error:
"Order unit MGW cannot be used", i'm using a material with the unit MGW defined in MM02.
Any ideas?
Thanks,
Fábio Galvã
2010 May 12 10:54 AM
I think you need to use the Conversion Routine :- CONVERSION_EXIT_CUNIT_INPUT for internal representation of order unit( MEINS). U have to pass MGW and u will get the internal representation of it, and that can be passed to ur BAPI.
2010 May 12 10:51 AM
Hi,
Are you getting the same error while trying to create PO through tcode ME21N?
Regards
Vinod
2010 May 12 10:54 AM
I think you need to use the Conversion Routine :- CONVERSION_EXIT_CUNIT_INPUT for internal representation of order unit( MEINS). U have to pass MGW and u will get the internal representation of it, and that can be passed to ur BAPI.
2010 May 12 11:01 AM
Hi,
Check in trasaction: CUNI, whether 'Commertial meas.unit' has been checked for MGW or not. If not check and try.
--
Reddy
2010 May 12 12:06 PM
Hi everyone,
Thanks for the replies.
Passing my unit through CONVERSION_EXIT_CUNIT_INPUT it gives me the same MGW.
I went to CUNIT and it has the check in 'Commertial meas.unit'.
I tried going to the transaction ME21N and it gave me this error "Please check units of measure and conversion factor"
Any Ideas were I can solve this?
Thanks,
Fábio Galvã
2010 May 12 12:26 PM
Hi,
Check the purchase info record data of this material/UoM in EINA & EINE Tables. Also check the conversion factors in MARM Table
Regards
Vinod
Edited by: Vinod Kumar on May 12, 2010 5:02 PM
2010 May 13 11:51 AM
In trasaction KUNI itself, there is one block for 'Conversion', values are maintained there?
--
Reddy
2010 May 13 1:08 PM
Thanks for all the replies,
I've given points to all the helpfull replies.
I've managed to create the PO with the unit I wanted, MGW, butt it only placed the unit in 'Order Price Unit (Purchasing)' and placed UN on 'Purchase Order Unit of Measure'. My requirement is to create a PO with MGW on both fields.
Is there any other field I need to fill so that the BAPI creates a PO like I need?
Thank you,
Fábio Galvã
2010 May 14 4:17 PM
2010 May 21 2:09 PM
To pass this problem, after the call of BAPI_PO_CREATE1 I called BAPI_PO_CHANGE passing the other unit, making both units equal.
Thank you.