Application Development and Automation 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: 
Read only

BAPI log filled with data from previous BAPI calls

Former Member
0 Likes
755

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
Read only

GauthamV
Active Contributor
0 Likes
670

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

Read only

Former Member
0 Likes
670

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.

Read only

0 Likes
670

Hi,

let me know which BAPI are you using.

regards,

manju

Read only

Former Member
0 Likes
670

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.