10-21-2008 4:39 PM
Hi experts,
We have a scenario where several info records may have same serial number and device category. However, for a given installation we have a unique info records installed for a given serial number/device category.
When I try to upload a MR result using bapi BAPI_MTRREADDOC_UPLOAD I get an error saying
"Device xxxxx is allocated to several device cats and therefore not unique". That's strange for my point of view since other info records with that serial number are not even billing related installed in the system.
Does anyone know an alternative way of uploading a MR result for a given installation/PoD?
Thanks in advance.
10-22-2008 9:33 AM
Instead of using the device as a reference to upload the MR, can't you use the MR docnumber itself? That's always a unique identifier for one meter reading.
Unless you're trying to create new meter readings without orders in the system...
I'm pretty sure there's more than one BAPI/FM available for meter reading upload too, maybe check if others are more flexible.
Other alternative: can you use the equipment number as a reference in the BAPI? Even for identical sernr and dev cat, the equipment should be unique...
Good luck!
10-22-2008 10:12 AM
Hi, thaks for your answer.
Unfortunately we don't generate MRO in advance so we can't make use of them
This bapi doesn't have the equipment as an input parameter neither. Below are input parameters. I gues my only chance is trying to find another bapi. If any one knows any other bapi please, let me know.
Thanks again!
Input parameters:
MATERIAL
SERIALNO
REGISTER
MRREASON
MRIDNUMBER
READINGRESULT
METERREADINGNOTE
ACTUALCUSTOMERMRTYPE
METERREADER
MRDATEFORBILLING
MRTIMEFORBILLING
ACTUALMRDATE
ACTUALMRTIME
MRDATEOFMAXIMUM
MRTIMEOFMAXIMUM
SMORDER
ACTIVE
REFNUMBER
TARGETMRDATE
EXT_UI
MRDATEFORIDENTIF
10-22-2008 10:26 AM
Is your set-up of non-unique material-serial number combinations already operational? I don't think this is a best practise, since multiple processes use that combination as a unique input!
On the top of my head:
meter reading (as proven here)
device maintenance (IQ02)
device replacement/removal/installation
Haven't you run into more similar issues?
10-22-2008 2:12 PM
Hi,
I think you atleast need to pass following three parameters:
MATERIAL
SERIALNO
REGISTER
The combination of first 2 parameter identifies the Meter but I think all 3 parameter is key for meter reading as you may have multiple registers in a meter.
-ASB
10-22-2008 2:49 PM
Hi,
if you have the installation number you can use ISU_DB_INSTALL_STRUC_SELECT to retreive the device information.
Cheers,
10-22-2008 5:18 PM
Hi,
we're not using devices but info records so IQ02 is not necessary. Regarding device replacement/removal we don't have any issue since in the standard transaction de installation is provided.
With the device installation we might run into similar issue, but I still dind't check that out.
So far, that's the only issue I had to deal with.
Thanks for your answer.
10-22-2008 5:39 PM
Hi,
I tried to execute providing material, serial number, register and external PoD and the error still remains. I have the feeling this bapi is just based on the device regardless the PoD or the installation. Maybe another bapi exists but i wasn't able to find it.
If any one can think of an alternative way of uploading MR result, that may be helpful.
Thanks you all.
10-22-2008 7:07 PM
Hi, it should also work for DIR (Device info records). We use it in a UTILTS IDOC upload function module (COMPR) and it works, also don't have MR orders, we receive an IDOC and we create the MR order and upload the result using this same BAPI.
Maybe the problem is you DIR installation, you can use function module ISU_S_SMALL_DEVICE_CREATE to create a new serial number in a batch program and then install it to a single installation with ISU_S_WORKLIST_INSTALL. Like this you have a DIR per installation and then you can use the BAPI BAPI_MTRREADDOC_UPLOAD to create your MR results without any problems.
Cheers.
Edited by: Elevation on Oct 22, 2008 8:13 PM
Edited by: Elevation on Oct 23, 2008 10:05 AM
10-23-2008 12:17 PM
12-20-2012 7:41 AM
Hello Julian,
i have the same problem. Did you solve your problem?Former MemberIf it was finished, how did you solve the problem. Thanks.
Regards
Fanglin
01-03-2013 2:09 PM
01-04-2013 9:02 AM
Hello Christoph,
thx. With the help my problem is resolved.
Regards,
Fanglin