How to get Report Output in csv format
Hi,
How can i get report Output in csv format, can any one tell me the word used for output type to get output in csv format.
i have used XLS output type but it opens in excel format.
conc.addLayout(appCode,concReqCode,"en-US","US",XLS);
Thanks
Babu
Hi Babu,
Till now in xmlpublisher there is no method to create file in csv format ,you have to create Excel file and then save it in .csv format.Unless and until ur using BI Publisher in which some work around are possible.
Thanks
Similar Messages
-
How to get report output on screen as well as in spool?. Spool to be mailed
Hi All,
Can any guide the approach for:
Foreground run:
Get report output on screen as well as generate a spool. The content of spool needs to be mailed.
Background run:
we need to generate the spool and mail the spool contents.
Am aware of usage of FMs
1. GET_JOB_RUNTIME_INFO
2. RSTS_GET_ATTRIBUTES
3. CONVERT_OTFSPOOLJOB_2_PDF
4. SO_DOCUMENT_SEND_API1
Regards
RajHi All,
I had solved the issue by having two separate blocks for processing based on mode of execution.
Background:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Foreground:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Write summary again (for display on screen).
Regards
Raj -
How to open Report output in RTF format using concurrent request form.
Hi
I have created a report using BI publisher and RTF format. This report is working fine in PDF format. User can submit report using consurrent request form and can see report preview in PDF format.
Now user wants to submit another request and wants to see report output in RTF format.
User submitted a request, request successfully completed and generated a output RTF file in unix box but when user wants to see report output using concurrent request form (View Output) then window is showing raw data instead of RTF output.
Can any body tell me about solutions?
Thanks
RaviHi Ravi
I did little R&D on it and found following 2 solutions.I am sure that you also find something but for my shake i am putting it here.If you already find the solution then ignore it.
I) 1st Solution
1)Change the profiles 'Viewer: Application for Text' and put value as 'Browser'
2) Change the profiles 'Viewer: Text' and put value as 'Browser'.Either change it system level or concerned user.
3) Log out from Current session and close all internet explorer application.
4) Log in again to check the result
II) 2nd Solution
1) Navigate to: Sys admin --> Install -> Viewer Options to open the Form "Viewer Options".
Do the entry as shown below:
File_Format Mime Type Description
RTF application/rtf Microsoft Word(.rtf)
RTF application/msword Microsoft Word(.rtf)
2) Then ensure that the profile option Viewer: Application for Text is set to BLANK at the Site Level and User Level.
3) Then ensure that the profile option Viewer: Text is set to 'browser' at the Site Level.
-- It will pop-up the screen to choose application name from above two values.
Hope this will work it for you. For me i replicated the scenario and both solutions were working for me.
With Best Regards
Darshan Bhavsar -
How to get the output in .xls format instead of .csv.
Dear All,
I have added a exportButton on a table through personlization, when I click on the button it is opening in .csv instead of .xls file .
Please let me know if I can change the format of that to .xls .
Regards
Karan deep.Hi,
I tried that but I am not able to get the outplut in .xls format .......I think "export all rows" property is used to export all the rows of the particular table "VO attached to it".....I dont think that this property has any control of file format.... -
How to get the output in ALV format
Hi All,
this is my program, in this i want to get the output in ALV, i hv created two containers and m able to get the ALV layout successfully but i am not able to fetch the correct data.
the output it is showing is some RFC value.
here we have used - abaplist, soli.
Please provide me the solution.
SELECT * FROM varid INTO CORRESPONDING FIELDS OF TABLE t_varid WHERE report in s_report.
LOOP AT t_varid .
SUBMIT (t_varid-report) USING SELECTION-SET t_varid-variant
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listtab
EXCEPTIONS
not_found = 1
OTHERS = 2.
**************Old System Entry********
CALL FUNCTION 'Z_GET_DETAILS'
DESTINATION 'BWDCLNT900'
EXPORTING
report = t_varid-report
variant = t_varid-variant
TABLES
listtab = list_tab.
IF sy-subrc EQ 0.
CALL FUNCTION 'LIST_TO_TXT'
TABLES
listtxt = listtxt1
listobject = list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2.
ENDIF.
if p_flag eq 'X'.
clear p_flag.
write : / 'Program Name',
41 'Variant Name',
66 'Output Match'.
endif.
IF listtxt EQ listtxt1.
WRITE : / t_varid-report,
41 t_varid-variant,
66 icon_green_light AS ICON HOTSPOT.
ELSE.
WRITE : / t_varid-report,
41 t_varid-variant,
66 icon_red_light AS ICON HOTSPOT.
ENDIF.
CLEAR : listtab,list_tab,listtxt,listtxt1.
REFRESH : listtab[],list_tab[],listtxt[],listtxt1[].
ENDLOOP.
AT line-selection.
v_report = sy-lisel(40).
v_variant = sy-lisel+40(14).
call SCREEN 400.
module STATUS_0400 output.
SUBMIT (v_report) USING SELECTION-SET v_variant
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listtab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_TXT'
TABLES
listtxt = listtxt1
listobject = list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2.
**************Old System Entry********
CALL FUNCTION 'Z_GET_DETAILS'
DESTINATION 'BWDCLNT900'
EXPORTING
report = v_report
variant = v_variant
TABLES
listtab = list_tab.
CREATE OBJECT CCONT1
EXPORTING
CONTAINER_NAME = 'C1'.
CREATE OBJECT CCONT2
EXPORTING
CONTAINER_NAME = 'C2'.
CREATE OBJECT GRID1
EXPORTING
I_PARENT = CCONT1.
CREATE OBJECT GRID2
EXPORTING
I_PARENT = CCONT2.
CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'abaplist'
CHANGING
IT_OUTTAB = list_tab.
CALL METHOD GRID2->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'abaplist'
CHANGING
IT_OUTTAB = listtab.
SET PF-STATUS 'ZUTDEMO2'.
endmodule.
module USER_COMMAND_0400 input.
IF SY-UCOMM = 'EXIT'.
LEAVE PROGRAM.
ENDIF.
endmodule. " USER_COMMAND_0400 INPUTsolved
-
How to generate report output in csv file and send it to user email inbox
Hi All,
We have requiremnt to generate the csv file from the report (Bex query)automatically and need to send that file automatically to user email address every week.
It should be done automatically and one more thing the file name should contain that particuar date
for example if we generate file automatically today the file name should be like below.
US_04_15_2009.CSV
Any one have any ideas?
Regards,
SirishaHi Arun Varadarajan.
Thanks for your reply.We are in BI 7.0.Can you tell me how to broadcast the query as CSV.Please let me know if there is any possiblity to display or change the file name dynamically based on system date.
Regards,
Sirisha
Edited by: sirisha Nekkanti on Apr 16, 2009 4:08 AM -
How to get report output in center of page
hi
i made one report.
output is coming properly but its coming on left side of the page i want it should come on center of the page .
so please help me .
thanks in advanced.i am not enough sure what you want but you can use justification
write : / var centered."left-justified or right-justified .
or you have to format like
write : /pos(len) Var.
i.e like
write : /5(10) var.
regards
shiba dutta -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF -
How to send the output to PDF format in reports 6i?
Hi,
How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
Thanks
KavithaHello,
Do you get this problem only for DESFORMAT=PDF ?
Test with :
DESFORMAT = RTF, DESNAME = C:\x.rtf
or
DESFORMAT = HTMLCSS, DESNAME = C:\x.html
does it work ?
Check if DESNAME is modified in the reports itself.
Regards -
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 -
How to get report in excel format instead of pdf from oracle forms.
Hi,
How to get report in excel format instead of pdf from oracle forms.
Form & Report developer 10g
report format .rdfcreate a report using report builder.
call the report from form using the following procedure
DECLARE
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
RO_Report_ID := FIND_REPORT_OBJECT('RP2RRO');
Add_Parameter(pl_id,'P_SUPCODE',TEXT_PARAMETER,:CONTROL.S_CODE);
Add_Parameter(pl_id,'P_INVOICE_NO',TEXT_PARAMETER,:CONTROL.IN_NO);
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'INVOICE_REG_DETAILS.rep');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_dbserver_frhome1');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_dbserver_frhome1') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=rep_dbserver_frhome1';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END; -
Xml report output in excel format without using options tab in EBS
How to get xml publisher report output in excel format without using options tab in EBS?
I am getting XML Publisher report output in excel format by using options tab while submitting the concurrent request .
But i want to get excel output automatically.
Can anyone give idea to get XML publisher Report output in excel without selecting options tab.
Thanks in advance
Sandeep VHey Sandeep,
I am working on a similar format for a report and if possible can you please give me some guidelines. I have initially created reports using XML Publisher, but for those , the output preview format was PDF. So, if I select the preview format as EXCEL will it give me output in Excel and for this to happen, how do I define the rtf template. I believe the working will be same as for PDF, create a rdf report, get output in XML and apply the template to get the data in Excel or there is something different to this.
Thanks,
Sunil -
Can Sentinel RD reports be in CSV format instead of PDF
Hi,
I am working with Sentinel RD and generating custom reports using
iReport. I was wondering if I can generate a custom report where the
output is in CSV format instead of PDF and can be scheduled in the same
way as the PDF are.
What do I need to do to achieve this?
ankurrane
ankurrane's Profile: http://forums.novell.com/member.php?userid=92392
View this thread: http://forums.novell.com/showthread.php?t=428324Here is how to output report results in CSV format in SLM 1.1 (or
later):
STEP 1: Go to the $ESEC_CONFIG_HOME directory on your SLM server (It
will be something like: /etc/opt/novell/sentinel_log_mgr/config).
STEP 2: Open the file
"obj-component.JasperReportingComponent.properties" for editing.
STEP 3: Specify the following fields/values in that properties file:
reporting.csv.enable=true
reporting.csv.email=true
reporting.csv.outputdir=/opt/mycsvreportresults
STEP 4: Save the file.
STEP 5: I *think* you have to restart the SLM server after making
changes to any of these properties.
Some things to take note of:
NOTE 1: You can specify any directory (that the novell user has
permission to write to) in the "reporting.csv.outputdir" setting. This
will cause a .csv file to be created in that directory whenever a report
is run.
NOTE 2: If you set the "reporting.csv.email" setting to true, the .csv
report results will be included with any report results that are
emailed.
NOTE 3: The CSV results will include all of the report information in
the the .csv... including the header information any output from any
subreports. That additional information may not always be desireable in
the CSV results, so if you find the format of the .csv to not be what
you need or too difficult to work with, you might want to consider
creating a new report where there results/output are more optimized for
.csv output (may without any header or subreport information).
NOTE 4: Regardless of whether csv output is enabled or not, the
standard PDFs results will always be generated.
NOTE 5: The CSV results are not accessible through the GUI, but instead
are accessible by looking in the directory you specify via the
"reporting.csv.outputdir" property ... or via any report result emails
if the "reporting.csv.email" property is set to true.
NOTE 6: Just FYI: That "reporting.pdf.outputdir" property that you will
also see in the "obj-component.JasperReportingComponent.properties" file
is if you want to have the PDF results to be placed in a directory on
the server. (PDF results will always be accessible via the GUI
regardless of this setting.)
bweiner12345
bweiner12345's Profile: http://forums.novell.com/member.php?userid=55576
View this thread: http://forums.novell.com/showthread.php?t=428324 -
In fnd_request.add_layout how to get the layout in EXCEL Format
Hi All,
After applying the patch (5688014), in WSH_DOCUMENT_SETS package fnd_request.add_layout is getting called as below. I am getting the output in PDF format, when called from Document sets.
But my requirement is i want the report to be in EXCEL Format. Is there any other patch is available to get the report in EXCEL when called from Document Sets/ Or any other alternative solutions to acheive this..
Can any body help me on this...
l_print_pdf := 'N';
IF(l_output_file_type = 'XML' ) THEN
IF l_debug_on THEN
WSH_DEBUG_SV.logmsg(l_module_name, 'template' || l_template_code);
END IF;
IF (l_template_code is not NULL) then
IF l_nls_lang.COUNT <> 0 THEN
select iso_language,iso_territory into l_language, l_territory
from fnd_languages
where language_code = l_nls_lang(l_nls_count).lang_code;
ELSE
select iso_language,iso_territory into l_language, l_territory
from fnd_languages
where language_code = userenv('LANG');
END IF;
IF l_debug_on THEN
WSH_DEBUG_SV.logmsg(l_module_name, ' language ' || l_language || ', territory ' || l_territory);
END IF;
l_ret_status :=fnd_request.add_layout(l_appl_short_name,
l_template_code,
l_language,
l_territory,
'PDF');
IF l_ret_status THEN
l_print_pdf := 'Y';
ELSE
IF l_debug_on THEN
WSH_DEBUG_SV.logmsg(l_module_name, 'Error returning from fnd_request.add_layout :'||x_return_status);
END IF;
wsh_util_core.add_message(x_return_status);
END IF;
ELSE
IF l_debug_on THEN
WSH_DEBUG_SV.logmsg(l_module_name, 'No template was specified for this report. Hence could not generate the pdf output' );
END IF;
fnd_message.set_name('WSH', 'WSH_NO_DEFAULT_TEMPLATE');
fnd_message.set_token('CONC_PROG_NAME', document.user_concurrent_program_name);
x_return_status := wsh_util_core.g_ret_sts_error;
wsh_util_core.add_message(x_return_status);
END IF; --} If template_code is not null
END IF; --} If l_output_file_type = 'XML'
Thanks in Advance..Hi,
I tried your approach and got the following error..
------------- 1) PUBLISH -------------
Beginning post-processing of request 14808954 on node FAHQSNA09SFTD07 at 24-JAN-2012 04:13:08.
Post-processing of request 14808954 failed at 24-JAN-2012 04:13:09 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
After analysing the log i found there is some issue in OPP Service log.
Below is the service log error..
It says there is 'No corresponding LOB data found' in below query
SELECT l.file_data file_data, DBMS_LOB.getlength (l.file_data) file_length,
l.LANGUAGE LANGUAGE, l.territory territory,
b.default_language default_language,
b.default_territory default_territory,
b.template_type_code template_type_code,
b.use_alias_table use_alias_table, b.start_date start_date,
b.end_date end_date, b.template_status template_status,
b.use_alias_table use_alias_table,
b.ds_app_short_name ds_app_short_name,
b.data_source_code data_source_code, l.lob_type lob_type
FROM xdo_lobs l, xdo_templates_b b
WHERE l.application_short_name = :1
AND l.lob_code = :2
AND l.application_short_name = b.application_short_name
AND l.lob_code = b.template_code
AND (l.lob_type = 'TEMPLATE' OR l.lob_type = 'MLS_TEMPLATE')
AND ( (l.LANGUAGE = :3 AND l.territory = :4)
OR (l.LANGUAGE = :5 AND l.territory = :6)
OR ( l.LANGUAGE = b.default_language
AND l.territory = b.default_territory
But i see the data for this query.
Please let us know is there any setups that needs to be done to achieve this..
below is the OPP log error...
Thanks in Advance.
[1/24/12 4:13:09 AM] [710131:RT14808954] Executing post-processing actions for request 14808954.
[1/24/12 4:13:09 AM] [710131:RT14808954] Starting XML Publisher post-processing action.
[1/24/12 4:13:09 AM] [710131:RT14808954]
Template code: EMP_DETAILS
Template app: EMP_DETAILS
Language: en
Territory: US
Output type: EXCEL
[1/24/12 4:13:09 AM] [UNEXPECTED] [710131:RT14808954] java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA,DBMS_LOB.GETLENGTH(L.FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LANGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_CODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DATE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.DS_APP_SHORT_NAME DS_APP_SHORT_NAME, B.DATA_SOURCE_CODE DATA_SOURCE_CODE, L.LOB_TYPE LOB_TYPE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.APPLICATION_SHORT_NAME= :1 AND L.LOB_CODE = :2 AND L.APPLICATION_SHORT_NAME = B.APPLICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND (L.LOB_TYPE = 'TEMPLATE' OR L.LOB_TYPE = 'MLS_TEMPLATE') AND ( (L.LANGUAGE = :3 AND L.TERRITORY = :4) OR (L.LANGUAGE = :5 AND L.TERRITORY = :6) OR (L.LANGUAGE= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
at oracle.apps.xdo.oa.schema.server.TemplateInputStream.initStream(TemplateInputStream.java:402)
at oracle.apps.xdo.oa.schema.server.TemplateInputStream.<init>(TemplateInputStream.java:235)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.getTemplateFile(TemplateHelper.java:1163)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3450)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157) -
Printing report output in PDF format
Hi,
I want to know what are the settings needed to print a report output in PDF format, while executing the report from Oracle applications (Ver 11.5.6).
Report is executed as a concurrent request from Oracle applications.
Normally when we run the report from Oracle applications, output will be opened in a internet browser(IE) in HTML format. But I want the output to be opened in PDF format instead of HTML.
OS: Sun Solaris 2.8.
Thanks & Regards,
SarishHi Sarish
Please contact Oracle Support for an answer or to customise your application so that it prints a report output in PDF Format.
To get PDF output you must run report/job with DESFORMAT=PDF in the command line instead of DESFORMAT=HTML/HTMLCSS.
Regards
Sripathy
Maybe you are looking for
-
My iPhone 4 will not show up at all in iTunes.
I have tried updating AMDS and reinstalling all Apple software and nothing works. It will show up on my other computer but not the iTunes on my laptop. It started happening when I accidentally cancelled updating iTunes about three days ago. Send help
-
CANCEL OF VENDOR EXCISE INVOICE
hello everyone, i have cancelled a GR with movt. type 102. now i want to cancel d vendor excise. for that when i am using t/code j1iex,selecting post,simulating CENVAT and while trying to post CENVAT it is giving error ACCOUNTING DOCUMENT NOT GENERAT
-
Delayed Payment charges and Arrears in the Invoice output
Hi, can we show Delayed Payment charges and Arrears in the Invoice output in case of SD invoice. From where can i take those. suggest.
-
Problem launching bridge in CS6
I have been trying to launch bridge for hours in CS6 ,having no luck, tried the command- option -o , have uninstalled and re-installed and still no luck.... ? any hints please
-
How to show exponent value in adf output Text
Hi, How to show values in the table column output text with exponent values like 3 ^rd^ , 2 ^2^ , Hello ^R^,etc.. ? Do we have any RichFormatText for the ADF output Text? Thanks..