XML repot out put printing
hi all i have developed a xml report and it prints out put down wise but i want to print the data across
for example
column1 -- row 1-row2---
column2 -- row 1--row2--
thanks for all in advance,
maddy
Take a look at this: https://blogs.oracle.com/xmlpublisher/entry/across_not_down
Thanks,
Bipuser
Similar Messages
-
Xml report out put is not getting
Dear all
here i am calling the xml reports from oaf page the output is not displayed
how can we achieve this.
Regards
SreekanthHi Hussein,
Thank you for your valuable response.
I have followed the same steps for this customization what they are given in the metalink ID 374165.1.
And one more thing, I am not getting any output if i ran the standard program 'Printed Purchase Order Report (Portrait)' in R12. what it could be the problem.
Regards,
Thirupathi -
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Hi XI Experts,
I am not getting output while creating a scenario of flat file to xml file. I have set the file content conversion parameter correctly...the file which is .txt is picking up but I m not getting the file in the output directory.
CAN ANYONE HELP ME.....PLS!!!
Thanks in advance...Hi,
The follwoing is the mapping str I created and also I have pasted the FCC parameters,
I want to send the .txt file which contains the data as
Sunil,Bangalore
Shetty,Bangalore
( for multiple records..)
Note : I m getting the o/p for single records...
Pls help me.....
Sender Target
Record Record
Row Row
Name string 1..unbounded ---> Name string 1..unbounded
Addr string 1..unbounded ---> Addr string 1..unbounded
Source Dir : c:/send
File Name : send.txt
Document Name : Message type name
Document Namespace : urn:....
Recordset Name : Record
Recordset Structure: Row,*
Row.fieldNames : Name,Addr
Row.fieldSeparator : ,
Row.processConfiguration : FromConfiguration
Row.endSeparator : 'nl'
Thanks in Advance.... -
Out put file is not genrated when calling xml reports from OAF page
Dear all
i am calling xml reports from OAF page
the out put file is not generated
i am writing this code
public int tradingrequest(String quoid, String costoder,int orgid)
try
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName =
"XXCRM"; //Application that contains the concurrent program
String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
String cpDesc =
"Trading Costsheet Report XXCRM"; // concurrent Program description
Number orgid1=new Number(orgid);
// Pass the Arguments using vector
Vector cpArgs = new Vector();
cpArgs.addElement(quoid);
cpArgs.addElement(costoder);
cpArgs.addElement(orgid1.toString());
// Calling the Concurrent Program
int requestId =
cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
System.out.println("Request ID is " + requestId);
return requestId;
} catch (RequestSubmissionException e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
in controller i am writing this code
OAMessageStyledTextBean y =
(OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
OAFormValueBean z =
(OAFormValueBean)webBean.findChildRecursive("costorder");
String quoid = y.getValue(pageContext).toString();
String costorder = z.getValue(pageContext).toString();
System.out.println("The quotation id and costing order are....." + quoid +
" " + costorder);
/*if click on run report button to run the report*/
if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
if (tsflag.equals("Y"))
int requestid = am.servicerequest(quoid, costorder, orgid);
String url =
"OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
requestid;
pageContext.setForwardURL(url, null,
OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
when i call the report from oaf page the request id is coming
when i click on view output i am getting this message
Error
The concurrent request 7335031 did not create an output file.
WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
Regards
Sreekanthjava.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
MY CO code
if("GenerateReport".equals(event))
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
// Hashtable hashtable = new Hashtable(1);
// hashtable.put("TruckBookingRefNum",trucknum);
// System.out.println("test"+trucknum);
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/HTML");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
//Generate the PDF Report.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"LFCUST",
"XXLFCARSUM_TARGET",
"English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
"US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_HTML,
null,
pdfFile);
// hashtable);
System.out.println(" TemplateHelper");
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
System.out.println(" byte"+b);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
pdfFile.flush();
pdfFile.close();
catch(Exception e)
System.out.println(" inside catch");
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(true);
Edited by: user9367919 on May 13, 2010 10:31 AM -
XML PUBLISHER report in Excel out put problem
Hi Experts,
I have developed one XML report which output type is EXCEL in Oracle Application.
I am getting some -ve value in the report so I need to do the trailing sign
Menace for example I got a value -8645 I need to display the value like (8645).
This functionality is working in PDF output but in EXCEL out put it is not working.
Could any body please help me on this..
Its Urgent .
Thanks in Advance.Check this metalink notes, did you got any error..?
Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364547.1
Note: 359875.1 - Cannot View Xml Publisher Report Output In Excel Format
Note: 358296.1 - How To Produce Requests In Formats Of HTML, RTF, and Excel From XML Publisher
Note: 850685.1 - Wrong Output Format In Xml Publisher Output
Note: 727031.1 - XML Publisher Requests Always Get Defaulted to Output Format as PDF Whatever the Template Type is Set To
Note: 337343.1 - Unable to View Excel Output File Created by XML Publisher
Note: 401328.1 - Default Layout Format for XML Publisher Concurrent Request Is Always PDF
Re: XML Publisher Server on EBS 11.5.10.2 -
Print out put of Invoice Verification
How to get print output of Invoice verification? How to get print output of subsequent credit/debit of Invoice?
Hi
You need to create a new Message type copying any relevant message type.(tCode M806). Maintain the processing routines with medium as print out put.
Create the form required for Print out put & assign it to the routine.
Maintain the message schemas , Assign the new Message type to the existing schema.
Now create the conditoin record using transaction MRM1 with th required key combination. Invoicing party & Company code.
Now when ever you create the invcoie with combination the Message will be created.
Execute transaction MR90 for the print out put. If you want the print after saving the invoice , maintain the despatch time as Send immediately when saving the application.
Reward points if useful
Thanks & Regards
Kishore -
Hi
Wats the diff between invidual slip and collective slip in MIGO screen
Wats the std out put type for GR print out in mb90
Vijayhi
individual means single item per printout
collective means all items in GR
o Individual slip (version 1)
In this case, one GR/GI slip is printed out for each item.
o Individual slip with inspection text (version 2)
In this case, one GR/GI slip is printed out for each item. In
addition, a quality inspection text is printed if there is one in
the material master record.
o Collective slip (version 3)
In this case, a collective slip including all the items in a
document is printed.
WE01, WE02 and WE03, are std output types
regards
kunal
Edited by: kunal ingale on Dec 27, 2008 9:50 AM -
Special charactors found in out put file of .xml file in file adapter
Hi ,
Dear all,
I am working on Sender File adapter picking files from the multiple Directories which are specified in a single CC and these files are placed in the different receiver directories in different CC's metained paths of the receivers
The Souce is XML.
When I use the receiver format as .csv,.txt it the out put is as excepted,when i give the receiver format as .XML the output file contents:PK (An invalid character was found in text content. Error processing resource 'file:).
Pl let me know how to tackle thsi situation.
Thanks,
SriniHi
Also try with the following UDF.
public class XmlUtil {
char[] specialCharacters = { '&', '<'>', '\'' };
String[] replacementStrings = { "&", "<">", "'" };
public static String sanitizeText( String text ) {
StringBuffer buffer = new StringBuffer( text );
for( int i = 0; i < buffer.length(); i++ ) {
for( int k = 0; i < specialCharacters.length; k++ ) {
if( buffer.charAt(i) == specialCharacters[k] ) ) {
buffer.replace( i, i + 1, replacementString[k] );
i += replaceString[k].length;
} else if( (int)buffer.charAt(i) > 128 ) {
String replacement = "&#" + (int)buffer.charAt(i) + ";";
buffer.replace( i, i + 1, replacement );
i += replacement.length();
return buffer.toString();
Regards
Abhishek Mahajan -
How to eliminate empty tags in out put XML file in IDOC to File scenario
Hi Experts,
I am doing IDOC to File scenario.
My Out put XML is in to FTP is as below
<ITEMS>
<item>
<A>asdf<A>
<B>GHIJ<B>
</item>
<item>
<A>123<A>
<B>G098<B>
</item>
</ITEMS>
<ITEMS/> -
> Means no data
<ITEMS/> -
> Means no data
<ITEMS>
<item>
<A>yyy<A>
<B>zzz<B>
</item>
<item>
<A>arrr<A>
<B>Ghhh<B>
</item>
</ITEMS>
Now I want to eliminate tages <ITEMS/> in out out put XML file ( PIwhich writes in File server).
1) Is there any setting in communication channel to do this
2) Is there any settings in Mapping proram to suppress parent tag if child tags are not available.
I want output as below .
<ITEMS>
<item>
<A>asdf<A>
<B>GHIJ<B>
</item>
<item>
<A>123<A>
<B>G098<B>
</item>
</ITEMS>
<ITEMS>
<item>
<A>yyy<A>
<B>zzz<B>
</item>
<item>
<A>arrr<A>
<B>Ghhh<B>
</item>
</ITEMS>
Thanks,
Subbuitems->mapwithdefalut(just empty in the value)-> euqals(check with empty constant)->not->createif->target node
and make sure that as Ravi kanth said ...occurance is min is 0 at target side
Regards,
Prasad.
Edited by: PRASAD KONDA on May 21, 2009 1:50 PM -
Purchase requisition Print out put
What is the process or steps to Purchase requisition print out put in according to client requirements
you are the consultant, consult your client how to use SAP more efficient and do not waste enviromental ressources for internal communication.
PR print out is not forseen in SAP.
you can print a list of PRs from ME5A, but there is no form for single requisitions.
of course anything is possible if client spends enough money and and IT has good ABAP knowhow. -
While printing, why does PE11 crop the out put?
While printing, why does PE11 crop the out put?
Did you crop the photo to the same aspect ratio as your print size? If not, then the software will crop it for you.
-
System out put to printer ! need help pl.
how can we out put string to printer. plese show with "hello world " example
thomasMatthew Robinson's Swing book (et al) is an Excellent reference for learning to print.
Follow this link and download Chapter 22, which is dedicated to printing.
http://www.manning.com/Robinson/chapter22.pdf
You can also find source code from the book on the site, which includes examples of Printing, and Print Preview.
It's a good start to printing. -
Alv out put was truncated while giving print
hi,
I have developed one alv report.
while giving out put for print last columns are truncating.
How to handle this?
Thanks in advance,Hi,
There can be many reasons. What is the width of your output list? Many printers takes 255 characters width. Check the printer settings in T-code SPAD to see howmuch width you can print.
Other option could be, print in landscape format.
Thanks,
Vinod. -
Printing all error messages in the out put report
Hi all,
I have MATNR and WERKS data in final internal table now my requirement is ineed to print all the error messages for all the materials (where sy-subrc ne 0) in the out put report. how can i do it for multiple error records will anybody tell me with coding
The Requirement is like bellow:
Take material number(s) (MARC-MATNR) from selection screen then check to see if any plants have that material setup as QM active (MARC-QMATV). If no, then issue message on report.
Thanks,Hi Mythili,
Hope the attached code helps you...
TABLES marc.
TYPE-POOLS: slis.
TYPES : BEGIN OF g_ty_msg,
type LIKE sy-msgty,
msg(120),
END OF g_ty_msg.
TYPES: BEGIN OF g_ty_marc,
matnr TYPE matnr,
werks TYPE werks_d,
qmatv TYPE qmatv,
END OF g_ty_marc.
DATA: g_t_msg TYPE TABLE OF g_ty_msg,
g_r_msg TYPE g_ty_msg.
DATA: g_t_marc TYPE TABLE OF g_ty_marc.
FIELD-SYMBOLS <fs_marc> TYPE g_ty_marc.
SELECT-OPTIONS: s_matnr FOR marc-matnr,
s_werks FOR marc-werks.
START-OF-SELECTION.
SELECT matnr werks qmatv FROM marc
INTO TABLE g_t_marc
WHERE matnr IN s_matnr AND
werks IN s_werks.
IF g_t_marc IS NOT INITIAL.
LOOP AT g_t_marc ASSIGNING <fs_marc>.
IF <fs_marc>-qmatv IS INITIAL.
g_r_msg-type = 'E'.
CONCATENATE <fs_marc>-matnr <fs_marc>-werks
INTO g_r_msg-msg SEPARATED BY space.
APPEND g_r_msg TO g_t_msg.
CLEAR g_r_msg.
ENDIF.
ENDLOOP.
ENDIF.
END-OF-SELECTION.
PERFORM display_log.
*& Form display_log
To display error log as an ALV Popup
FORM display_log .
CONSTANTS: l_c_type(4) TYPE c VALUE 'TYPE',
l_c_msg(3) TYPE c VALUE 'MSG'.
DATA : l_t_fieldcat TYPE TABLE OF slis_fieldcat_alv,
l_r_fieldcat TYPE slis_fieldcat_alv.
DATA : l_f_line TYPE i.
CLEAR l_r_fieldcat.
l_f_line = l_f_line + 1.
l_r_fieldcat-col_pos = l_f_line.
l_r_fieldcat-fieldname = l_c_type.
l_r_fieldcat-seltext_m = 'Type'.
APPEND l_r_fieldcat TO l_t_fieldcat.
CLEAR l_r_fieldcat.
l_f_line = l_f_line + 1.
l_r_fieldcat-col_pos = l_f_line.
l_r_fieldcat-fieldname = l_c_msg.
l_r_fieldcat-seltext_m = 'Message'.
l_r_fieldcat-outputlen = 120.
APPEND l_r_fieldcat TO l_t_fieldcat.
To display the message log as a Popup in the form of ALV List
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Message Log'
i_tabname = 'G_TY_MSG'
it_fieldcat = l_t_fieldcat[]
TABLES
t_outtab = g_t_msg
EXCEPTIONS
program_error = 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.
ENDFORM. " display_log
Best Regards,
Suresh -
WRONG AMOUNT SHOWN ON PRINT OUT PUT
Hello,
A quotation is created ..and saved. In VA23 in initial screen before entering the quotation if we see the print out put through "sales documents=> issue output to", we are seeing a figure for NET PRICE PER QTY, if we enter into the quotation and by going through Extras=>output=> Header, jus seeing 0 for Net price per qty....and moreover the figure its showing is also wrong..
Two questions from my side
1. whats the diff between the two print outs i.e Before and After entering quotation.
2. From where its taking the figure from..and how to change it.
Hoping for a quick reply on this..
Thanks & Regards,Hello,
YVSF_SALES_QUOTATION_R3, this is the form i am able to view in PDF/Smartform tab in NACE transaction...when i am entering the same in SE71 i am getting error that this is not maintained.
One clarification needed is ..why i am seeing the figures before entering the quotation and why no after entering the quotation.
and how to know from which field its taking that value??
Thanks in advance
Regards,
Maybe you are looking for
-
Problem with user exit EXIT_SAPLIEDI_001 for Inbound Idocs in replacing G/L
Hello all, I am currently facing an issue where my IDOC where exit EXIT_SAPLIEDI_001 is not appearing to work properly. Basically I am using the FM that processes the inbound idoc (IDOC_INPUT_INVOIC_FI) to post an accounting document. We needed a sol
-
Quick Time (Audio Preferences) fails to launch with buffer overrun error
It all started a few weeks ago, after installing itunes7.0 for windows, and itunes began to annoy me (indeed drive me mad) with an error message : "an unhandled win32 exception has occured in itunes.exe [3840]" at startup / closing immediately afterw
-
Hi All, We have a scenario using AS2 adapter which was working fine. Now the AS2 Certificate has expired and our partner has given us the new certificate and asked us to upload it. I have changed the Certificate name in all Sender and Receiver agreem
-
How to escape the character in a string?
I have the following code that is causing an error. I'm attempting to use < (less than) character in a string that is part of a dynamic query: <cfif url.age eq 1> <cfset askAge = " < 15"> <cfelseif url.age eq 10> <cfset askAge = " Between 56 and 60">
-
Generating tab canvas pages with Headstart olb fails (CDG-01364)
I'm trying to generate a form (master + details), details on tab canvas pages. When generating with qmsolb65.olb generation fails with error CDG-01364 (Available width on content canvas 2 (-199) less than minimum allowable width (450)). When generati