Exporting JSF/JSP to Excel
Hi,
I have a JSP(JSF) containing only 1 table with data coming from a database. I use:
<jsp:directive.page contentType="application/vnd.ms-excel">
to enable the users export these data to Excel. This is working fine on Win2K using Office 2K, but it gives some errors on WinXP using Office XP.
Anybody saw that before? Any ideas for an workaround?
Thanks
Valeriu
I believe this is a creator studio problem because it was working fine in office 2002 and 2003. Now it displays an error saying something like "link tag does not match body tag". Therefore it appears that there is something happening in the jsp.
Similar Messages
-
How to export a table in excel (in JSP)???
hi all,
I am using AJAX functionality in jsp to export a table into Excel.But i don't want to use it as it gives a hyperlink whereas i want a button which should work similar to hypelink.
I mean to say i want a saperate export button which should work similar to the hyperlink.
if anybody has any idea abt it....plz reply it soon.......So what you want to do is redirect to a page when the user clicks the button?
So just put the button in a form with the action attribute set to wherever the hyperlink points now.
And in case the button is already a part of a form, then on the onClick() event of the button, change the action attribute of the form to this particular hyperlink target and then cause it to submit.
That ok?
Or do you want the Excel file you're generating to be sent to the browser causing it to popup a dialog asking the user to save or open? If so take a look here http://forum.java.sun.com/thread.jspa?threadID=5170452&messageID=9655276 -
Export JSP to Excel : Weird problem (Urgent)
Hi,
Sorry for the length of question.
I am facing a bit weired problem while exporting my JSP report to Excel.
I have multiple tables in my JSP page .( Use of Multiple tables is a requirement .).
I am using Struts and Oracle 9i JDeveloper for developement.
I have a button called "Excel" and on its click , I am opening the same JSP page in a pop up and passing reqd. parameters to it using querystring
( sometimes I am keeping the parameters into session as the length is loo large to fit into queryString. )
I am using
response.setContentType("application/vnd.ms-excel");
to transform my JSP page to Excel.
Sometimes, this works fine.
But, mant times this gives error such ( in Windows2000 Adv. Server ) as
"Memory could not be "read"."..with the tile of error-popup as "Excel.exe".
(In Windows NT , it never exports to Excel. Every time it gives "Dr. Watson Debugger" message box.)
In Windows2000 Adv. Server ,
While debugging, I observed that when I click on Excel button, the pop up opens and executes the page and again goes to the start of the page and executes again and thus tries to open the same Excel document.
As we know, we cannot open same Excel document twice. Hence it gives a popup alert that
" The file <filename with its entire path> could not be opened.
There may be several reasons :
You might be trying to open a file which does not exist.
You might be trying to open the file which is already open. ..."
etc.etc. and something like this.
Now, this is totally unpredictable. If I click Excel button, It may open the file in excel and on next try it would give error.
This is quite annoying. I searched on this forum, Google but could not find the solution yet.
I cannot use POI - HSSF . I cannot use userdefined Excel tags as well. as it will require a lot of reqork and unfortunately I don't have that much time now.
Please help me and let me know how would I be able to successfully and predictably export my JSP pages to Excel.
Thanks,
Swipsy.Hi,
Why don�t you save as attachment? (use -> <% response.setHeader("Content-Disposition", "attachment; filename=\"name.xls\""); %> scriplet )...
I�m doing the same work, but I have problems to export images to Excel by this method...
Someone could help me??
thanks a lot -
Problem on exporting images from jsp to excel
i had exported content of jsp to excel, but the problem is i couldn't able to export images present in jsp to excel.
the images are present in
webapplication / images directory.
guys if you know any way please let me know
code which i used for exporting was
<%
response.setContentType("application/vnd.ms-excel; charset=UTF-8");
response.setHeader("content-disposition","attachment; filename=test.xls");
%>Message was edited by:
mohaideenkhajaIf Somebody have the solution the please let me know......................
Thx -
Exporting data from JSP to EXCEL
Hi All,
I am getting data in form of table in my jsp page. I need to know how to export the data in excel sheet with a click of button.
Please help me.
ThanksThanks for your help
I put the code in my jsp page. it shows a dialog box which ask the location for the excel sheet to save. However the excel it blank. It does not retrive any values from the database or jsp page
Here is an overview of the page which i`m generating the report
1) creating a connection object, and loading the Mysql driver
2) getting the values from the database using select command
3) Displaying the values in form of table
4) in the bottom creating a button called "Export"
5) this export will go to another page called "export.jsp"
6) here i write the code
<%@ page contentType="application/vnd.ms-excel" %>Plz help -
Export data from JSP to Excel on click on button
Hi,
I want to display the table data in my Jsp to Excel on click of "Export to Excel" icon, The data in my jsp table is dynamic, only click of "export to Excel" icon i want the contents of the table needs to be exported to Excel. Can pls anyone help me in doing this..
Thanks & Regards
Sowmya.JOn click of the button, you will have to reuse the same java code which you used to populate the table in the JSP except that you will have to create an excel file with the data you got using suitable excel api's (look for POI api). Write the stream to the response and the browser will take care of opening a dialog to save/open the file.
-
Need help in writing data from JSP to excel
Hi ,
I need help in writing the data from JSP to excel.I somehow able to retrieve the data into excel but unable to get the required format.
For eg: The amount should be displayed in 0.00 format .when i am exporting it to excel it is displaying as 0 :( .
I am using the following code in JSP.
"out.print(amt + '\t');"
Would like to know if there is any otherway where in i can get my requirement.
Thanks
TomHi,
Try using format part of the JSTL tag libs.
Syntax :
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:formatNumber value="40" pattern="$#,##0.00"/>
I need help in writing the data from JSP to excel.I
somehow able to retrieve the data into excelHow do u convert the jsp to excel?
One way to convert the jsp page to excel, is to render it as an excel appl instead of html. Set the content type of the response to application/ms-excel.
response.setContentType("application/ms-excel")Hope this Helps.... -
Exporting .rep Files to Excel via openDocument?
Hi,
as the documentation states, only .rpt can be directly exported to excel via openDocument's sOutputFormat.
Others created with Desktop Intelligence (.rep) can "only" be exported to PDF and HTML via sOutputFormat.
However, in the WebIntelligence Toolbar there is the possibility to Export those .rep Files after generation.
The URL for the export looks like /saveAsPDForXLS.jsp (or something like that), and as far as i remember a sEntry GET var is passed with the query.
This sEntry var - i suppose so - is an unique id for the freshly generated document?
Anyway, my question is, isnt there a way to use openDocument to export .rep Files to excel?
thanks!
attilaHi Ted,
exactly, but as i mentioned when the request is finished and e.g. the pdf document embedded in a frame shows up, there is the chance to export it via the toolbar to csv/excel.
When selecting that option, a redirection to /saveAsXLSorPDF.jsp (or so) is fullfilled.
I'm not sure what exactly happens between that redirect, maybe you can help me on that point.
The sEntry parameter being passed to saveAsXLSorPDF.jsp, where from (or how) is it generated?
Does the sEntry param depend on the openDocument URL request, Is there some special algoritm for generating that sEntry?
To make it clear, what im thinking about is:
I can make an openDocument URL Request
sleep(20min)
Make another request to saveAsXLSorPDF.jsp with the sEntry which i could generate by myself, if i knew what algorithm is underneath!
Thanks in Advance
attila -
How to export table data to excel in albpm
Hi,
we have an requirement to export table data to excel .
we have to create an jsp in that jsp we have to have text fileds,we have to enter data to field after that we have to click on save once u click on save that data has to enter in below table and we should provide link to export that table data to excel.
this is our totatl requirement.can u please suggest me how to do,i dont have any idea..
Regards,
Sharmila
Edited by: user12171025 on Nov 5, 2009 8:44 PMHi Daniel
Please have a look at below docs :-
/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
http://wiki.sdn.sap.com/wiki/display/WDJava/ExporttoExcel(WithoutthirdpartyAPIs)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d01854fd-1579-2c10-63ad-dd62edca2381?quicklink=index&overridelayout=true
Regards
Arun Jaiswal -
How to export the data to excel in OAF Page - Urgent
Hi All,
I have a developed a page wich dispaly the records based on some condition.
The Page has two regions.
1.RowLayout Region
2.Table Region
Both the regions are getting the data from two diffrent VOs.
In this case how to export the data to excel as the export button will not work if the page uses more than one VO(I think).
Please help me.
Thanks,
Srinivas
Edited by: SrinivasChanda on Oct 7, 2009 10:07 AMHi Gaurav,
Yes you are rite.When i tried exporting the data(which is coming from two different VOs altogether),i got only one region's data and then got error.
Please note: Two regions(RowLayout,Table) are getting data from two different VOs
below is one of the region(row layout) data:
Hierarchy Learning Certification Status Learning Certification Supervisor
Direct Reports Passed Only All Michael Swinnerton
below is the error:
<div CLASS="errorText">
<html lang="en-US">
<head>
<script>
function ignoreWarnAboutChanges(url)
document.location.href = url;
</script>
<title>Error Page</title>
<link rel="stylesheet" charset="UTF-8" type="text/css" href="/OA_HTML/cabo/styles/blaf.css">
<META name="fwk-error" content="Error occured while processing the request">
<META name="fwk-error-detail" content="oracle.apps.fnd.framework.OAException: Application: FND Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.io.IOException: Stream closed;
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)"
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)"
" at OAErrorPage.jspService(OAErrorPage.jsp:34)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)"
" at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:547)"
" at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:518)"
" at OAExport.jspService(OAExport.jsp:122)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
## Detail 0 ##
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
">
</head>
<body>
<table width=100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
<tr> <td><img src="/OA_MEDIA/FNDSSCORP.gif" alt=""> </td></tr>
<tr> <td> </td>
<td> <a href= /OA_HTML/OALogout.jsp>Logout </a></td>
</tr>
<tr> <td width="100%" nowrap class="OraBGColorDark" > </td> </tr>
</table>
<p>
<center>
<table width="95%" border="0" cellspacing="0" class="OraBGAccentDark" cellpadding="0">
<tr> <td> </td> </tr>
<!-- <tr> <td class="OraErrorHeader"> <img src=/OA_HTML/cabo/images/errorl.gif> Error Page </td> </tr> -->
<tr> <td class="OraErrorHeader"> <center> Error Page </center> </td> </tr>
<tr> <td colspan=2 class="OraBGColorDark"> </td> </tr>
<tr> <td> </td> </tr>
<tr> <td colspan=2 class="OraErrorText" >You have encountered an unexpected error. Please
contact the System Administrator for assistance. </td> </tr>
<tr> <td colspan=2 class="OraErrorText"> Click <a href=javascript:ignoreWarnAboutChanges("/OA_HTML/OAErrorDetailPage.jsp")> here </a> for exception details.
</td> </tr>
</table>
</center>
</div>
</body>
</html>
Please help me to solve this issue.
Thanks,
Srinivas -
Reg: Exporting the data into excel in ADF 11g application.
Hi All,
We have developed an application in ADF 11g which retrieves the data from database in the form of table. Now we have a requirement to export that data into an excel sheet.
Can anyone please help us regarding this.
Thanks,
HarshaHi Harsha,
you can use <af:exportCollectionActionListener /> component to do that. Set the exportedId property to point to of the table. You have options to export all rows or only selected rows.
<af:commandToolbarButton text="Export All Rows to Excel" immediate="true"
id="exportAll">
<af:exportCollectionActionListener type="excelHTML" exportedId="table"
filename="export.xls"
title="ADF Faces Export - All" exportedRows="all"/>
</af:commandToolbarButton>
<af:commandToolbarButton text="Export Selected Rows to Excel" immediate="true"
id="exportSelected">
<af:exportCollectionActionListener type="excelHTML" exportedId="table"
filename="export.xls"
title="ADF Faces Export - Selected Rows"
exportedRows="selected"/>
</af:commandToolbarButton>Good Luck,
Luc Bors -
During export from Discover to Excel, Time Format changes to Number Format
Hi
I have a seconds column which is of number datatype. But in my report, I am converting the number in *0HH:MI:SS* format. For example, I have *4952534 seconds*. So my report is showing *1375:42:14* which is a Time Format. It looks good when I view the data in Discoverer Viewer or Plus. But when I try to export the data to Excel, the time format gets converted to *4952534 seconds*, which is creating problems. So can you suggest on how can I preserve the formatting during export to excel from discoverer.
Thanks
SachinHi,
Excel will not implement the 0HH:MI:SS data format, it just gets the field as a number. You will have to format the field into text using the calculation from my previous post.
Rod West -
Export from ALV to Excel - problem with numeric values
hi folks,
when exporting from alv to excel and we have negative values (and using an u.s.a. setting where . and , are different to r/3) negetive values are not shown correctly in excel.
when changing in win nt the regional settings to europe one's (e.g. germany) everything works fine.
any hints welcome,
kind regards
oliverI guess this has something to do with the excel settings. In the control panel you have regional settings.try some options there. It might work.
Regards
Sudhi -
Hyperion Web Analysis Studio - Excel Export Data PATH TO EXCEL
I have a problem with Hyperion Web Analysis Studio by Export Data (Path to Excel) function on every client (windows Vista - IE 7 - Office 2007)
The problem is when I try to use the Export data to Excel, the Path to the excel program is missing and I have to go manually over the directory and choose the excel.exe to export the report, when I restart the IE I have to do it again...
Hyperion support suggested I try adding the Excel path to my webanalysis.properties file
So I now have:
ExcelPath=C:\\Progra~1\\Micros~2\\OFFICE12\\EXCEL.EXE;C:\\Progra~1\\Micros~2\\OFFICE12
EXCEL.EXE
WordPath=C:\\Progra~1\\Micros~2\\OFFICE12\\WINWORD.EXE;C:\\Progra~1\\Micros~2\\OFFICE12
WINWORD.EXE
PPTPath=C:\\Progra~1\\Micros~2\\OFFICE12\\POWERPNT.EXE;C:\\Progra~1\\Micros~2\\OFFICE12
POWERPNT.EXE
MaxDataCellLimit=200000
XLExportMaxRows=60000
XLExportMaxColumns=200
ResolveDimSetAliases=false
ExportDataFullPrecision=true
To me this does not seem the way to go
This did not correct my problem.
Any ideas?
thanks
ErichHello,
Even we have the same issue.And changed the path in webanalysis.properties file.And it worked in entire report but in drillthru reports, export to excel 2010 didn't work and prompting to select the path to excel.Does anyone has solution for this?? -
Export the Report in Excel format
Hi,
How to export the Report in Excel format directly from the SAP to my Desktop.
Plz. give me the process???
Thanksuse this,
INCLUDE OLE2INCL.
INCLUDE EXCEL__C.
AND
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
H TYPE I.
AND
PERFORM SUB_GET_DATA.
'get data here
PERFORM SUB_POP_DATA.
'populate data here
AND
PERFORM SUB_DISP_EXCEL.
*& Form SUB_DISP_EXCEL
FORM SUB_DISP_EXCEL.
START EXCEL
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
SET PROPERTY OF H_EXCEL 'Visible' = 1. " for printing o/p line by line in excel sheet
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 10 'Mat Doc Number'(001) 'R'.
PERFORM FILL_CELL USING 1 2 1 4 'Item'(002) 'R'.
PERFORM FILL_CELL USING 1 3 1 10 'Mat Doc Date'(003) 'R'.
PERFORM FILL_CELL USING 1 4 1 10 'Vendor'(004) 'R'.
PERFORM FILL_CELL USING 1 5 1 20 'Mat Doc Item amount'(005) 'R'.
PERFORM FILL_CELL USING 1 6 1 15 'Material price'(006) 'R'.
PERFORM FILL_CELL USING 1 7 1 4 'Currency'(007) 'R'.
PERFORM FILL_CELL USING 1 8 1 18 'Material'(008) 'R'.
PERFORM FILL_CELL USING 1 9 1 30 'Material Desc'(009) 'R'.
PERFORM FILL_CELL USING 1 10 1 19 'Qty in Unit of Entry'(010) 'R'.
PERFORM FILL_CELL USING 1 11 1 19 'Qty Received'(011) 'R'.
PERFORM FILL_CELL USING 1 12 1 4 'Unit of Entry'(012) 'R'.
PERFORM FILL_CELL USING 1 13 1 20 'Mat Group'(013) 'R'.
PERFORM FILL_CELL USING 1 14 1 16 'Vendor Invoice'(016) 'C'.
LOOP AT T_OUT INTO W_OUT.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 10 W_OUT-MBLNR 'R'.
PERFORM FILL_CELL USING H 2 0 4 W_OUT-ZEILE 'R'.
PERFORM FILL_CELL USING H 3 0 10 W_OUT-BLDAT 'R'.
PERFORM FILL_CELL USING H 4 0 10 W_OUT-LIFNR 'R'.
PERFORM FILL_CELL USING H 5 0 20 W_OUT-DMBTR 'R'.
PERFORM FILL_CELL USING H 6 0 15 W_OUT-NETPR 'R'.
PERFORM FILL_CELL USING H 7 0 4 W_OUT-WAERS1 'R'.
PERFORM FILL_CELL USING H 8 0 18 W_OUT-MATNR 'R'.
PERFORM FILL_CELL USING H 9 0 30 W_OUT-MAKTX 'R'.
PERFORM FILL_CELL USING H 10 0 19 W_OUT-ERFMG 'R'.
PERFORM FILL_CELL USING H 11 0 19 W_OUT-WEMNG 'R'.
PERFORM FILL_CELL USING H 12 0 4 W_OUT-ERFME 'R'.
PERFORM FILL_CELL USING H 13 0 20 W_OUT-WGBEZ 'R'.
PERFORM FILL_CELL USING H 14 0 16 W_OUT-XBLNR 'C'.
CLEAR W_OUT.
ENDLOOP.
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTIN G #1 = 2.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
PERFORM ERR_HDL USING 'Unable to create workbook'.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2. "----------can remove-------THIS IS FOR STAY AT LIST
PERFORM ERR_HDL USING 'Unable to create new workbook'..
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL USING 'Unable to free workbook'.
ENDFORM. " SUB_DISP_EXCEL
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD COL VAL I_HORIZON_ALIGN.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL USING 'set cell object error'.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL USING 'set value object error'.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL USING 'set font object error'.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL USING 'set bold object error'..
SET PROPERTY OF H_ZL 'ColumnWidth' = COL.
PERFORM ERR_HDL USING 'set columnwidth object error'.
IF NOT I_HORIZON_ALIGN IS INITIAL.
IF I_HORIZON_ALIGN = 'L'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLLEFT.
ELSEIF I_HORIZON_ALIGN = 'R'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLRIGHT.
ELSEIF I_HORIZON_ALIGN = 'C'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLCENTER.
ENDIF.
ENDIF.
PERFORM ERR_HDL USING 'set Alignment object error'.
ENDFORM. "FILL_CELL
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL USING VAL.
IF SY-SUBRC <> 0.
WRITE: / VAL.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Maybe you are looking for
-
Can't make «class ctnr» of alias - error message in script
I'm trying to take Apple's own "Add To File Names" script from a few years back and get it to work in 10.6.x but keep getting this error: Can’t make «class ctnr» of alias "Macintosh HD:Library:Scripts:add to names.scpt" into type text. I'm not an App
-
IPhone 4 only syncs last photo in every picture folder selected
My husband's IPhone 4 refuses to sync more than one photo from each folder he selects to update. It's always the last photo in the folder. He's had this problem from day one of owning the phone, and he's tried many times to fix. He's running Windows
-
Monitor not going to sleep when close my lid to MacBook Pro
Hi. I was wondering if there was anyway that I could get my Dell E173FP monitor to sleep when I close the lid to my macbook pro. I do not have it on mirroring mode. When I close the lid to my laptop it will just switch my desktop to the monitor inste
-
Unable to save the sales order in varient configuration
Hi Gurus, In varient configuration i have done all the settings and it works fine, and i am getting one error while saving the sale order(incomplete long) showing configuration. while click the error shwoing like this : Item 000011 can only be c
-
Please help me :/ I can't connect to anything!
Alright, the restrictions in my moms iPod were on and she couldn't remember what the password was, so she wanted me to figure it out. I found out very quickly that wouldn't be easy. So, I did everything it said to do, which was restore everything (Ma