Application Development 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: 

Commit with call function starting new task

Former Member
0 Kudos

Hello!

I have this case:

Program are calling a function for transfer data from R/3 to SRM this way:

LOOP AT itab.

COMMIT WORK AND WAIT.

CALL FUNCTION 'Z_TRANSF_DATA' STARTING NEW TASK 'Z_TRANS_DATA'....

WAIT UP TO 10 SECONDS.

CLEAR itab.

ENDLOOP.

Question: need i COMMIT WORK with CALL FUNCTION STARTING NEW TASK ?? This function execute somes database changes. Or commit isn´t necessary??

Tank´s a lot!

1 REPLY 1

Former Member
0 Kudos

Hi,

The starting new task addition performs an asynchronous call of the function module, an explicit commit work is not required for this.

The commit work command ends the logical unit of work and opens a new one. This will commit any database updates and start any function calls in the update or background tasks.

Regards,

Darren