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

Commit a BAPI

Former Member
0 Likes
809

Hi experts,

I am testing a BAPI in SE37 and it did not save my changes because the database has not been committed. Is there a way to do a Commit work with out writing a test program?

Please help, thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
739

Hello,

Yes you can do it by running the two function modules in sequence as follows:

Step 1:Run SE37 and go to Function Module --> Test --> Test Sequence.

Step 2: You will find a pop up to place your function module names in sequence.

Step 3: Insert first the BAPI which you wnat to execute then BAPI_TRANSACTION_COMMIT.

Step 4: Execute the BAPI first once successful just press the Back button and the next fm i.e BAPI_TRANSACTION_COMMIT will trigger,you have to execute this also to commit in the database.

Cheers,

Somnath

5 REPLIES 5
Read only

Former Member
0 Likes
739

Hi,

I dont think its possible if you are executing the BAPI directly in se37 and not writing a program to commit it. Executing in SE37 is only used for testing purpose and it wont make or allow any changes in the database tables.

Regards,

Vik

Read only

former_member404244
Active Contributor
0 Likes
739

HI,

After you execute the bapi then call the function module 'BAPI_TRANSACTION_COMMIT'.i t will work.

Regards,

Nagaraj

Read only

0 Likes
739

I tried but it did not work.

Read only

0 Likes
739

Problem is solved. Thanks!

Edited by: Abaper_09 on Jul 31, 2009 4:45 PM

Read only

Former Member
0 Likes
740

Hello,

Yes you can do it by running the two function modules in sequence as follows:

Step 1:Run SE37 and go to Function Module --> Test --> Test Sequence.

Step 2: You will find a pop up to place your function module names in sequence.

Step 3: Insert first the BAPI which you wnat to execute then BAPI_TRANSACTION_COMMIT.

Step 4: Execute the BAPI first once successful just press the Back button and the next fm i.e BAPI_TRANSACTION_COMMIT will trigger,you have to execute this also to commit in the database.

Cheers,

Somnath