Setting the report layout for HTML format
hi friends
when I generate my report to HTML file and open it to Internet Explorer it disturbs the actual report little bit like enlarging the fonts, hiding some graphical objects like Lines and wrapping the report. so can u tell me that how can I take the same output format in Internet Explorer as in reports previewer? I'm using Reports 6i and Micrsoft Internet Explorer 6.0. thanx.
I think you should make some modification into main section
e.g. increase height and width of the report....and then see...
I had same problem with text output but this method solve my problem hope
this will help u...
Enjoy Oracle...
Similar Messages
-
Can i get the report output in HTML format?
Hello everybody,
I have developed a report whose output needs to be printed in HTML format.
Can anybody suugest how this can be accomplished by coding in program itself using any function modules if necesary?
Helpful answers will surely be rewarded.
Thanx in advance,
Sanghamitra.refer the below code
Generate an HTML file from a Report in ABAP
data: begin of itab occurs 0,
matnr type mara-matnr,
mtart type mara-mtart,
matkl type mara-matkl,
groes type mara-groes,
end of itab.
data: ifields type table of w3fields with header line.
data: ihtml type table of w3html with header line.
select * into corresponding fields of table itab
from mara up to 100 rows.
call function 'WWW_ITAB_TO_HTML'
EXPORTING
TABLE_ATTRIBUTES = 'BORDER=1'
TABLE_HEADER =
ALL_FIELDS = 'X'
tables
html = ihtml
fields = ifields
ROW_HEADER =
itable = itab
check sy-subrc = 0.
call function 'GUI_DOWNLOAD'
exporting filename = 'c:\test.html'
tables data_tab = ihtml
or for conerting internal table data into html
See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
You need for create a spool also.
REPORT Z_HTML .
include <icon>.
types: begin of msg,
type like icon-id,
text(140) type c,
end of msg.
constants: gc_marked type c value 'X',
gc_ok like icon-id value '@5B@'.
data:
gt_msg type standard table of msg,
gs_msg like line of gt_msg,
gv_msg(138) type c,
*-- html
html_container type ref to cl_gui_custom_container,
html_control type ref to cl_gui_html_viewer,
my_row_header like w3head occurs 10 with header line,
my_fields like w3fields occurs 10 with header line,
my_header like w3head,
my_html type standard table of w3html ,
ok_code like sy-ucomm.
Start of Selection *
start-of-selection.
clear gv_msg.
gv_msg = 'MESSAGES for HTML'.
do 3 times.
perform message using gc_ok gv_msg .
enddo.
End of Selection *
end-of-selection.
set screen 0100.
*& Form message
form message using p_type
p_text.
clear gs_msg.
gs_msg-type = p_type.
gs_msg-text = p_text.
append gs_msg to gt_msg.
endform. " MESSAGE
*& Module STATUS_0100 OUTPUT
module status_0100 output.
perform convert_itab_html.
set titlebar '100' .
set pf-status 'MAIN100'.
create object html_container
exporting
container_name = 'CONTAINER'.
create object html_control
exporting
parent = html_container
saphtmlp = gc_marked .
data: assigned_url type url.
call method html_control->load_data
EXPORTING
URL = url
TYPE = 'text'
SUBTYPE = 'html'
SIZE = 0
ENCODING =
CHARSET =
importing
assigned_url = assigned_url
changing
data_table = my_html
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
others = 4
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call method html_control->show_url
exporting
url = assigned_url
FRAME =
IN_PLACE = ' X'
EXCEPTIONS
CNTL_ERROR = 1
CNHT_ERROR_NOT_ALLOWED = 2
CNHT_ERROR_PARAMETER = 3
DP_ERROR_GENERAL = 4
others = 5
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module exit INPUT
module exit input.
leave program.
endmodule. " exit INPUT
*& Module user_command_0100 INPUT
text
module user_command_0100 input.
case ok_code.
when 'EXIT' or 'BACK'.
leave program.
when others.
call method cl_gui_cfw=>dispatch.
endcase.
endmodule. " user_command_0100 INPUT
*& Form convert_itab_html
form convert_itab_html.
data: lv_tabix like sy-tabix.
*-- table header
call function 'WWW_ITAB_TO_HTML_HEADERS'
exporting
field_nr = 1
text = 'Type'
fgcolor = 'navy'
bgcolor = 'red'
font = 'Arial'
tables
header = my_row_header.
call function 'WWW_ITAB_TO_HTML_HEADERS'
exporting
field_nr = 2
text = 'Message'
fgcolor = 'navy'
bgcolor = 'red'
font = 'Arial'
tables
header = my_row_header.
*-- table rows
clear lv_tabix.
loop at gt_msg into gs_msg.
lv_tabix = sy-tabix.
call function 'WWW_ITAB_TO_HTML_LAYOUT'
exporting
field_nr = 1
line_nr = lv_tabix
icon = gc_marked
tables
fields = my_fields.
call function 'WWW_ITAB_TO_HTML_LAYOUT'
exporting
field_nr = 2
line_nr = lv_tabix
fgcolor = 'red'
bgcolor = 'black'
font = 'Arial'
size = '2'
tables
fields = my_fields.
endloop.
*-- header
move 'Messages during program run' to my_header-text.
move 'Arial' to my_header-font.
move '2' to my_header-size.
move 'Centered' to my_header-just.
move 'red' to my_header-bg_color.
move 'blue' to my_header-fg_color.
refresh my_html.
call function 'WWW_ITAB_TO_HTML'
exporting
table_header = my_header
all_fields = ' '
tables
html = my_html
fields = my_fields
row_header = my_row_header
itable = gt_msg.
endform. "convert_itab_html
regards,
srinivas
<b>*reward for useful answers*</b> -
Setting the 'reportable' flag for a very large ODS
Hello Community,
I am working on a very large BW system (6 Tb), and we recently have the need to set the 'BEx Reporting' flag on some very large ODS objects.
It was my impression that setting this flag would be easy to do. But the transport that contains this flag for six large ODS objects has already been running for more than 16 hours.
Can you tell me, what actually happens in the database when the 'BEx Reporting' flag is turned on for an ODS ?
Thanks !
KeithHello Bhanu,
Thanks for the quick response. Are you able to provide some more information ?
are the SID values created in a new SID table ?
if the ODS was already very large, then would you expect the new SID table to also be very large ?
what about the case if a SID value already exists for the characteristic ?
Thank you !
Keith -
Help.... trying to set the browser title for reports called from 9i form
hello all
I am attempting to call a 9i report from an oracle 9i form .I am using the following code
repid := find_report_object('report5');
SET_REPORT_OBJECT_PROPERTY
SET_REPORT_OBJECT_PROPERTY (repid,REPORT_type,CACHE);
SET_REPORT_OBJECT_PROPERTY (repid,REPORT_DESFORMAT,pdf);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'sandy4');
v_rep := RUN_REPORT_OBJECT(repid,p1_id);
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://----.--------.com:8888/reports/rwservlet/getjobid'|| substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=sandy4,'_blank');
.. and so on
The reports RUNS FINE AND POPS UP AS A NEAT PDF internet explorer page !!!
I WAS WONDERING IF THERE IS ANYWAY TO SET THE BROWSER TITLE OF THIS REPORT THAT POPS UP..
DO I HAVE TO CHANGE SOME PROPERTY AT THE REPORT END
OR CAN I SET IT DYNAMICALLY BY PASSING AS A PARAMETER
FROM MY FORM
I HAVE SEARCHED EVERYWHERE FOR THIS
PL HELP
I WILL REALLY APPRECIATE IT IF SOMONE CUD HELP ME WITH
THIS
THANK YOU
SANDYHi,
It is possible to set the Document title for PDF output. Open the Reports Property Inspector, under PDF Document Taxonomy, you can set the Document title. But this does not show up in the browser when you open the document.
thanks,
Senthil -
Setting the page orientation for a report
Hi
Currently, in infoview I have observed that we can set the page orientation for a report in a webi document , i.e. whether the report is to be viewed in landscape mode or portrait mode.
Currently, in the BO SDK, I have come across the classes like Orientation, but am not able to figure out how to use them.
Can you please paste some code snippet, how to use this class for setting the orientation of the document.
Thanks in advance,
ShrutiHi Shruti,
To retrieve the Reportcontainer for an existing report on a WebI document, you can do the following:
ReportStructure oReportStructure = oDocumentInstance.getStructure();
ReportContainer oReportContainer = (ReportContainer) oReportStructure.getReportElement(0);
Hope this helps.
Regards,
Dan -
How to set the working directory for reports in linux
Hi All,
Can you anyone help me to set the working directory for oracle application server 10g reports? I am using RHEL4 and AS10g. Actually i want to run my reports from my define
working directory. How can I do this?
Thanks in advance
ArifHi,
your rep_srv.conf should look like something like
+<?xml version = '1.0' encoding = 'ISO-8859-1'?>+
+<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:D:\oracle\FRHome_1/reports/dtd/rwserverconf.dtd">+
+<server version="10.1.2.0.2">+
+<!--Please do not change the id for reports engine.-->+
+<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->+
+<cache class="oracle.reports.cache.RWCache">+
+<property name="cacheSize" value="50"/>+
+<!--property name="cacheDir" value="your cache directory"-->+
+<!--property name="maxCacheFileNumber" value="max number of cache files"-->+
+<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"-->+
+</cache>+
+<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="3" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" jvmOptions="-Xmx512M -Xss512K">+
+<!--property name="sourceDir" value="your reports source directory"/-->+
+<!--property name="tempDir" value="your reports temp directory"/-->+
+<!--property name="keepConnection" value="yes"/-->+
+</engine>+
+...+
some more definitions
+..+
+<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->+
+<pluginParam name="xmlpds" type="file">xmlpds.conf</pluginParam>+
+<pluginParam name="jdbcpds" type="file">jdbcpds.conf</pluginParam>+
+<pluginParam name="textpds" type="file">textpds.conf</pluginParam>+
*<environment id="APP1">*
*+<envVariable name="REPORTS_PATH" value="/application1/reports"/>+*
*+</environment>+*
*+<environment id="APP2">+*
*+<envVariable name="REPORTS_PATH" value="/application2/reports"/>+*
+</environment>+
+</server>+
The environment ids you can choose yourself and you have to put them in there yourself too (here I put two environments for two different applications "1" and "2").
If you call a report from Forms, then you have to code something like
ADD_PARAMETER(p_list,'ENVID',TEXT_PARAMETER,'APP1');
Details depend on how you call your reports, my example is for using a parameter list and calling a report out of application1
Hope that helps.
Volker -
Is there a way in Captivate to set the reporting for a quiz so it saves/keeps the highest score
Is there a way in Captivate to set the reporting for a quiz so it saves/keeps the highest score despite how many attempts a user takes?
There is currently no built-in functionality to do this in Captivate.
If you are using an LMS, this sort of thing is normally handled there. For example in Moodle there is an option to use the highest score out of all attempts on a course. -
View Crystal Report Layout for my UDO Form
Hi all,
I try to view a report created for my UDO form. I set all settings in Administration -> Setup -> General -> Report and Layout Manager. Now I wonder what should be assigned to eventInfo.LayoutKey. I tried assigned report's DocCode from RDOC, DocEntry of my UDO object or UDO Code but nothing works. Always get an error: Incorrect format of argument or something like that - I didn't get an error in English so I tried to translate it.
How to show a report layout for my UDO form?
Regards
Szymon LipnickiHi and thanks for Your reply.
Help file contains example how to open report layout prepare in Crystla Reports designer for UDO form.
//Add Layout Key Event Handler
SBO_Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SBO_Application_LayoutKeyEvent);
void SBO_Application_LayoutKeyEvent(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
BubbleEvent = true;
if (eventInfo.ReportTemplate == "A001" && eventInfo.ReportCode == "A001001")
eventInfo.LayoutKey = 1; //Set the key of the layout
I am using SAP 8.81.
Regards
Szymon -
Cfhttp and setting the content-type for a request
Hi,
I am trying to set the content-type for a cfhttp request like this (on coldfusion 9):
<cfhttp redirect="no" method="get" timeout="120" url="http://10.0.0.1/test2.cfm">
<cfhttpparam type="HEADER" name="Content-Type" value="application/json; charset=utf-8">
</cfhttp>
// coding on test2.cfm:
<cfset x = GetHttpRequestData()>
<cfdump var=#x#>
// Output on test2.cfm
content
[empty string]
headers
struct
Accept-Encoding
deflate, gzip, x-gzip, compress, x-compress
Connection
TE
Host
10.0.0.1:80
Proxy-Connection
close
TE
trailers, deflate, gzip, compress
User-Agent
ColdFusion
X-REWRITE-URL
http://10.0.0.1:80/test2.cfm
method
GET
protocol
HTTP/1.1
As you can see no content-type is send through. I also tried the sniffer.exe:
GET http://10.0.0.1:80/test2.cfm HTTP/1.1
Host: 127.0.0.1
Proxy-Connection: close
Connection: TE
TE: trailers, deflate, gzip, compress
User-Agent: ColdFusion
Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
Here you can also see that no content-type was passed through. The sniffer should report back
GET http://10.0.0.1:80/test2.cfm HTTP/1.1
Host: 127.0.0.1
Proxy-Connection: close
Connection: TE
TE: trailers, deflate, gzip, compress
User-Agent: ColdFusion
Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
Content-Type: application/json; charset=utf-8
But is does not, what do i need todo to set the content-type in a cfhttp request.
Kind regards,
Nebu12Robots - are you sure about your statement that GET method requests cannot have Content-Type headers? I don't think that that is correct. I've always thought that it was valid (maybe unusual, but ...) and this W3C link weems to agree, especially in the context of its comment about what Content-Type means in a HEAD method request: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
The big problem with trying to get around the CFHTTP limitation by using the CGI scope is that the dash is illegal in a CF varname.
There is a custom tag called CFHTTP5 that getsaround a lot of the CFHTTP limitations, including cookie preservation across multiple requests. I haven't used it for a long time (CF5), but it is still actively developed. Costs $50 - http://www.cftagstore.com/tags/cfxhttp5.cfm
-reed -
How to retrieve complete report output in HTML format
Hi,
I'm looking for how to retrieve complete report output in HTML format.
I have tried the following and it only give me first page of the report output where in the actual report output should be 5 pages. Is there something I'm missing.
CallbackOption[] boCallOpt = new CallbackOption[1];
ImageManagement boImgMan = new ImageManagement();
boImgMan.setCallbackScript("getImage.jsp");
boImgMan.setImageManagementHolder("imageName");
boImgMan.setDocumentReferenceHolder("docRef");
boCallOpt[0] = boImgMan;
RetrieveData oRetrieveData = new RetrieveData();
RetrieveView oRetrieveView = new RetrieveView();
oRetrieveView.setCallbackOption(boCallOpt);
oRetrieveData.setRetrieveView(oRetrieveView);
Action[] oActions;
oActions = new Action[1];
oActions[0] = fillPrompts;
oReportEngine.getDocumentInformation(boDocInfo.getDocumentReference(), null, oActions, null,oRetrieveData);
Testing this on BOE XI 3.0
Thanks,For Web Intelligence, HTML is an interactive viewing format and not an export format such as PDF.
Note that the HTML will be embedded with postback URLs to the application for images and drill downs.
Closest you'd get is to be able to specify HTML output of an entire REPORT rather than REPORT_PAGE in the ViewSupport.setViewMode method. But this brings back just one report in the document, and will have postback URLs mentioned above.
Sincerely,
Ted Ueda -
Need Standard report layout for Benefits
Hi,
Can anyone send me the standard report layout for benefits which is already generated.
Thanks,
LakshmiDo you want a enrollment letter or a confirmation letter ? They are all there in the IMG as templates. Just copy it and design your own. No two businesses use the same format so sending you ours will be as good as you doing some work on the SAP delivered examples.
Deon -
Displaying the report output in excel format
Please help me in getting the report output in excel format.
thnksI ran into a BIG problem after passing from 6i rep server to 9i rep server.
On 6i rep server I used to set DESFORMAT='DELIMITED', and that produced reasonable tab-delimited output for reports that did not have group above (all the query groups were from left to right, not a single group having fields displayed above some other group). When deployed on rep server 9i, the same reports produced some unexplainable output: some of the rows were duplicated, but I couldn't figure out any rule.
So, the best thing to get the reports into something that fits in .xls would be to have the output in .xml, that may be imported in Excel. -
How can I set default toolbar layout for all users in my system?
Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js.
Now, I want to define default toolbar layout in a similar way (maybe not needed but fun), to copy the toolbar layout for my user. Is there a general way to do that?
thank you in advance!You can try to create a default template folder (defaults/profile) in the Firefox and place the file(s) in that folder for newly created profile.
The only way to customize an existing profile is to copy files directly to it. -
How to set the report path in a model plugin
I am trying to figure out how to set the report path in a process model plug-in. I can seem to figure out how to get access to it. It seems like this would be a reasonable thing to do since the plug-ins are for results processing. Does anyone know how to do this? We typically use the Sequential process model but I am trying to keep my plug-in as independent of that as possible.
Thanks.
Solved!
Go to Solution.If I understand, you want your plug-in, when enabled, to alter the settings of any other instances of the NI report plug-in such that their reports share the same directory as your plug-in is configured to use.
If so, your plug-in can access and modify the settings of all other plug-in instances. All instances are passed to all plug-in entries point in the plugins array sub-property of the ModelConfiguration parameter. You can iterate through this array. Any element of the array with a Base.SequenceFilename equal to "NI_ReportGenerator.seq" is an instance of the NI report plug-in. Its report options are stored in the element under PluginSpecific.Options.
You can change the report options to what ever you want. Note that the ReportOptions model callback is called from the Initialize model-plugin entry point, so you might want to ensure that your changes are applied after that, so they aren't overwritten. To do that, you could make your changes in the the Initialize entry point of your plug-in, and ensure that your plugin runs last. To make it run last, you could set the FileGlobals.ModelPluginComponentDescription.Default.Base.RunOrder in your plug-in file to a value greater than 0, such as 1.0 (see TestStand Help>>Fundamentals>>Process Model Architecture>>Process Model Plug-in Architecture>>Structure of Plug-in Sequence Files>>Model Plug-in Entry Points>>Order of Entry Point Execution at Run Time). -
Download and Upload Report Layout for End User
hi, i did the following
1. create an xml data file
2. load in in bipublisher
3.create a layout
4. create a report query in apex and load the rtf created in step 3
5. test the report.
it works fine.
my requirement is for trained end users (bipublisher trained) to download the rtf and edit it if need be. most of the editing will be text and they will not be editing any data fields. i will create a button for the end user to download the report layout, but what api can i use to download the rtf for them and where should i move the report layout (any apis for this) upon upload after the rtf is edited by the user.
thanks
ahi check this document
http://docs.oracle.com/cd/E21764_01/bi.1111/e13880/T539768T526688.htm#5851577
http://docs.oracle.com/cd/E21764_01/bi.1111/e13880/T539768T526688.htm
Maybe you are looking for
-
I would like to play around New GL but I dont know what should I configure i.e. scenario (do not mean SAP steps) and what should I expect i.e. result. Appreciate if any one could give me a scenario and the result. Basing on that I ll do configuratio
-
My ipod downloads songs from itunes and plays them just fine. However, when I added my songs from my CD's to it, they downloaded but don't play like they should. They either don't play at all or randomly play in the middle of the song. It has nothing
-
XML Report in Crystal Report Viewer
I'm trying to see a report build with crystal report XI release 2 in my jsp page using java reporting component, this report uses an xml file as datasource; I'm developing with websphere 5.1.1 i have the following error: JRCAgent1 detected an excepti
-
I have a fissure on my ibook G4. What can I do for it?
Hel, I'm french so sorry if my english is not as good as yours. I had a fissure on my ibook. It is situated in the right corner, near the end key on the keyboard. The laptop didn't fall down and had no shock. I have had it for 15 month, so the APPLEC
-
Change display time zone in iCal?
Hello- I just moved from the east coast to the west coast. I have Time Zone Support turned on in iCal, and I've set my time zone to Pacific Time in the OS X Date & Time Control Panel. Nevertheless, when I create a new event, it defaults to eastern ti