SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem With BAPI_MTRREADDOC_UPLOAD

Former Member
0 Kudos

Hy Gurus,

The FM BAPI_MTRREADDOC_UPLOAD can only Upload 600 records.

But there can bee more than 5000 Records ( Metareadingresult)

Is it possible to Upload more than 600 records ??

An example would be fine

regards

Chris

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

We are currently using this BAPI for upload. This message does appear but it seems to be only a warning. the FM seems to work fine even if the records ar 600+

View solution in original post

4 REPLIES 4

Former Member
0 Kudos

Hi,

In one of the large ISU implementations we have used to get the meter reading from third party in a file, which would contain thousands of records. These records were processed in blocks by using the BAPI. I assume that you can do something similar.

Anand

Former Member
0 Kudos

Hi,

We are currently using this BAPI for upload. This message does appear but it seems to be only a warning. the FM seems to work fine even if the records ar 600+

0 Kudos

Hi,

There is a Note 410327:

Reason and Prerequisites

This error occurs if the allowed number of meter readings loaded in an IDoc is exceeded.

In mass tests, good results have been achieved with a number of 300 meter readings per IDoc. However, the number should not exceed 600 meter readings.

The error occurs because a commit of data may only occur at the end. In this case, a capacity overload of the system can occur.

A big disadvantage of large IDocs is also that in case of an error, all database changes are cancelled. On account of this, no meter reading can be imported.

Solution

Reduce the size of IDocs.

With version 4.64, an error message is written into the application log.

The meter readings are imported, and the IDOC status is set to 51.

Former Member
0 Kudos

Hello Chris!!

Best option here, is to create a wrapper program, that call this function module. The program will internally split the records in set of 600 and feed the BAPI. This way you will be able to load all the given records at one go. Hope this helps.

Regards,

Anup Mohite