cancel
Showing results for 
Search instead for 
Did you mean: 

Jco Call a Function Module in BackGround

Former Member
0 Kudos

Hello All.

Some one can send me a simple exemplo how to call a ABAP Function Module in BackGround.

Can i set this in Java side?

..or only set the BackGround Work Process in SAP side?

In my java application call the Abap Function Module like this:

client.execute(function);

How to set parameters to execute the function in BackGround.

My rpoblem is when the return the data to java side ...occurs the error TIME_OUT in Dialog WorkProcess.

I need to call in background to better performance and to prevent the TIME_OUT.

Best regards.

Taylor.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi.

I don’t know how to do, but, you can do a previous RFC, this new RFC execute the original function in background mode. I did something like that:

- JAVA: client.execute("RFC_FUNCTION", input, output);

- SAP: RFC_FUNCTION:

....

CALL FUNCTION func IN BACKGROUND TASK 
                     [DESTINATION dest] 
                     parameter_list 
                     [AS SEPARATE UNIT]. 

....

or

...

CALL FUNCTION update_function IN UPDATE TASK 
                             [EXPORTING p1 = a1 p2 = a2 ...] 
                             [TABLES t1 = itab1 t2 = itab2 ...]. 

....

I hope that help you

Former Member
0 Kudos

Hi Juda.

Then ....can i implement this in ABAP side with destination RFC !

Ok ...thanks for your help.

Some points are attributed...

Regards.

Taylor.

Answers (0)