How to Generate CSV Output from JD Edwards BI Publisher
Hi All,
I have a report "Critical Date Report" - R15611 in JD Edwards 8.11. This report has to be generated as CSV output from BI Publisher which is embedded to JDE.
The purpose we want use BI Publisher is to move some of the data displaying to different place in the page(ex: Move the company address from top left corner to Bottom right corner).
In order to achieve this
1.We created blank rtf template and upload to XML repository using P95600 application
2.Create report definition using P95620 application
3.Here I see the available output types as PDF,RTF,HTML,EXCEL,POWERPOINT and XML,ETEXT(GRAYED OUT)
Which output type we can use for CSV ?
4.Execute the report definition of the critical date report from P95620 to get the XML source
5.This XML source will be loaded into the blank rtf template
6.From this point no idea how to design the rtf template in order to get the CSV output.
7.We did design and output type as excel - but the result data is not in good formatting and alignment*(Headers and footers are repeating).*
If any one has worked on similar type of requirement,let us know how to do or send a sample XML source,rtf template and how the CSV output will be. Or any document link present in Oracle site will be helpful. Please let me know if you need more details.
Thanks in Advance.
Vijay
Hi Vijay,
For CSV output, you need an E-text template (not RTF) that's why its grayed out! You can use Excel as output type and have (No headers and footers) , then you can open the file in Excel and store it as CSV. Does not always display correctly though.
Why are you compelled to use BI publisher? you can use the JDE standard csv output report, (as is used by most EDI systems) of course this may involve a bit of customization if you wants the fields arranged differently.
-Domnic
Similar Messages
-
How to generate CSV ouput from JD Edwards 8.11 using rtf template
Hi,
I have a report "Critical Date Report" - R15611 in JD Edwards 8.11. This report has to be generated as CSV output from BI Publisher which is embedded to JDE. why we choose the output in BI Publisher is to move some of the data displaying to different place in the page(ex: Move the company address from top left corner to Bottom right corner).
In order to achieve this
1.We create blank rtf template and upload to XML repository using P95600 application
2.Create report definition using P95620 application
3.Here I see the available output types as PDF,RTF,HTML,EXCEL,POWERPOINT and XML,ETEXT(GRAYED OUT)
Which output type we can use for CSV ?
4.Execute the report definition of the critical date report from P95620 to get the XML source
5.This XML source will be loaded into the blank rtf template
6.From this point no idea how to design the rtf template in order to get the CSV output.
7.We did design and output types as excel - but the result data is not in good formatting and alignment.
If anyone has worked on similar type of requirement,let us know how to do or send a sample XML source,rtf template and how the CSV output will be.
Thanks in Advance.
VijayIve replied to your other post.
-
How to generate PDF output from OracleXMLQuery
I want to generate a PDF out put from XML by using JSP. For this i writen jsp and xsl. My jsp code works fine if i include html formated xsl and it displays as a text when i pass pdf formated xls.
Here i am providing my jsp code.
I don't want to use XSQL, please provide me information ASAP.
<%@ page import = "java.sql.*,oracle.xml.sql.query.OracleXMLQuery" %>
<% Connection conn = null;
Statement stmt = null;
ResultSet rset = null;
String dbURL = "jdbc:oracle:thin:@localhost:1521:oracle9i";
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(dbURL, "scott", "tiger");
stmt = conn.createStatement ();
rset = stmt.executeQuery ("SELECT * " +
"FROM scott.emp ORDER BY ename");
OracleXMLQuery xq = new OracleXMLQuery(conn, rset); %>
<% xq.setStyleSheet("emptablefo.xsl"); %>
<%= xq.getXMLString() %>
<% } catch (java.sql.SQLException e) { %>
SQL error: <%= e %>
<% }
finally {
if (stmt != null) stmt.close();
if (rset != null) rset.close();
if (conn != null) conn.close();
} %>
Thanks,
Ramana>
if the report output format is xls this code is generating the pdf output
>
looks like pdf is default output in template definition in xml publisher resp
so for r12 use FND_REQUEST.ADD_LAYOUT as example
v_request_id number;
xml_layout boolean;
xml_layout := FND_REQUEST.ADD_LAYOUT('XXCUSTOM','XXCONCNAME','en','00','EXCEL');
v_request_id := fnd_request.submit_request(application => 'XXCUSTOM',
program => 'XXCONCNAME',
description => NULL,
start_time => NULL,
sub_request => FALSE,
argument1 => p_date
);also see http://andyblg.wordpress.com/2012/08/23/run-concurrent-program-twice-with-different-layout-r12/ -
How to generate multiple output pdf's from one oracle reports
how to generate multiple output pdf's from one oracle reports.
I have a report where I have to generate more than one output files from the same report based on a parameter.
Each output file is for each parameter.
Is this possible in oracle reports, is so how ?You can better post your question in the reports forum instead of this pl/sql forum.
-
How to generate csv ouput by using a procedure
Hi All,
How do I generate a csv (comma separate value) output by using procedure. I have 2 SQL statements in my procedure, I need to generate a csv file with the result set of 2 SQL's. For Example;
I have the following 2 SQL's in my procedure
Cursor emp_det Is Select * From emp where sal < 4000;
Cursor sal_det Is Select e.* from emp e,dept d where d.dname = 'SALES'
My requirement is to generate a csv ouput with the result set of cursors emp_det & sal_det. How can I generate a csv ouput by using PL/SQL. I could generate the same by using tools like TOAD & PL/SQL Developer. But I need to generate csv output by using PL/SQL only...Your help would be more appreciated.use tom kyte's dump_csv.
create or replace function dump_csv( p_query in varchar2,
p_separator in varchar2
default ',',
p_dir in varchar2 ,
p_filename in varchar2 )
return number
AUTHID CURRENT_USER
is
l_output utl_file.file_type;
l_theCursor integer default dbms_sql.open_cursor;
l_columnValue varchar2(2000);
l_status integer;
l_colCnt number default 0;
l_separator varchar2(10) default '';
l_cnt number default 0;
l_colDesc dbms_sql.DESC_TAB;
begin
l_output := utl_file.fopen( p_dir, p_filename, 'w' );
dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
for i in 1 .. 255 loop
begin
dbms_sql.define_column( l_theCursor, i,
l_columnValue, 2000 );
l_colCnt := i;
exception
when others then
if ( sqlcode = -1007 ) then exit;
else
raise;
end if;
end;
end loop;
dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
l_status := dbms_sql.execute(l_theCursor);
dbms_sql.describe_columns(l_theCursor,l_colCnt, l_colDesc);
l_separator := '';
for lColCnt in 1..l_colCnt
loop
utl_file.put( l_output, l_separator || '"' || Upper(l_colDesc(lColCnt).col_name) || '"');
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
loop
exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
l_separator := '';
for i in 1 .. l_colCnt loop
dbms_sql.column_value( l_theCursor, i,
l_columnValue );
utl_file.put( l_output, l_separator || '"' ||
l_columnValue || '"');
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
l_cnt := l_cnt+1;
end loop;
dbms_sql.close_cursor(l_theCursor);
utl_file.fclose( l_output );
return l_cnt;
end dump_csv;Thanks,
Karthick. -
.CSV output from Oracle reports 10g (from Oracle application)
Dear all,
I have a requirement to give an Oracle 10g report which will be deployed in Oracle RMS application.
When the report is run thru the application, it should give the output in .CSV format.
But, by default when the report is run thru the application, its giving the output in PDF format.
Can any one help me in this and guide me how to get a .csv output from the Oracle reports in the RMS application.
Thanks,
Sumapls reply
-
How to generate an idoc from invoice cancellation (VF11)
Hi
How to generate an idoc from invoice cancellation (VF11)?
Can someone help ..
Regards
PratikshaHi,
You can generate an IDOC from invoice cancellation.Define a new "Z" output type for this cancellation billing document type and select the medium as 5(EDI).Check with your ABAPer for this.
Regards,
Krishna. -
To generate XML output from Oracle Apps 11
Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.17, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
The scenario is:
1) Run a concurrent program in Oracle Apps 11
2) Output generated is XML (.xml)
Regards.This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
You may be better off in legacy XML Features forum...
PL/SQL XML Programming -
How to create .csv file from ABAP report
Hi
We have a requirement to generate .csv file from abap report.
Currently user saves data from abap report to spreadsheet(.xls format) in desktop. Then opens excel file and save as .csv format. Need option to save directly in .csv format instead of .xls format.
Please let me know, if there is any standard function module available to create .csv file.
Regards
UmaI tried with your code it's going to dump
REPORT ZTEMP101 message-id 00.
tables: lfa1.
types: begin of t_lfa1,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
end of t_lfa1.
data: i_lfa1 type standard table of t_lfa1,
wa_lfa1 type t_lfa1.
types truxs_t_text_data(4096) type c occurs 0.
data: csv_converted_table type table of TRUXS_T_TEXT_DATA.
select-options: s_lifnr for lfa1-lifnr.
select lifnr name1 from lfa1 into table i_lfa1
where lifnr in s_lifnr.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ';'
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = I_LFA1
CHANGING
I_TAB_CONVERTED_DATA = csv_converted_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
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 FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME =
'C:\Documents and Settings\ps12\Desktop\Test folder\exl.cvs'
FILETYPE = 'DAT'
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 = csv_converted_table
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.
my version is 4.6c -
Does anyone know how to convert the output from the standard report to xml?
Does anyone know how to convert the output from the standard SAP report to xml?
since it a standard report which you cannot modify you can only do the following.
submit report exporting list to memory
then
list from memory and then
use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list . -
How to generate .DTD file from IDOC?
Dear All,
On behalf of my colleague,
How to generate .DTD file from IDOC? I want to generate this file for importing into the WebMethod Tool. Please share relevant content regarding the same.
IDOC name is: BOMMAT01
Let me know if you need any other information.
Regards,
JKHi Jitendra,
When PI receives idoc from ECC it will be in xml format.
Are you telling that you want to convert this xml to .dtd file?
check this for converting xml into .dtd file.
How to convert XML file into DTD or XSD
could you please explain about what you are doing in this requirement?
After importing into WebMethod what is the next action?
do they want to send the file to PI? -
How to generate XML data from Lotus Notes to migrate to SharePoint by passing XML to SharePoint.?
Ramesh SYou could use XMLQuery to return the data from your tables as XML, that would give you a CLOB.
An example using the SCOTT schema might be like this:
SELECT XMLQuery(
'for $i in ora:view("DEPT")/ROW
return <Department dname="{$i/DNAME}">
<Employee>
{for $j in ora:view("EMP")/ROW
where $j/DEPTNO eq $i/DEPTNO
return ($j/ENAME, $j/JOB, $j/SAL)}
</Employee>
</Department>'
RETURNING CONTENT) FROM DUAL;In the docs you can find more information about its use:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10492/xdb_xquery.htm -
How to generate random numbers from 1 to 5
How to generate random numbers from 1 to 5
-1110340081
Solved!
Go to Solution.(You should not mark a post as solution unless it actually contains a solution to the original problem)
Do you want to share your code? Did you test to make sure that all numbers equally probable?
LabVIEW Champion . Do more with less code and in less time . -
How to generate load commands from cap (ijc)
I don't understand how to generate load command from cap (in my case ijc)-file.
This is the example from GPShell, first command of three:
Command --> 1. 80E80000EFC48203DE01001ADECAFFED01020400011048656C6C6F576F726C64303030305F5002001F001A001F00140031006E00180147004E0036000000F1000A0005003503010004003103000107A0000000620101060210A0000000090003FFFFFFFF8910710002000110A0000000090005FFFFFFFF8913000000030014011048656C6C6F576F726C64303030305F410031060018438003020001070200000041004480020081010108810000070147000A40188C0002188D00058700181100FFAD007B0003037B00039210210303038B0004538901AD00058B0006188B00077A05308F0008181D1E1100FF538C00097A0020
questions:
1. Why the length of each command is equal to EF (239 bytes)? Maybe 239 bytes + Mac len + cla, ins, p1,p2, cmdLen. I mean, will the length always be EF?
2. C48203DE - what is it. In the GP221 i found:
'C4' 1-n Load File Data Block Mandatory. So if it is right, is the 8203DE - Load File Data Block? Because real data from my ijc-file starts after DE - 01001...
3. Is all data from the file used for load? (i notised that the last command does'nt used all the rest bytes)So, I will help myself
CAP is zip, but with other filename extension. Inside there are following files:
Applet.cap
Class.cap
ConstantPool.cap
Debug.cap
Descriptor.cap
Directory.cap
Header.cap
Import.cap
Method.cap
RefLocation.cap
StaticField.cap
Order of reading these files for loading by commands 80E8 the following:
loading Header.cap (51 byte)
loading Directory.cap (36 byte)
loading Import.cap (55 byte)
loading Applet.cap (19 byte)
loading Class.cap (19 byte)
loading Method.cap (6779 byte)
loading StaticField.cap (13 byte)
loading ConstantPool.cap (397 byte)
loading RefLocation.cap (663 byte)
loading Descriptor.cap (1005 byte)
loading Debug.cap (12115 byte)
But ijc the file is not cap (zip) and while I didn't understand how to load ijc -
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
Maybe you are looking for
-
Oracle Enterprise Manager - HTTP error: 503 Service Unavailable
Dear all, some time ago I've upgraded Oracle Database 10g up to version 10.2.0.4.0 on a Linux system. Now if I try to connect to HTTP Oracle Enterprise Manager interface (http://(My server name):1158/em/console/aboutApplication) I see this error into
-
Hi, I am using the evaluation version of IAS - trying to get a small sample application running which I delevoped with another application server. Unfortunately I don't really understand how deploying works with IAS (though I spent a lot of time read
-
Serial # template w/linked story on path to easily edit number batches
Hey!!! I am making an indesign template for a customer they need it to serialize their product with a laser engraver and this jig that is already made from this same file. What it is is a series of 56 - 1.1" circles with 3 digit serial # following th
-
Satellite P850/P855 - Sound/Image lag while using media
Hi While I'm listening on spotify or seing a movie, theres a small lag every 10 or 20 minute. I bought this laptop 3 days ago and haven't used it that much. Any idea how I can fix this? Could it be something wrong in the hardware? Per
-
Updated my iPod touch 3rd gen to 5.0.1 from 4.3.2 and now the screen my iPod won't work anymore. I restored it, I backed it up and I held the power and Home buttons for the reboot and still nothing. I've been looking to see if any one had the same pr