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

Custom Function Module call in background job

Former Member
0 Likes
1,616

Hi All,

I have created a function module with processing type as Remote Enabled (RFC).

and import paratmeter table type I_tab_ABCD

I have called the function module in a report ZREP

CALL FUNCTION 'ZUPLOAD' IN BACKGROUND TASK

I have declared a class instance, and callled a method of that class inside the function module.

The method import the same table type parameter.

The problem is that the function module do no call the method, and the returns to the INITIALIZATION statement of the REPORT "ZREP".

Your advice and suggestions are welcome.

Regards,

Soumen Das.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
880

Hi Soumen,

The background task will only be executed after 'COMMIT WORK'.

regards,

Archer

2 REPLIES 2
Read only

Former Member
0 Likes
881

Hi Soumen,

The background task will only be executed after 'COMMIT WORK'.

regards,

Archer

Read only

Former Member
0 Likes
880

Do you have Commit work in the code after your call for the background task to start. You will not be able to debug this the normal way and the debugger will immediately jump to next command line in the ABAP code. .