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

bapi_material_savedata: alt unit conversion

Former Member
0 Likes
3,138

dear all,

i tried to create a material using bapi_material_savedata, i gave base unit of measure as bag and po_unit as can,

now i need to do conversion of this, like 2 bag = 1 can.

where should i do this in bapi. im getting this message.

E MM                   059 Closed shipping material: allowed packaging volume must <= to tare volume

regards,

chinta

9 REPLIES 9
Read only

Former Member
0 Likes
1,912

Hi.

fill UNITSOFMEASURE table.

Regards,

--
Przemysław

Read only

0 Likes
1,912

thak you,, i did the same, but i got this error:

E MM                   059 Closed shipping material: allowed packaging volume must <= to tare volume

now i need help here.. so pls give in detail...what i have to do here.

regards

chinta

Read only

0 Likes
1,912

if you are populating the CLIENTDATA-CLOSED_BOX, Then do check the following
1) Make sure you are populating VOLUME, VOLUMEUNIT in UNITSOFMEASURE, UNITSOFMEASUREX for the BASE UNIT OF MEASURE populated in CLIENTDATA. This will be the volume for base unit of measure.

2) Make sure the CLIENTDATA-ALLWD_VOL is less than the volume populated in step 1.

Read only

0 Likes
1,912

hi gaurav,

thanks for the reply. i was unsuccessful while trying to create a material with client data-closed box 'x' but i was successful doing the same without closed box checked in..

now pls could you help me if i have more than two alt units what to do. i tried to do the same uom table by giving another unit but im getting the same message which i posted earlier.

thanks once again.

chinta

Read only

0 Likes
1,912

I would suggest you one thing.open any material in mm02 ->basic data 1. Select Additional Data Button -> Unit of Messure. Populate the values  you want using bapi and save it. Do you get any error? if yes then correct it. If not go to MARAM with that material. Makes sure you pouplate the similar data in UNITSOFMEASURE, UNITSOFMEASUREX.

It should work for sure.

P.S. : - Please do mark any helpful answer if you find so . New SCN makes life easier for any one facing such problem in future.

Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
1,912

You have posted two problems

1) Unit of measure -> to pouplate alt unit of measure you need to populate tables UNITSOFMEASURE, UNITSOFMEASUREX ( fields ALT_UNIT, ALT_UNIT_ISO, NUMERATOR, DENOMINATR) . For checking what values to post check MARM entry for any material for which alt unit of measure is poulated

2) the error message MM059 -> Are you using CLOSED_BOX in CLIENTDATA? If yest the packageing volume MARA-ERVOL should be less than MARA-VOLUM

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,912

Try this (assuming volumne as 30 L (ltr))

CLIENTDATA-ALLWD_VOL = 30
CLIENTDATA-PACK_VO_UN = 'L'

and UNITOFMEASURE internal table like this

       
ALT_UNITNUMERATORDENOMINATRVOLUMEVOLUMEUNIT
BAG30L
CAN12

and ofcourse don't forget to fill CLIENTDATAX and UNITOFMEASUREX internal table

Regards,

Pawan.

Message was edited by: Pawan Kesari

Read only

0 Likes
1,912

hi pawan,

i wd tell you what i did.

after taking gaurav's suggestion, i got a material from sap and used same data to create a new material including the uoms. but i got this error :

E M3                   647 Maintain the conversion factor for the alternative unit CCM

and then i tried your idea but still the same error, brother..

i need help here.

Read only

0 Likes
1,912

What values are passed in  UNITOFMEASURE and  UNITOFMEASUREX internal table. Could you reply with the value and repective fields?