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

Problem in Call function .. starting new task

Former Member
0 Likes
1,592

Hi,

I want to execute a dialog program in background. I am trying to use call function starting new task.

I am facing some syntax issue. Can any one guide me how to use call function starting new task. The function module is RFC FM. Do we need to define task some where before use please guide.

Thanks in advance. A sample program will be gr8.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
870
4 REPLIES 4
Read only

Former Member
0 Likes
870

Hi,

Incase you want to call a RFC FM in background you can call ity like this.

call function 'Y_L_TO_CREATE_HUPAST' in background task

exporting

venum = y_v_venum

backg = 'X'

buser = y_lv_uname

langu = sy-langu

objky = y_lv_objky

printer = y_lv_printer.

Here Y_L_TO_CREATE_HUPAST is a RFC FM.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
871
Read only

Former Member
0 Likes
870

hai sujith ,

u can call the rfc using in new task

call 'FM' starting new task 'taskname'

performing task_handler

on end of task

exporting

parmater1 = xxxx

paramter2 = yyyy.

and u have to write a form statement where u have to recieve reuslts form FM

use statment

recieve results form funciotn FM

results paramters.

regards

afzal

Read only

0 Likes
870

Hai Afjal my problem is now new syntax issues i solved but my problem is that i created a program to open a link using cl_gui.... and closed it once the link was opened. This link is used to throw some data on the site. I want to schedule this program in background. i am working on 4.6 b.

Now here the problem arrised cl_gui_... objects doesnot work in background .

Now i used rfc method . I used an rfc function module to submit the program . Background jobs completes successfully but the data is not send on website. I used rfc function module starting new task to work in foreground but i think it is not working.