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

Insert statement in BTE

Dear All,

I have a requirement to create a record in one custom table in a BTE.

The problem here is that the record should get created only when the whole process is complete and the standard process issues a database commit.

What happens is that the BTE is called somewhere in the mid of the process and I am writing an INSERT statement in the BTE. The record gets created instantly, and this is not desirable. After the whole standard process is successful, the standard program issues a COMMIT-WORK statement.

I want that this database entry gets created only with this commit.

There is no other BTE available for this process which can be used. Please suggest ways to achieve the above.

Thanks in advance,

Archana.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 10:19 PM

    Hi,

    Create a update function module in se37..And do your updates in the function module..

    Then in BTE..call the function module IN UPDATE TASK..so that when the main program issues COMMIT WORK then only your code will be triggered

    Thanks

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 10:03 PM

    Move your code to a custom function module and call your custom FM in the BTE in background task. This should fix the problem

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 09:19 AM

    Solved this by inserting after Commit Work of the standard program !

    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.