02-03-2012 5:36 PM
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
02-03-2012 6:11 PM
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
02-03-2012 6:00 PM
Hi,
once place your code what you are passing. and also go through the function module documentation , it may help you
02-03-2012 6:11 PM
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
02-03-2012 6:21 PM
Hi David,
I am passing the value for MARC-MAXLZ, still i am getiing the same error.
Regards,
Nee.
02-03-2012 6:22 PM
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
02-03-2012 6:51 PM
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
02-03-2012 7:00 PM
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.
02-07-2012 1:22 PM