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

download using pushbutton

Former Member
0 Likes
902

Hi,

I want to download the report using the pushbutton on the selection screen and not with the execute button..

can you please suggest me, how to achieve this?

Thanks in advance,

Regards,

mnraju.

2 REPLIES 2
Read only

Former Member
0 Likes
858

Hello,

Check this sample code


SELECTION-SCREEN:
  BEGIN OF BLOCK B1 WITH FRAME TITLE text-000,
    PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
  END OF BLOCK B1.
 
INITIALIZATION.
  but1 = 'DOWNLOAD'.
 
AT SELECTION-SCREEN.
  CASE SY-UCOMM.
    WHEN 'CLI1'.
"call FM GUI_DOWNLOAD or the respective FM with which you want to download
   ENDCASE.

Vikranth

Read only

Clemenss
Active Contributor
0 Likes
858

Hi Raju,

in ABAP editor you have a download button on the toolbar. F8 will not download but execute a report.

Or could your question have been misunderstood?

Regards,

Clemens