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

Failed upload basic view using BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
1,200

Dear Expert,

I created a program to maintain material master using BAPI_MATERIAL_SAVEDATA .

Want to upload for Base UOM = MM and Weight unit  = KG.

Unfortunately during upload for Basic View its failed with error "Specify the conversion factors for the unit of measure KG".

But using LSMW no such kind of this error and able to maintain. As I know LSMW using BDC.

Then why using BAPI will hit this error?

Please help is there any solution since I need it urgently.

Thanks

Liyana

4 REPLIES 4
Read only

rajkumarnarasimman
Active Contributor
0 Likes
879

Hi hasan,


nur liyana abu hasan wrote:

But using LSMW no such kind of this error and able to maintain. As I know LSMW using BDC.

If issue is only coming in BAPI and not in BDC/LSMW, then may be value conversion required. Kindly check the same.

Instead of KG (example. KG->SG), is there any other value maintained in SAP, if so, kindly convert the weight unit using Conversion exit..

Regards

Rajkumar Narasimman

Read only

siva_subramanian2
Participant
0 Likes
879

Hi,

As Rajkumar said please try with conversion routine.Pass the converted value and then check.

Thanks

siva.A

Read only

JL23
Active Contributor
0 Likes
879

You have to maintain the segment for alternative units (table MARM) of measures too,  it is not auto created like in MM01 transaction or in a batch input recording. This has even been done if you use the BAPI method in LSMW

Read only

Former Member
0 Likes
879

Thanks all,

Problem solved,

The marm-alt_unit must EQ to MARA-MEINS.

Regards,

Liyana