Application Development 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: 

Error in BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos

Hi Experts,

i am getting error while update SAP material matster data throught BAPI_MATERIAL_SAVEDATA,

error is M3 094 "Specify the relevant time unit"

Please help.

Regards,

Nee

Edited by: neeru sangwan on Feb 3, 2012 6:36 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

i did a where used on the message, and it is raised in a function called MARC-LZEIH, which checking the time unit for the field MARC-MAXLZ, the maximum storage period. Are you passing the maximum storage period in your data? if so, it appears you need to pass the unit for that period, be it hours, days, etc.

This is just from a cursory check.

also, use the code tags when you post your code! otherwise it is unreadable.

lastly, if it is not as i said above, do a debug session, and breakpoint at statement MESSAGE. The program will stop (eventually) on the M3093 message and you can see from the code what it is checking for.

Edited by: David Knittle on Feb 3, 2012 1:12 PM

7 REPLIES 7

Former Member
0 Kudos

Hi,

once place your code what you are passing. and also go through the function module documentation , it may help you

Former Member
0 Kudos

i did a where used on the message, and it is raised in a function called MARC-LZEIH, which checking the time unit for the field MARC-MAXLZ, the maximum storage period. Are you passing the maximum storage period in your data? if so, it appears you need to pass the unit for that period, be it hours, days, etc.

This is just from a cursory check.

also, use the code tags when you post your code! otherwise it is unreadable.

lastly, if it is not as i said above, do a debug session, and breakpoint at statement MESSAGE. The program will stop (eventually) on the M3093 message and you can see from the code what it is checking for.

Edited by: David Knittle on Feb 3, 2012 1:12 PM

0 Kudos

Hi David,

I am passing the value for MARC-MAXLZ, still i am getiing the same error.

Regards,

Nee.

0 Kudos

yes, i am sorry, you missed my point. i ramble sometimes. the thing is, if you are passing MAXLZ, you must also pass LZEIH are you passing both?

Edited by: David Knittle on Feb 3, 2012 1:23 PM

0 Kudos

Previoulsy i was not passing LZEIH, now i am passing the value for this field,

LZEIH = 'D'. OR LZEIH = 'HR'.

but now i am getting error is M3 095 ****** is not a time unit.

Regards,

Nee

0 Kudos

check tcode CUNI. most times, the value you THINK is th eunit of measure is just the language specific value used in transactions like MM02.

start CUNI, look at time related units. DAY is probably TAG... in our system it is. In our system, HR is actually STD.

0 Kudos

Hi David,

Thanks for your help problem sloved.

Regards,

Nee