2008 Aug 27 8:02 AM
Dear Frndz,
I am use funtion GUI_DOWNLOAD.
I called this function in a subroutine. I have to pass various internal tables to this form ..
How to do it.
Say
case mark.
when 1.
peform download using it1.
when 2.
perform download using it1.
endcase.
form download.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
regards.
siva
2008 Aug 27 8:27 AM
Hi ,
You can use using or tables .
case mark.
when 1.
peform download using it1.
or
perform download tables it1
when 2.
perform download using it1.
or
perform download tables it2
endcase.
form download tables int_tab type table
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
Dear Frndz,
I am use funtion GUI_DOWNLOAD.
I called this function in a subroutine. I have to pass various internal tables to this form ..
How to do it.
Say
case mark.
when 1.
peform download using it1.
when 2.
perform download using it1.
endcase.
form download.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
regards.
siva
2008 Aug 27 8:06 AM
hi siva
if you call like this peform download using it1.
then you define like
form download using it1..
endform.
Regards
Deva
2008 Aug 27 8:08 AM
2008 Aug 27 8:12 AM
hi,
Just do like below.
data : it1 like it_orginal,
it2 like it_orginal.
case mark.
when 1.
peform download using it1.
when 2.
perform download using it2.
endcase.
form download using it_final like it_orginal.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = it_final
endform.
Regards,
Anversha
Regards,
Anversha
2008 Aug 27 8:22 AM
Hi Siva,
Use the option tables instead of using
case mark.
when 1.
perform download tables it1. "tables
when 2.
perform download tables it2. "tables
endcase.
*tables type any
form download tables it type any.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
Hope this solves it.
Thanks,
Hitesh
2008 Aug 27 8:27 AM
Hi ,
You can use using or tables .
case mark.
when 1.
peform download using it1.
or
perform download tables it1
when 2.
perform download using it1.
or
perform download tables it2
endcase.
form download tables int_tab type table
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
2008 Aug 27 8:31 AM
hi siva,
U can use this,
case mark.
when 1.
peform download using it1.
when 2.
perform download using it2.
endcase.
form download using p_table type any table.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = <dyn_table>
endform.
U ll get the desired result
Success.............
2008 Aug 27 8:33 AM
Hi ,,,
Do it in this way...
case mark.
when 1.
peform download TABLES it1. ...........> Instead if using
when 2.
perform download TABLES it2..............> Instead if using
endcase.
form download TABLES p_itab STRUCTURE wa_data.
call funtion 'GUI_DOWNLOAD'
TABLES
DATA_TAB = p_itab
endform.
*Here structure of internal table it1 , it2 and work area WA_DATA must be same..
2008 Aug 27 8:34 AM
Hi,
CASE mark.
WHEN 1.
PERFORM output_file TABLES itab1 USING p_file1.
WHEN 2.
PERFORM output_file TABLES itab2 USING p_file2.
ENDCASE.
*&---------------------------------------------------------------------*
*& Form output_file *
*&---------------------------------------------------------------------*
FORM output_file TABLES p_itab USING p_p_file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_p_file
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = p_itab
EXCEPTIONS
OTHERS = 1.
ENDFORM. " output_fileRegards
Adil
2008 Aug 27 8:59 AM
Danq All.
As the problem was solved am closing the thread.
Regards,
siva
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |