Skip to Content
author's profile photo Former Member
Former Member

BAPI log filled with data from previous BAPI calls

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Oct 15, 2010 at 09:16 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 09:26 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 09:35 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.