I have a problem uploading MR result without meter reading orders with 'BAPI_MTRREADDOC_UPLOAD' with MR reason '01' - periodic meter reading.
The same procedure can be done without problem through EL28 (Execute single entry) with input values:
MR type: 29
Scheduled MRD: last day of previous month
MR reason: 01
BAPI is filled only with table METERREADINGRESULTS:
SERIALNO = xxxxxxxx
REGISTER = xxx
MRREASON = 01
READINGRESULT = xxxxxxx
ACTUALCUSTOMERMRTYPE = 29
MRDATEFORBILLING = date
BAPI returns only one record with info message EL 393: '0 of 1 reading uploaded successfully'.
No other error message is returned to get hint what is wrong.
BAPI made successfully upload if field MRREASON is empty or '09'.
If MRREASON is empty, value '09' is also filled automatically.
Indicator UPLOAD_FLAG in table TE609 is set to 'X' for reason 01.
I've seen a lot of notes concerning issues with BAPI_MTRREADDOC_UPLOAD, but could not find the right solution.
if I first execute single entry in EL28 (with MR reason 01), then BAPI can successfully upload MR result for the same day.
Any hints, what could be wrong, would be greatly appreciated.
Thank you in advance.