HTML lines wrap around in the HTML report output
I seem to have a problem with lines wrapping around in HTML format. If the report is ran using the report builder the output will fit in every line without wrapping the information.
While if I run the same report -- to present the info using a browser -- using JSP in HTML format, the same lines will wrap around the info in two lines.
Here is how I send this document to the server :
pwrmpos_n: report=pwrmpos.rep destype=cache desformat=html server=rep60_wforms2 %*
Any help will be appreciated
Hello Hernando,
I am a little confused, the command that you describe is only for paper layout...
Anyway, let's try to help you:
- on your paper layout you specified a width for each column (when you resize it in the Paper Design window). When you run the paper layout with HTML (ot HTMLCSS) as format the width is present in the <TD> tag.
- for the JSP, by default the HTML does not contains any size for the table and cell so the browser size the table to fit in the screen.
If you do not want any wrapping in the JSP just modify the HTML tags to specify a width, or wrap for the TD tag.
Regards
Tugdual
Similar Messages
-
Problem when dowloading the ALV report output to Excel Sheet.
Hi ,
I am dowloading the ALV report output to Excel Sheet.
There is field Condition Unit(KOMP-KMEIN) in the output of the ALV, this has values PC and CSE , but when I download to Excel Sheet, CSE is appearing as CSE ,but PC is appearing as ******.
Can you please help me in knowing the reson for this.
Regards,
Madhu.hi
refer to following link
http://www.****************/Tutorials/ALV/ColorSALV/Demo.htm
http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
Cheers
Snehi
Edited by: snehi chouhan on Jul 11, 2008 12:42 PM -
Characters are cut off when they don't fit in the pdf report output.
Hi All,
I understand that Forms 6i and Oracle 9 iAS have been de-supported for years. Meanwhile we do still run a small application in the 9 iAS environment.
We have forms and reports running on Windows 2000 server, I am able to successfully clone the same 9 iAS from Windows 2000 to a Virtual Server Windows 2003 x32 and all runs fine, the only problem is that the fonts in the pdf reports are larger in the new Windows 2003 environment as compared to the original Windows 2000 and characters are cut off when they don't fit in the pdf report output in 2003 env.
Any advice is most appreciated.
Thanks.You may want to check on the printer driver and paper size selected
-
Before Firefox crashed last nite, I had them in 'two layers', but I can't remember how I did that to put them back.
By that I mean the bookmarks wrapped around to a 2nd strip (instead of the last ones being hidden under the little >> sign at the right of the strip.)
I want them back where I can see all of them at once.... TKU.The "restore disk" is built into the Mac. See About Recovery.
Need more specifics about what error messages you got while installing Adobe Flash.
However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
Click the Try something new! link at the bottom of the YouTube page.
I don't know about the sound issue. Might be hardware as you think. Try other headphones to check. -
How can i enable the html:text box when clicking the html:button
Hi,
i have a text box which is disabled defaultly and i want to enable it when i click on submit button.
<html:button property="new" value="new">
<html:text property="name" disabled="true"/>
how i will enable that text filed? please tell me?
Thanks,
swarupatry using javascript onclick attribute:
onclick="document.form.name.disabled=false"
m -
Download the ALV Report output into excel sheet or notepad
Hi,
how to downlaod the alv report out into excel sheet or notepad in a proper manner. program contain large number records....
Thanks in advance!!!!
Regards,
kranthi.Hi
Download a report to excel with format (border, color cell, etc)
Try this program...it may help you to change the font ..etc.
Code:
REPORT ZSIRI 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
Please note that this example maybe slow at filling the excel table
(perhaps four fields per second on a 900 MHz machine - almost 30 seconds
for a short example).
To get the data on properties and methods - there is a bit of smoke and mirrors
going on here; they are EXCEL properties and methods, not sap ones - so you need
to look at excel help to determine how a particular function is structured. then
build the block in sap, as shown in the example.
If you only want to transfer the data to Excel like when you transfer the data from
ALV to Excel simply use the Function Modules:
XXL_SIMPLE_API
If you want more modifications when you transfer it to Excel use:
XXL_FULL_API -
Issue while downloading the alv report output in spreadsheet format .
Hi,
I have a report output, whenever I try to download it in the spreadsheet format to my desktop,
I get the following issue:
Say the correct material number is 10833340001218999 or 10030000063207001
(This appears in the report output)
But in the excel file the number is displayed as 10833340001218900 and 10030000063207000.
Please help.
Regards,
Sucharita.Hi Sucharita,
The reason for your problem could be that in excel 2007, characters more that 15 are replaced with 0.
Or you can try downloading the data using FM 'GUI_DOWNLOAD' , if currently you are using stadard SAP functionality of data downloading.
Best Regards,
Vishal. -
How to do the ALV report output in groups and caluculate the tOTALS(URGENT
Hi
In my ALV report output .I have to group the output based on the DAYS field
0-10 days in one group
10-30 days in one group
above 30 days one group
There is also a field by name "AMOUNT" in my output.
I have to calculate SUBTOTALs at the end of every group and at the end of the report i should caluculate GRAND TOTAL.
Please remember that i should not use any any BLOCKED ALVs and for Totals i should not use the SYMBOLS provided in the application toolbar of the report
Thanks in AdvancePlease don't repost your questions...
Check out my answer in your other post.
How to make the ALV report in groups and caluculate the TOTALS
Regards,
Naimesh Patel -
Mailing the Standard Report Output
HI,
I have a requirement in which the output of a standard report has to be sent to the respective vendors.
MCVE -- Vendor analysis Report.
I have to schedule the job every month such that the rating of a vendor for the month will be sent to the respective vendors.
This report is an interactive report.
murali.c
Edited by: murali ch on Aug 31, 2009 11:00 AMhi..
thank u for the reply...
my doubt is ...
i have a report in which 1st list is like below
total goods in the month rating....
100.000 98
If I double click on it I'll get a 2nd list as follows
vendor vendor rating
1 100
2 98
3 100
4 99
5 97
my requirement is that I have to schedule the report evry month such that mail should go to the respective vendors with his rating.
will this be possible with out modifying the standard report?
report is :MCVE which is a vendor analysis report/
murali.c -
How to send the ALV report output by automated email.
Hi All,
Can any one advice how to send ALV report output by automated email.
Thanks in advance.
Vikram.
Edited by: vikram mallavaram. on Oct 13, 2011 3:26 PM
Moderator message: FAQ, please search for previous discussions of this topic.
Edited by: Thomas Zloch on Oct 13, 2011 3:27 PMHi Ramya,
Check the links below :
http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+Mail
http://wiki.sdn.sap.com/wiki/display/Snippets/AbapEMAILProgram
http://wiki.sdn.sap.com/wiki/display/ABAP/SendMessagetoExternalemailidandSAPUseridvia+ABAP
They will explain you to send an email.
Regards,
Kittu -
How to restrict some values in the final report output.
Hi Experts,
I have scenario where I dont want to include the values in the output of report.
If you observe above there are some un assigned cost elements and its the report output. I dont want these to be in the report.
Please suggest me.
Thanks,
RaviHi Friends,
Thank you for the reply.
I tried to exclude the values, but i dont find any chance to exclude them
If i try the same from characteristic restriction, its allowing me to exclude.
Is there any other possibility to restrict these? Please suggest -
Re: Display format in the ALV report output
Hi Expert,
In the alv report how to display below format in the output.
Example: Jan 2011 feb 2011 march 2011 .......................
no amount no amount no amount
As you seen in the above output i need Below jan 2011 NO and AMOUNT similar for other months.
Can any one throw some light...............
Regards,
Am.
Edited by: anitha.mava on Nov 5, 2011 12:37 PM
Moderator message : Spec dumping is not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 7, 2011 9:31 AMHi,
Are you able to populate NO ? If yes i don't see why u can't populate No Amount.
If you are not able to populate No.. just pass the same based on the condition to the (string) field that column is referring to ..
Or are u not able to align the columns ? If yes, you will have to do some hit and trial with write statement ..or better why not use grid display ..
Please provide more details ..
Regards,
Pranav. -
Outbound Plain HTML Adapter how to change the html-header field "host"?
Hello,
I'm using XI 3.0 SP11 and want to transmit a message to a business partner using the Plain HTML Adapter.
My problem is now that I need to change the default Html-Header field "host" because it seems that the adapter engine is converting it to lower case and is attaching the port-number which is causing trouble with the loadbalancer/applicationserver of our business partner.
I tried to set the appropriate http-header value in the communication channel configuration, but the adapter engine is ignoring this value.
Thanks in advance for any ideas.
Sascha Fuchs
Message was edited by: Sascha FuchsHi Sascha,
unfortunately the Plain HTTP adapter is not running in the J2EE, therefore you cannot extend the functionality with an adapter module.
I am not sure to understand the problem right. Why do you need to change the HTTP header? What is in it in your case and what should be?
Regards
Stefan -
How to send the ALV report output in mail
Dear all,
I have developed an ALV report.I need to send this output in the mail.Can anyone help me with the sample code of how to do this.Hi Ramya,
Check the links below :
http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+Mail
http://wiki.sdn.sap.com/wiki/display/Snippets/AbapEMAILProgram
http://wiki.sdn.sap.com/wiki/display/ABAP/SendMessagetoExternalemailidandSAPUseridvia+ABAP
They will explain you to send an email.
Regards,
Kittu -
Convert the matrix report output to excel sheet
Hi,
I am using reports 6i and database Oracle Database 10g Enterprise Edition Release 10.2.0.1.0.
I have to convert the output of matrix report into Excel sheet.
Is it possible.
Is there any other way to populate the matrix data to the excel sheet.
Thanks and regards,
Ansaf.You can generate excel file by setting SYSTEM PARAMETER values as below
DESFORMAT - DELIMITED
DESTYPE -FILE
DESNAME -File Name.XLS
Although this is not a pure Excel file (Its only a tab delimited file) but you can open this with MSExcel or Open office Calc.
Regards
Ahamed Rafeeque Cherkala.
Maybe you are looking for
-
Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshop onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked fo
-
its' been happening a year now maybe? i have a macbook pro 17" from 2008 or 9. been a great computer but little things are going now.... for some reason my firewire ports don't like to work and randomly tell me my external drives are disconnected. my
-
Need help with iPhoto! Can't add images!
Hello all. Just sarted using iPhoto '05 and amm trying to transfer photos from my camera and a CDR from a windows PC. It says: The following files could not be imported (they may be an unrecognized file type or the files may not contain valid data).
-
Library file for Visual C++ 6.0
Hello, where is include and library files for OCCI for VC++ 6.0?
-
How to number pages on bottom left and right corners
Hi, i am creating a magazine and am trying to number the pages so the first page will have 'page 1' in the bottom left hand corner and the second will have it in the bottom right, i can get the numbering to work but they are all in the bottom left so