2008 Jun 19 7:46 AM
Hi Experts,
Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
Please provide me solution for this challenging task.
you could be rated well for this question.
Thanks,
Rama Krishna.
Hi Experts,
Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
Please provide me solution for this challenging task.
you could be rated well for this question.
Thanks,
Rama Krishna.
2008 Jun 19 7:47 AM
Hi,
THis FM is used only for front end application. Check the documentation of this FM.
NO GUI func.modules will execute in background.
regards,
Subramanian
2008 Jun 19 7:49 AM
Hi Rama Krishna,
These work only in Frontend. Generally they dont work in Background
Best regards,
raam
2008 Jun 19 8:01 AM
hi,
u cannot use GUI function modules while creating background jobs.
u can try in this way.
give the filename directly in the program instead of using gui function modules and then use the function modules job_open,job_submit,job_close to schedule a background job.
reward points if hlpful.
2008 Jun 19 8:15 AM
Hi,
I can suggest u...like..if u can upload that data to application server...then u can directly download that file afterwards from application server..using CG3Y transaction.
Regards...
2008 Sep 04 1:15 PM
Hello,
work with open dataset and close dataset...
just loop over itab and transfer itab field for field into a string field separated by ;
Here is an extract of coding:
OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT itab_pos.
CLEAR satz.
MOVE itab_pos-vbeln TO satz-vbeln.
MOVE ';' TO satz-fill1.
MOVE itab_pos-kunnr TO satz-kunnr.
MOVE ';' TO satz-fill2.
MOVE itab_pos-ktgrd TO satz-ktgrd.
MOVE ';' TO satz-fill3.
MOVE itab_pos-fkdat TO satz-fkdat.
MOVE ';' TO satz-fill4.
MOVE itab_pos-budat TO satz-budat.
MOVE ';' TO satz-fill5.
MOVE itab_pos-cpudt TO satz-cpudt.
MOVE ';' TO satz-fill6.
MOVE itab_pos-fkimg TO satz-fkimg.
MOVE ';' TO satz-fill7.
MOVE itab_pos-netwr TO satz-netwr.
MOVE ';' TO satz-fill8.
MOVE itab_pos-vrkme TO satz-vrkme.
MOVE ';' TO satz-fill9.
MOVE itab_pos-ktgrm TO satz-ktgrm.
MOVE ';' TO satz-fill10.
MOVE itab_pos-matnr TO satz-matnr.
MOVE ';' TO satz-fill11.
MOVE itab_pos-mattxt TO satz-mattxt.
MOVE ';' TO satz-fill12.
MOVE itab_pos-gewei TO satz-gewei.
MOVE ';' TO satz-fill13.
MOVE itab_pos-brgew TO satz-brgew.
TRANSFER satz TO p_dath.
ENDLOOP.
CLOSE DATASET p_dath.
It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |