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

Update to database table

Former Member
0 Likes
1,251

Hi All,

I am executing a function module through SE37 and it is getting executed successfully. After that I am calling BAPI_TRANSACTION_COMMIT. But the created value is not getting reflected in the transaction code. Why is this happening? Please help.

Regards,

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,121

Hi,

please make sure to reward points for helpful answers

Thanks

naren

7 REPLIES 7
Read only

Former Member
0 Likes
1,121

Hi Jeetu,

Can you please explain in detail as which FM you are calling and which transaction.

Regards,

Atish

Read only

Former Member
0 Likes
1,121

Hi,

Did you call the function modules in sequence..

Go to SE37..

Then in the menu..

FUNCTION MODULE -> TEST -> TEST SEQUENCES.

Give the BAPI function module in the fist line.

Then give the BAPI_TRANSACTION_COMMIT function module in the second line.

Press enter..

after executing the first bapi..then the control will come to the second function module ..then execute that also..

Thanks

Naren

Read only

0 Likes
1,121

check.

Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the COMMIT statement you use:

COMMIT WORK AND WAIT

This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.

The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.

COMMIT WORK

This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.

Read only

Former Member
0 Likes
1,121

Hi Jeetu,

Execute FM - test -test sequence and enter the two Fm's . Then the created value will get reflected in your Tcode.

Shruthi

Read only

0 Likes
1,121

Hi All,

Problem solved.

Thanks all of u for your help and suggestions.

Regards,

Jeetu

Read only

Former Member
0 Likes
1,121

Hi Jeetu,

Check whether you are passing 'X' to TEST. It means it will execute test bapi. It will not commit. Disable it and execute.

Reward if useful!

Read only

Former Member
0 Likes
1,122

Hi,

please make sure to reward points for helpful answers

Thanks

naren