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: 

How to upload mass readings with BAPI_MTRREADDOC_UPLOAD?

Utrivedi
Explorer
0 Kudos
932

Hello All,

I have been using BAPI_MTRREADDOC_UPLOAD to upload ISU Meter reads. So far, I had been using it for individual reads inside a loop. Since this BAPI is taking a long time, I started using it outside of LOOP. However, the return message is very generic, stating for example; "2 of 2 readings uploaded successfully.".

Is there a way we can get confirmation messages for all input reads?

Also, is there a way to improve performance of BAPI_MTRREADDOC_UPLOAD?

Thanks,

Udit

6 REPLIES 6

TammyPowlas
Active Contributor
0 Kudos
357

Hi - there is a SAP Note on this topic - please see https://launchpad.support.sap.com/#/notes/0002167033 - does it apply to your situation?

Utrivedi
Explorer
0 Kudos
357

Hello Tammy,

This might not be relevant as in my case, readings are uploaded successfully. It's just that RETURN table is not showing messages for individual readings. Instead, it just summarizes the result.

Regards,

Udit

0 Kudos
357

Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem"

harald_lesche-holzbecher
Product and Topic Expert
Product and Topic Expert
0 Kudos
357

Well I'd rate the message "2 of 2 readings uploaded successfully." as confirmation for all readings.
When the number of successfull readings is lower than the no of readings passed, I'd expext additional messages for the failed readings, see FM documentation parameter "RETURN"

Sandra_Rossi
Active Contributor
0 Kudos
357

Probably not, but it's a simple logic: the message being "A of B readings uploaded successfully", if A = B then you may easily send a message yourself for each of the readings you uploaded. If A < B then probably you'll have a detailed message for each of the readings with errors.

raymond_giuseppi
Active Contributor
0 Kudos
357

Could you check in SLG1 for a generated application log (If I am not mistaken, should be object IUMS?)

In this case, are the required missing informations available in the log (but which information do you actually require when you get number success = number of readings) you could read those with a FM such as BAL_DB_LOAD or APPL_LOG_READ_DB.