‎2007 Jun 21 5:43 AM
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
‎2007 Jun 21 5:50 AM
Hi,
please make sure to reward points for helpful answers
Thanks
naren
‎2007 Jun 21 5:45 AM
Hi Jeetu,
Can you please explain in detail as which FM you are calling and which transaction.
Regards,
Atish
‎2007 Jun 21 5:46 AM
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
‎2007 Jun 21 5:48 AM
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.
‎2007 Jun 21 5:48 AM
Hi Jeetu,
Execute FM - test -test sequence and enter the two Fm's . Then the created value will get reflected in your Tcode.
Shruthi
‎2007 Jun 21 5:50 AM
Hi All,
Problem solved.
Thanks all of u for your help and suggestions.
Regards,
Jeetu
‎2007 Jun 21 5:50 AM
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!
‎2007 Jun 21 5:50 AM
Hi,
please make sure to reward points for helpful answers
Thanks
naren