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: 

BAPI_MTRREADDOC_UPLOAD - AKTIV not updated correctly

Former Member
0 Kudos

Hi,

We are uploading meter reads through the BAPI 'BAPI_MTRREADDOC_UPLOAD'.

We are passing the meter reads in 'meterreadingresults', as we want to insert the new reads.

The reads are getting created correctly.

But,

  We are setting the active flag (AKTIV) along with the other fields before calling the BAPI, as follows

          .....

          wa_meter_reading-active = 0

          (wa_meter_reading is a structure of type bapieablu)

          .....

          APPEND wa_meter_reading to i_meter_reading.

   The internal table 'i_meter_reading' is the one we are passing to the BAPI.

   

    For some reason, the EABL-AKTIV is always set to 1.

Can anyone let us know why this is happening:

1. Is it because BAPIEABLU-ACTIVE is not linked to EABL-AKTIV?

    If so what is the field to be used/?

2. Is is because some exit is changing the active status?

    What are the possible exits called when the aforementioned BAPI is called?

3. Is there any other reason why this is happening.

Your inputs will be much appreciated.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Solution:

This was done using the exit 'EXIT_SAPLEL01_015'.

We are now setting the flag, as required in this exit.

Thanks.

View solution in original post

2 REPLIES 2

Former Member
0 Kudos

EABL-AKTIV is a character field, did you pass '0' into it or just 0. just checking.

Former Member
0 Kudos

Solution:

This was done using the exit 'EXIT_SAPLEL01_015'.

We are now setting the flag, as required in this exit.

Thanks.