Icon_checked unable to download as sign in excel sheet of alv
Hi all,
I have used icon_checked of TYPE-POOLS: icon to dispaly as YES sign in an alv report.
But issue is that when report is downloaded in excel the icon_checked does not generate any text.
How can i generate text for that icon_checked symbol.
Below is my code :
READ TABLE t_konv INTO wa_konv WITH KEY knumv = wa_ekko-knumv
kposn = wa_ekpo-ebelp.
IF sy-subrc EQ 0.
IF wa_konv-kbetr NE 0.
wa_tab-kbetr = wa_konv-kbetr.
wa_tab-tax_ind = icon_checked .
ELSE.
wa_tab-tax_indicator = ' '.
ENDIF.
AND
wa_fieldcatalog-fieldname = 'TAX'.
wa_fieldcatalog-seltext_l = 'Indicator'.
wa_fieldcatalog-icon = 'X'.
APPEND wa_fieldcatalog TO t_fieldcatalog.
CLEAR wa_fieldcatalog.
Kindly help.
>
ujjwal_d15 wrote:
> Hi, Yes that's possible is there some way that we will shown icon and in excel we get some value for it ?
No its not possible to download icons/graphics to excel.
Regards,
Karthik D
Similar Messages
-
Downloading records in in excel sheet from ALV.
Hi,
I am downloading Records from ALV GRID DIsplay to Excel sheet but i am unable to get all records that are displayed in ALV report.
I am getting only 73 records if i have only 180
Any inputs please for correctine the error
Regards
Rasheed.hi
you can follow these stapes and get ur work done
go to List > select Export > Spreadsheet or just click the excel icon from the tool bar.This would download the data to excel.
hope this helps
regards
Aakash Banga -
Downloading table data into Excel sheet - Webdynpro Java
Hi All,
We have developed a custom webdynpro application that executes an RFC and displays data in Table UI element. We have provided a button to download the data in excel sheet. When data is huge like, total number of rows filled up in the table are around 11,000 & columns are 32, and when user tries to download whole 11000 rows in excel sheet, the timeout occurs after 20 mins due to huge data. But when I apply filtering on the same table data and then try to download some 700 rows out of 11000 into excel, it took me around 3.36 mins.
If anyone encountered such scenario in past, please guide in this regard to speed-up the download to excel functionality or suggest any other alternative.
We are using 7.3 Portal and tableUtilities java class for export to excel functionality.
Thanks,
Amol.hi monica ,
sorry im not able to understand properly ,
The server don't restarts automatically when we uploading a huge data, onlly we open the file instead of save the file.
If we save the file the problem is that when we try to open this, the process can take hours and sometimes excel is blocked
you mean that after saving the file to your desktop , having huge data you are not able to open the file i.e the excel file. your file gets blocked or consumes more time to open the file ,
or else when you are prompted for saving or opening , on click of opening you are facing the problem ?
let me be clear with your part , here your application deals with uploading the data from webdynpro table to excel sheet and allowing the end user to save or open the file right .
Regards
Govardan Raj S -
I want to download a report into Excel sheet with color Heading..Is it Poss
Hi All
I want to download error records into Excel sheet with color Heading..Is it Possible to download into excel with Color Heading?
here i am <b>using the 3 sheets in one</b>
t_error-bkpf -> Sheet1
t_error-bseg-> sheet 2
t-error-bsec -> sheet3.
Rgds
Raghav<b>The following thread has the code which will put data into multiple sheets</b>
Download to multiple sheets in Excel
FOR COLOR LOGIC JUST REFER THIS PROGRAM
*& Report ZNEGI17 *
REPORT ZNEGI17 NO STANDARD PAGE HEADING.
* this report demonstrates how to send some ABAP data to an
* EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
* handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
* table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
* read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
* display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
* display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
* start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
* PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
* CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
* PERFORM ERR_HDL.
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
* get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
* add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
* tell user what is going on
* CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
* EXPORTING
** PERCENTAGE = 0
* TEXT = TEXT-009
* EXCEPTIONS
* OTHERS = 1.
* output column headings to active Excel sheet
PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
* copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
* changes by Kishore - start
* CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
* add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
* tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
* CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
* EXPORTING
** PERCENTAGE = 0
* TEXT = TEXT-009
* EXCEPTIONS
* OTHERS = 1.
* output column headings to active Excel sheet
PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
* copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
* changes by Kishore - end
* disconnect from Excel
* CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
* FORM FILL_CELL *
* sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL1 USING I J BOLD VAL.
data : color(5) type x value 'H80000008'.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'ColorIndex' = 3 .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
* outputs OLE error if any *
* --> p1 text
* <-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
*& Form FILL_CELL1
* text
* -->P_H text
* -->P_1 text
* -->P_0 text
* -->P_IT_SPFLI_CARRID text
form FILL_CELL using I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
endform. " FILL_CELL1
kishan negi -
Error while downloading Report as an Excel Sheet
Hi All,
I have a issue regarding enabling download of report as a excel sheet. Here is the summary of the issue I am facing.
I have enabled report links in the Dashboard and saved the Dashboard. The download link is visible and when I click on the link
it gives the option of excel and pop up window starts showing that the download has started. But midway it says the application URL is unavailable.
My query is are there any server settings which we need to enable or add to allow the download of reports are excel sheets.
The download to excel works fine in Firefox.
The problem is with MIME type which is .mhtml in IE browser.
Our Instance is SSO wired.
If we remove the SSO, download to excel works fine in both IE and Firefox.
Any inputs on this?
Regards
(S.Prashant)
Edited by: user783550 on Sep 15, 2009 11:11 PMthis issue is related to the web server hosting sso. i had posted the same question on this forum, hope it will help you as well - Download to excel issue
-
Downloading PO's into excel sheet?
Hello All!
I am trying to download the po's into excel sheet through a programm. In this regard i would like to know the procedure for that.
Presently my plan is to collect all the fields into two internal tables (one for header and another for item data).Now how to append the two internal table into a single itab. I want to use this itab in gui_download funtion module!
Am i doing right. If i am going wrong plz guide me.
Mail me to [email protected]
Regards,
LNhi,
no need to download the header and data seperately.
dowload the data only.
kindly chek the below code.
here 'v_start_row' is '2', so it avoid the header. if u wants the header make it as '1'.
v_end_col means the numbers of columns u have
DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
DATA : v_start_col TYPE i VALUE '1',
v_start_row TYPE i VALUE '2', "only from data row
v_end_col TYPE i VALUE '6', "no of columns.
v_end_row TYPE i VALUE '1000'.
PERFORM f_upload.
*& Form f_upload
text
--> p1 text
<-- p2 text
FORM f_upload .
CLEAR : int_excel, int_excel[].
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = wf_filename
i_begin_col = v_start_col
i_begin_row = v_start_row
i_end_col = v_end_col
i_end_row = v_end_row
TABLES
intern = int_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
*Message is 'Unable to upload data from ' wf_filename.
MESSAGE e169(zm050) WITH wf_filename.
ELSE.
SORT int_excel BY row col.
REFRESH : record.
CLEAR : record.
LOOP AT int_excel.
CASE int_excel-col.
WHEN 1.
record-wf_mf_zone_code_003 = int_excel-value.
WHEN 2.
record-wf_mf_country_code_004 = int_excel-value.
WHEN 3.
record-wf_country_code_001 = int_excel-value.
WHEN 4.
record-wf_zone_desc_002 = int_excel-value.
WHEN 5.
record-wf_loekz = int_excel-value.
ENDCASE.
AT END OF row.
APPEND record.
CLEAR record.
ENDAT.
ENDLOOP.
ENDIF.
ENDFORM. " f_upload
hope this helps u.
if so pls reward points
regards,
anversha
[email protected] -
Download to excel sheet from ALV Grid report
Hi,
I need to download 3 lakhs of data to excel sheet but the constraint is that excel is having max limit of 65000 line items.
So i need to know the way in which i can create more than one sheet in excel while downloading so that each sheet can hold upto 65000 line items.
i need to create atleast 6 sheets in excel while downloading from report.
please help.Hi,
While downloading the data, it will prompt you save the list in file - Uncoverted, Spreadsheet, Rich text format, HTML format, Copy to Clipboard.
Why don't you try using Uncoverted format and give extension as .txt file.
So that you can download all 3 lacs of records.
Even if you use any FM, it will indirectly use excel for downloading and it will have restriction of having 65000 records only.
Thanks,
Sriram Ponna. -
How to download internal table to excel sheet
I have a requirement to download nearly 8 to 10 internal tables to excel sheets(for each internal table one excel sheet) without displaying the diolog box showing open and save buttons.
scenario :
I will enter the path name like this - C:\myfolder\Custom_programs.xls.
C:\myfolder\Custom_tables.xls.
(File name does not exit..it has to created inside the
specified folder)
in submit button I populate 2 internal tables say it1 and it2. then I need to move the tables contents to the path I have specified above.
attach_file_to_response method is not working for the above reqt since it is showing the dialog box.
Please provide a suitable solution...Please ignore all the responders that are stating that you can use GUI_DOWNLOAD from Web Dynpro ABAP. As you found out, this absolutely will not work, since this function module and other download logic like it depends upon a connection to the SAPGUI. People posting to use the GUI_DOWNLOAD from WDA need to learn a little more about the architecture of WDA before they go posting incorrect repsonses in the forum. I have little tollerance for people posting outright incorrect information in the WDA Forum.
What you want to do - download silent - is not easily done from WDA. There are rules about how web applications must behave in a browser. Normal HTML/JavaScript does not allow silent downloads for security reasons. Obviously there are many untrustworthy websites on the internet that you wouldn't want to allow to directly access your local machine. WDA must live within these same browser limitations.
SAP has done some work using a Java Applet to get around some of these security issues. This funcitonality comes in NetWeaver 7.01. It is the AcfUpDownload UI element:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/frameset.htm
However it is designer for usage with the Content or KPro server - so even it might not meet your needs. -
Download internal table to Excel sheet
Hi,
I am trying a sampole program to download an internal table to excel and am
uisng the Fm GUI_DOWNLOAD for the same. But how do I ensure that each column
of internal will be aligned as columns in the excel sheet to. I a trying to do
that with a separator but I am not able to figure out.
Below is my code.
REPORT z_excel_download.
DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE.
DATA : BEGIN OF it_file OCCURS 0,
data(2000),
END OF it_file.
SELECT * FROM mara INTO TABLE it_mara UP TO 100 ROWS.
LOOP AT it_mara.
CONCATENATE it_mara-matnr
it_mara-ersda
it_mara-ernam
it_mara-pstat
it_mara-mtart
it_mara-mbrsh INTO it_file-data SEPARATED BY '/t'.
APPEND it_file.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'C:\Documents and Settings\XXXXXX\Desktop\test.xls'
TABLES
data_tab = it_file
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks.Hi Varun,
On SDN are plenty of post where you can find the answer to your problem.
Please try the following code that I found here several years ago to resolve your problem.
Regards,
Eric
REPORT Excel.
TABLES:
sflight.
* header data................................
DATA :
header1 LIKE gxxlt_p-text VALUE 'Suresh',
header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
* Internal table for holding the SFLIGHT data
DATA BEGIN OF t_sflight OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA END OF t_sflight.
* Internal table for holding the horizontal key.
DATA BEGIN OF t_hkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_h.
DATA END OF t_hkey .
* Internal table for holding the vertical key.
DATA BEGIN OF t_vkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_v.
DATA END OF t_vkey .
* Internal table for holding the online text....
DATA BEGIN OF t_online OCCURS 0.
INCLUDE STRUCTURE gxxlt_o.
DATA END OF t_online.
* Internal table to hold print text.............
DATA BEGIN OF t_print OCCURS 0.
INCLUDE STRUCTURE gxxlt_p.
DATA END OF t_print.
* Internal table to hold SEMA data..............
DATA BEGIN OF t_sema OCCURS 0.
INCLUDE STRUCTURE gxxlt_s.
DATA END OF t_sema.
* Retreiving data from sflight.
SELECT * FROM sflight
INTO TABLE t_sflight.
* Text which will be displayed online is declared here....
t_online-line_no = '1'.
t_online-info_name = 'Created by'.
t_online-info_value = 'SURESH KUMAR PARVATHANENI'.
APPEND t_online.
* Text which will be printed out..........................
t_print-hf = 'H'.
t_print-lcr = 'L'.
t_print-line_no = '1'.
t_print-text = 'This is the header'.
APPEND t_print.
t_print-hf = 'F'.
t_print-lcr = 'C'.
t_print-line_no = '1'.
t_print-text = 'This is the footer'.
APPEND t_print.
* Defining the vertical key columns.......
t_vkey-col_no = '1'.
t_vkey-col_name = 'MANDT'.
APPEND t_vkey.
t_vkey-col_no = '2'.
t_vkey-col_name = 'CARRID'.
APPEND t_vkey.
t_vkey-col_no = '3'.
t_vkey-col_name = 'CONNID'.
APPEND t_vkey.
t_vkey-col_no = '4'.
t_vkey-col_name = 'FLDATE'.
APPEND t_vkey.
* Header text for the data columns................
t_hkey-row_no = '1'.
t_hkey-col_no = 1.
t_hkey-col_name = 'PRICE'.
APPEND t_hkey.
t_hkey-col_no = 2.
t_hkey-col_name = 'CURRENCY'.
APPEND t_hkey.
t_hkey-col_no = 3.
t_hkey-col_name = 'PLANETYPE'.
APPEND t_hkey.
t_hkey-col_no = 4.
t_hkey-col_name = 'SEATSMAX'.
APPEND t_hkey.
t_hkey-col_no = 5.
t_hkey-col_name = 'SEATSOCC'.
APPEND t_hkey.
t_hkey-col_no = 6.
t_hkey-col_name = 'PAYMENTSUM'.
APPEND t_hkey.
* populating the SEMA data..........................
t_sema-col_no = 1.
t_sema-col_typ = 'STR'.
t_sema-col_ops = 'DFT'.
APPEND t_sema.
t_sema-col_no = 2.
APPEND t_sema.
t_sema-col_no = 3.
APPEND t_sema.
t_sema-col_no = 4.
APPEND t_sema.
t_sema-col_no = 5.
APPEND t_sema.
t_sema-col_no = 6.
APPEND t_sema.
t_sema-col_no = 7.
APPEND t_sema.
t_sema-col_no = 8.
APPEND t_sema.
t_sema-col_no = 9.
APPEND t_sema.
t_sema-col_no = 10.
t_sema-col_typ = 'NUM'.
t_sema-col_ops = 'ADD'.
APPEND t_sema.
CALL FUNCTION 'XXL_FULL_API'
EXPORTING
* DATA_ENDING_AT = 54
* DATA_STARTING_AT = 5
filename = 'TESTFILE'
header_1 = header1
header_2 = header2
no_dialog = 'X'
no_start = ' '
n_att_cols = 6
n_hrz_keys = 1
n_vrt_keys = 4
sema_type = 'X'
* SO_TITLE = ' '
TABLES
data = t_sflight
hkey = t_hkey
online_text = t_online
print_text = t_print
sema = t_sema
vkey = t_vkey
EXCEPTIONS
cancelled_by_user = 1
data_too_big = 2
dim_mismatch_data = 3
dim_mismatch_sema = 4
dim_mismatch_vkey = 5
error_in_hkey = 6
error_in_sema = 7
file_open_error = 8
file_write_error = 9
inv_data_range = 10
inv_winsys = 11
inv_xxl = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Downloading to Excel Sheet from ALV display
Hi Friends,
Here i am displaying data in ALV grid. i want to download data to excel file . My data is stored in a field symbol.Could you please tell me how to download this? Currently i am trying with
CALL FUNCTION 'OLE_SERVER_CHECK'
CALL FUNCTION 'XXL_SIMPLE_API'
But i am not getting the result.
Thanks.Download a report to excel with format (border, color cell, etc)
Try this program...
Code:
REPORT ZTEST NO STANDARD PAGE HEADING.
this report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - start
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - end
disconnect from Excel
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:\SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Regards,
Pavan -
Downloading the data into excel sheet , how can i maintain page numbers
I need some information. In output screen pagenumber is displayed.
when i am downloading the data from se38 into excel sheet.
How can i write the code to display the page number in excel sheet . waiting for your responseHi
Please see below code for ur requirement.
DATA: BEGIN OF li_field OCCURS 0,
field(16) TYPE c,
END OF li_field.
CLEAR li_field[].
REFRESH li_field.
li_field-field = text-t01.
APPEND li_field.
CLEAR li_field.
li_field-field = text-006.
APPEND li_field.
CLEAR li_field.
li_field-field = text-t04.
APPEND li_field.
CLEAR li_field.
li_field-field = text-t05.
APPEND li_field.
CLEAR li_field.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = file_path
TABLES
data_tab = data_table
fieldnames = li_field
EXCEPTIONS
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_pivot_fields = 6
download_problem = 7
OTHERS = 8.
please reward points if helpful -
Downloading a file to excel sheet
To all forum people
While I download an internal table into an excel-sheet I would like to place a field name in the excel-sheet corresponding to each field in my internal table so how could this be done are there any function modules pertaining to this issue or is there any other method to do this.....
muraliHi
The following is a sample code download to EXCEL file
REPORT Sample
NO STANDARD PAGE HEADING
LINE-SIZE 180
LINE-
COUNT 90 0001-
LINE-COUNT 65 "0001+
MESSAGE-ID z1.
TABLES: MARC.
DATA : BEGIN OF i_marc OCCURS 0,
matnr LIKE marc-matnr, "Material
werks LIKE marc-werks, "Plant
mmsta LIKE marc-mmsta, "MM/PP Status
ekgrp LIKE marc-ekgrp, "Purchasing Group
dispo LIKE marc-dispo, "MRP Controller
plifz LIKE marc-plifz, "PDT (Planned Dlv Time)
webaz LIKE marc-webaz, "GRT (Goods Receipt Time)
fevor LIKE marc-fevor, "Production Scheduler
insmk LIKE marc-insmk, "Post to Inspection Stock
ladgr LIKE marc-ladgr, "Loading Group
kautb LIKE marc-kautb, "Automatic PO Allowed
kordb LIKE marc-kordb, "Source List
prctr LIKE marc-prctr, "Profit Center
lgpro LIKE marc-lgpro, "Issue Storage Location
abcin LIKE marc-abcin, "Cycle Count Phys Inventory Ind
sernp LIKE marc-sernp, "Serial Number Profile
lgfsb LIKE marc-lgfsb, "Stor Loc for External Procure
END OF i_marc.
STRUCTURES DECLARATION
DATA: BEGIN OF wf_msg.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF wf_msg.
DATA : BEGIN OF rec_marc,
matnr(18),
z_delim1(1),
werks(4),
z_delim2(1),
mmsta(2),
z_delim3(1),
ekgrp(3),
z_delim4(1),
dispo(3),
z_delim5(1),
plifz(3),
z_delim6(1),
webaz(3),
z_delim7(1),
fevor(3),
z_delim8(1),
insmk(1),
z_delim9(1),
ladgr(4),
z_delim10(1),
kautb(1),
z_delim11(1),
kordb(1),
z_delim12(1),
prctr(10),
z_delim13(1),
lgpro(4),
z_delim14(1),
abcin(1),
z_delim15(1),
sernp(4),
z_delim16(1),
lgfsb(4),
z_delim17(1),
END OF rec_marc.
VARIABLES DECLARATION
DATA: w_lines like sy-tabix,
w_records like sy-tabix.
****DELIMETERS DECLARATION
DATA: p_del type c value ',', "delimeter
p_del1 type c value ';'. "delimeter
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:
s_matnr FOR marc-matnr,
s_werks FOR marc-werks,
s_mmsta FOR marc-mmsta,
s_ekgrp FOR marc-ekgrp,
s_dispo FOR marc-dispo,
s_plifz FOR marc-plifz,
s_webaz FOR marc-webaz,
s_fevor FOR marc-fevor,
s_insmk FOR marc-insmk,
s_ladgr FOR marc-ladgr,
s_kautb FOR marc-kautb,
s_kordb FOR marc-kordb,
s_prctr FOR marc-prctr,
s_lgpro FOR marc-lgpro,
s_abcin FOR marc-abcin,
s_sernp FOR marc-sernp,
s_lgfsb FOR marc-lgfsb.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION SCREEN FOR DOWN LOAD OPTION
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS:
r_list radiobutton group a1,
p_del default ',', "delimeter
DATA: p_filePC TYPE rlgrap-filename value 'C:\zmarc.xls',
typ TYPE rlgrap-filetype value 'DAT',
fname TYPE rlgrap-filename,
ftype TYPE rlgrap-filetype,
fsize TYPE i.
SELECTION-SCREEN END OF BLOCK blk2.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_data.
END-OF-SELECTION
END-OF-SELECTION.
if r_list = 'X'.
PERFORM output_list.
elseif r_dldPC = 'X'.
PERFORM download_file_PC.
endif.
*& Form get_data
Get data from table MARC
FORM get_data.
CLEAR: i_marc. REFRESH: i_marc.
SELECT matnr
werks
mmsta
ekgrp
dispo
plifz
webaz
fevor
insmk
ladgr
kautb
kordb
prctr
lgpro
abcin
sernp
lgfsb
INTO TABLE i_marc
FROM marc
WHERE matnr IN s_matnr
AND werks IN s_werks
AND mmsta IN s_mmsta
AND ekgrp IN s_ekgrp
AND dispo IN s_dispo
AND plifz IN s_plifz
AND webaz IN s_webaz
AND fevor IN s_fevor
AND insmk IN s_insmk
AND ladgr IN s_ladgr
AND kautb IN s_kautb
AND kordb IN s_kordb
AND prctr IN s_prctr
AND lgpro IN s_lgpro
AND abcin IN s_abcin
AND sernp IN s_sernp
AND lgfsb IN s_lgfsb.
ENDFORM. " get_data
*& Form output_list
Output List with Column Headings
FORM output_list.
CLEAR: w_lines.
DESCRIBE TABLE i_marc LINES w_lines.
if w_lines gt 0.
ULINE.
WRITE:/28 'MM/PP',
38 'MRP',
48 'Prod',
58 'Purch',
68 'Profit',
80 'Planned',
92 'GR',
100 'Post to',
114 'Auto',
122 'Source',
132 'Issue',
140 'CC Phys',
150 'Loading',
160 'Serial No',
172 'SLoc'.
WRITE:/1 'Material',
20 'Plant',
28 'Status',
38 'Ctrlr',
48 'Sched',
58 'Grp',
68 'Ctr',
80 'Dlv. Time',
92 'Time',
100 'Insp. Stock',
114 'PO',
122 'List',
132 'SLoc',
140 'Indicator',
150 'Group',
160 'Profile',
172 'for EP'.
ULINE.
LOOP AT i_marc.
WRITE:/ i_marc-matnr,
20 i_marc-werks.
set left scroll-boundary." Added to keep the left 2 columns fixed
while viewing the list online
WRITE:28 i_marc-mmsta,
38 i_marc-dispo,
48 i_marc-fevor,
58 i_marc-ekgrp,
68 i_marc-prctr,
80 i_marc-plifz,
92 i_marc-webaz,
100 i_marc-insmk,
114 i_marc-kautb,
122 i_marc-kordb,
132 i_marc-lgpro,
140 i_marc-abcin,
150 i_marc-ladgr,
160 i_marc-sernp,
172 i_marc-lgfsb.
ENDLOOP.
ULINE.
endif.
ENDFORM. " output_list
*& Form download_file_PC
Download file to Local directory on PC
FORM download_file_PC.
CLEAR: w_lines, w_records.
DESCRIBE TABLE i_marc LINES w_lines.
if w_lines gt 0.
Download file
PERFORM open_file using p_filePC.
PERFORM output_file_PC.
PERFORM close_file using p_filePC.
PERFORM write_summary.
endif.
ENDFORM. " download_file_PC
*& Form write_summary
FORM write_summary.
write : / '******************************************************'.
write : / '**** PROGRAM IS ENDED SUCCESSFULLY **'.0001-
write : / '**** PROGRAM HAS ENDED SUCCESSFULLY *****'."0001+
write : / '******************************************************'.
skip.
write : / 'No. of recds written :', 38 w_records.
skip.
if r_dldUx = 'X'.
write : / 'Output file name : ' , p_fileUX.
elseif r_dldPC = 'X'.
write : / 'Output file name : ' , p_filePC.
endif.
skip.
write : / '******************************************************'.
ENDFORM. " write_summary
*& Form open_file
text
-->P_P_FILEUX text
FORM open_file USING output_file.
OPEN DATASET output_file FOR OUTPUT IN TEXT MODE.
if sy-subrc <> 0.
Send technical message
CLEAR wf_msg.
wf_msg-msgid = 'ZB'.
wf_msg-msgnr = '003'.
wf_msg-msgtyp = 'E'.
wf_msg-msgv1 = output_file.
CALL FUNCTION 'Z_ERROR'
EXPORTING
msg = wf_msg
pid = sy-cprog
EXCEPTIONS
others = 1.
endif.
ENDFORM. " open_file
*& Form close_file
Close File
FORM close_file USING output_file.
close dataset output_file.
if sy-subrc <> 0.
Send technical message
clear wf_msg.
wf_msg-msgid = 'Z3'.
wf_msg-msgnr = '003'.
wf_msg-msgtyp = 'E'.
wf_msg-msgv1 = output_file.
call function 'Z_ERROR'
EXPORTING
msg = wf_msg
pid = sy-cprog
EXCEPTIONS
others = 1.
endif.
ENDFORM. " close_file
*& Form output_file_PC
Write Data to Local PC File
FORM output_file_PC.
DATA: BEGIN OF i_PCFile OCCURS 0,
rec(2000) TYPE C,
END OF i_PCFile.
data: dload_record(1000).
DATA: flength TYPE i.
Transfer Header Line
clear: dload_record.
concatenate 'Material' 'Plant' 'MM/PP Status' 'Purch Grp.' 'MRP Ctrl.'
'Planned Dlv. Time' 'GR Time' 'Prod Sched'
'Post to Insp. Stock''Loading Group''Auto PO'
'Source List''Profit Ctr.' 'Issue SLoc''CC Phys Indicator'
'Serial No Profile' 'SLoc for EP'
into dload_record
separated by p_del.
condense dload_record no-gaps.
i_PCFile-rec = dload_record.
append i_PCFile.
clear i_PCFile.
Transfer Data
loop at i_marc.
w_records = w_records + 1.
clear: rec_marc, dload_record.
move-corresponding i_marc to rec_marc.
move p_del to: rec_marc-z_delim1, rec_marc-z_delim2,
rec_marc-z_delim3, rec_marc-z_delim4,
rec_marc-z_delim5, rec_marc-z_delim6,
rec_marc-z_delim7, rec_marc-z_delim8,
rec_marc-z_delim9, rec_marc-z_delim10,
rec_marc-z_delim11,rec_marc-z_delim12,
rec_marc-z_delim13,rec_marc-z_delim14,
rec_marc-z_delim15,rec_marc-z_delim16,
rec_marc-z_delim17.
move rec_marc to dload_record.
condense dload_record no-gaps.
i_PCFile-rec = dload_record.
append i_PCFile.
clear i_PCFile.
endloop.
IF p_filePC NE SPACE.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
filename = p_filePC
filetype = typ
IMPORTING
act_filename = fname
act_filetype = ftype
filesize = fsize
TABLES
data_tab = i_PCFile
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2.
IF SY-SUBRC NE 0.
WRITE 'File can not be opened'.
ENDIF.
Begin 0001+
Set PC Filename to whatever is returned from the Function Module, to
display later
p_filePC = fname.
End 0001+
ELSE.
WRITE:/ 'Please Enter File Name'.
ENDIF.
ENDFORM. " output_file_PC
if it helps please reward points
Regards
Prabhakar -
Download the data into excel sheet
hello experts,
I am using the GUI_DOWNLOAD fm to download the data in to excell sheet on to the desktop but here i am getting some problem
For some of the fields i put constant values like '004' or '001' when it is downloaded the data into to .xls its removing the leading zeros.. and just downloading the values as 4 or 1
can anyone guide me how to hold those leading zeros
its bit urgent plzThese are XL Issue ,you can use diffrenet logic
Check the below logic :
REPORT ZTEST3 line-size 400.
<b>DATA : V_CHAR(1) TYPE C VALUE ''''.</b>
data : v_field(12) type c.
data : begin of itab occurs 0,
fld1(12) type c,
end of itab.
start-of-selection.
v_field = '0000012345'.
CONCATENATE V_CHAR V_FIELD INTO V_FIELD.
itab-fld1 = v_field.
append itab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME =
'C:\Documents and Settings\smaramreddy\Desktop\fff.xls'
FILETYPE = 'ASC'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I have used one field here ,i am not sure for many fields in internal table.
Thanks
Seshu -
Download search result in Excel sheet
hello Experts ,
I am working on UCM 11g.
We have a search template which helps us to search on UCM. I have to extract our search result in MS excel sheet. Could you please suggest the easiest way for it?
Thanks,
MaheshHello,
I have been trying to create the following component from BEX's book, which creates an extra value on a drop down to export search resullts to a CSV file:
<@dynamichtml custom_searchapi_result_options@>
<$include super.custom_searchapi_result_options$>
<option value="window.location='<$HttpCgiPath$>?<$QUERY_STRING
$>&IsJava=1&MergeInclude=spreadsheet_search_results'">
Download Spreadsheet</option>
<@end@>
<@dynamichtml spreadsheet_search_results@>
Title,Author,Date,Security Group,Content ID,Content Type
<$loop SearchResults$><$dDocTitle$>,<$dDocAuthor$>,<$dInDate
$>,<$dSecurityGroup$>,<$dDocName$>,<$dDocType$>
<$endloop$>
<$setContentType("text/csv")$>
<$setHttpHeader("Content-Disposition",
"attachment;filename=search_results.csv")$>
<@end@>
As this drop down is now different in UCM 10gR3 this no longer appears to work (I get an error when adding these as a resource file) I presume I need change this include "$include super.custom_searchapi_result_options". How do I find out which include to use? I am quite new to creating custom components.
Thanks for your help, -
Unable to display double values in Excel sheet using JExcel API
Hi
I am writing code to generate report in the form of Excel Sheet using JExcel API.
Everything is going fine but whenever I want to put some double values in a cell it is only showing 2 decimal places. My problem is "I want to show upto five decimal places".
Any kind of reply might help me lot.
Thank U.If you enable the submit zero option, it still happens? This is a new feature on the display tabl
#NumericZero Enhancements
To display a numeric zero in place of an error message, you can enter #NumericZero in any of the three Replacement text fields. When you use the #NumericZero option:
· Excel formatting for the cell is retained.
· All calculations with dependency on the cell will compute correctly and will take the value of this cell as zero.
· This numeric zero is for display only. When you submit, the zero value is NOT submitted back to the data source.
You cannot set display strings for cells that contain an invalid member or dimension name (metadata error). Metadata errors produce standard descriptive error messages.
Errors are prioritized in the following order from highest to lowest. The error message for a higher-priority error takes precedence over that for a lower-priority error.
1. (Highest) Metadata errors
2. #No access
3. #Invalid/Meaningless
4. #No data\Missing
Maybe you are looking for
-
My IMessage is not displaying the messengers name
My I message is only displaying the senders number not the name even though it is stored in my contact list why is this?
-
Why is text header removed on compilation?
Hi, I have a text header on my functions/procedures/packages, with standard stuff like name, developer, version history etc. When I open the file in SQL developer and compile my object, the text section at the top is removed? Anyone know why this is
-
How do I remove "Untitled Account" Calendar after iCloud update ?
Hi, I have noticed that after I upgraded my MobileMe account to iCloud, that my calendar on the iPhone is full of duplicate entries. This seems to be down to a copy of my Old MobileMe calendar, and now its called "Untitled Account" I have read sugge
-
Fixed & Variable cost of the Material at CK11N
Hello Experts, Before posting this thread, i have gone through several threads about my query. Still I have a doubt. Material Cost always should be Variable. Cost Component Structure OKTZ also the Inventory Valuation would be Variable Cost as per a
-
Creating Contact Form in Dreamweaver
I'm using dreamweaver 8 and am trying to create a simple Contact Us form for my homepage. How do I do this? Just need a form that users fill in with Name, Address, email, etc. Need to be able to capture this data. Help.