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

gui_download Function module is not working in Background Scheduling

Former Member
0 Likes
1,069

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.

5 REPLIES 5
Read only

Former Member
0 Likes
853

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

Read only

Former Member
0 Likes
853

Hi Rama Krishna,

These work only in Frontend. Generally they dont work in Background

Best regards,

raam

Read only

GauthamV
Active Contributor
0 Likes
853

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.

Read only

Former Member
0 Likes
853

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...

Read only

Former Member
0 Likes
853

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!