| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
BSP application to download the table contents into excel sheetBy Rajani Dasharadhi, YASH Technologies Scenario:
Download the table contents into excel sheet with the button click can be
achieved by using class CL_BSP_UTILITY àdownload. Step1:
Go to SE80 transaction select BSP application and provide the name of
application.
Step2:
Give the short description of application and assign package to application.
Step3:
Right-click on application and create a page.
Step4:
Provide the name and description of page.
Step5:
CODE Layout
code: <%@page language="abap" %> OnCreate
Code: select carrid connid fldate planetype from sflight into table t_flight OnInPutProcessing
Code: * event handler for checking and processing user input and Page
Attributes: fl_flag TYPE I
fs_flight1 TYPE TYPE_S_FLIGHT
t_flight TYPE FS_FLIGHT
w_carrid TYPE SFLIGHT-CARRID
w_input TYPE STRING
Types
Definition: types: OUTPUT: Step6:
Layout is as follows with the flight details and user has option to download the
table details with the button click.
Click on
download button, Pop up appears asking to open or to save a file.
Popup
appears for location of file and name of file.
Excel
sheet is stored as flight details as follows:
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||