‎2009 May 22 7:22 AM
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.
‎2009 May 22 7:52 AM
‎2009 May 22 7:49 AM
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
‎2009 May 22 7:52 AM
‎2009 May 22 8:01 AM
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
‎2009 May 22 9:52 AM
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.