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

Error using BAPI BAPI_MATERIAL_SAVEDATA maintaining Unit of Measure

gildo_demoraesqueiroz
Participant
0 Likes
4,589

Hello,

I am trying to insert an alternative unit of measure in the master material through BAPI BAPI_MATERIAL_SAVEDATA, however it is giving this error: "Specify the conversion factors for the unit of measure" .

What tables I need to populate?

1 ACCEPTED SOLUTION
Read only

GK817
Active Contributor
0 Likes
3,971

Hi,

I hope you are passing tables UNITSOFMEASURE and UNITSOFMEASUREX. Make sure to pass both ALT_UNIT and ALT_UNIT_ISO field values.

Gaurav

Hello,

I am trying to insert an alternative unit of measure in the master material through BAPI BAPI_MATERIAL_SAVEDATA, however it is giving this error: "Specify the conversion factors for the unit of measure" .

What tables I need to populate?

4 REPLIES 4
Read only

GK817
Active Contributor
0 Likes
3,972

Hi,

I hope you are passing tables UNITSOFMEASURE and UNITSOFMEASUREX. Make sure to pass both ALT_UNIT and ALT_UNIT_ISO field values.

Gaurav

Read only

0 Likes
3,971

Hello Gaurav.

Thanks for answer.

Its ok now.

Read only

VeselinaPeykova
Active Contributor
0 Likes
3,971

Read the documentation from transaction BAPI, especially about UNITSOFMEASURE and UNITSOFMEASUREX, including the parameter fields.

If you are not sure how to fill some of the information for alternative UoM - find an existing material with similar data maintained and use FM BAPI_MATERIAL_GETALL.

Do not forget that when you maintain alternative UoM you have to specify also the conversion factors, e.g. 1 PAL = 24 CS. In this case you have 24 NUMERATOR and 1 DENOMINATR.

Read only

0 Likes
3,971

Hello Vaselina.

Thanks for answer.

Its ok now.