Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI log filled with data from previous BAPI calls

Former Member
0 Kudos

Hello,

I'm getting information messages in a BAPI that sets the Statuses on WBS elements that are related to a previous BAPI that I called in the same program for adding material components. How is this possible if I used the right mechanism for calling the BAPIs (BAPI_PS_INITIALIZATION, BAPI_PS_PRECOMMIT, BAPI_TRANSACTION_COMMIT) ?

The function METHOD_LOG_INIT inside my status BAPI raises NOT_AUTHORIZED but the BAPI continues, the statuses are set, no error, but the log is comming from a global table that was not cleared because the METHOD_LOG_INIT didnt work.

What can I do?

Thanks in advance.

4 REPLIES 4

GauthamV
Active Contributor
0 Kudos

Clear the work area and refresh the internal tables that you are using to capture the log of that bapi.

Former Member
0 Kudos

Of course I'm cleaning them before each bapi call, but the log comes from the BAPI's object memory, it's not cleared in there somehow.

0 Kudos

Hi,

let me know which BAPI are you using.

regards,

manju

Former Member
0 Kudos

Hello,

i'm using many BAPIs,

First BAPI_PROJECT_MAINTAIN, BAPI_NETWORK_MAINTAIN, BAPI_BUS2002_CREATE, then BAPI_NETWORK_GETDETAIL, BAPI_NETWORK_COMP_ADD, and then finally BAPI_BUS2056_GET_STATUS and BAPI_BUS2056_SET_STATUS.