Printing the XML Publisher report output from different trays of printer.
I am generating the XML Publisher report and the output is in 5 pages and that is sent to the printer
In the printer there are two trays one tray(tray 1) consists of company watermarked papers and the other tray(tray 2) will be consisting of ordinary papers
I want to print the first two pages of the report on the papers of first tray and the remaining pages to be printed from another tray consisting of ordinary papers.
How can i do this in XML Publisher.
Any response will be appreciated
Thanks
Saurav
Look at the links AJ gave.
Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
All of these things are in the XML Publisher documentation and Javadocs.
Similar Messages
-
XML Publisher Report Output from OAF Page
Hi,
I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
Please see the below code.
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
System.out.println("s1 = " + s1);
String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
System.out.println("s2 = " + s2);
String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
System.out.println("s3 = " + s3);
if(requestId != 0)
try
Number number = new Number(requestId);
callablestatement.registerOutParameter(1, 12);
callablestatement.setInt(2, number.intValue());
callablestatement.setString(3, s2);
callablestatement.setString(4, s1);
callablestatement.execute();
String s4 = callablestatement.getString(1);
System.out.println("Before S4 if statement");
if(s4 == null || s4.equals(""))
// throw new RuntimeException();
System.out.println("URL is null");
System.out.println(" print ouput url - " + s4 );
// throw OAException.wrapperException(exception);
oadbtransactionimpl.putValue("OutputURL", s4);
System.out.println(" print ouput url - " + s4 );
}Look at the links AJ gave.
Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
All of these things are in the XML Publisher documentation and Javadocs. -
Excel output for the xml publisher report when it is [b]scheduled [/b]
How to get the excel output for the xml publisher report when it is scheduled by a apps user? Like what is the user profile option (for the apps user who runs the report) and what are the other things that needs to be taken care of so that only this xml publisher report run by this apps user produces a EXCEL output (When scheduled) ???
Really appreciate it if any one can help me in this regards.
Thanks
MunnaHi Munna,
For eBusiness Suite (apps user) the report output is stored the same way whether executed immediately or scheduled.,To get excel set the options > output format to Excel. Only the user that submitted the report can view it, or you can get the output file from the server. Or you can set the notify option so that a Workflow Notification is sent when the request completes.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
Printing of XML publisher report
Hi All,
This is in regards to the printing of XML publisher report in Oracle E-Business Suite.
we have a XML Publisher report in Oracle EBS,which generates the output in PDF without any issues. But the same output is printed in XML Tags when it goes to the printer.
Can you please throw some light why this is happening only for this particaular report,other XML reports in the system does not have this problem.
Thanks in Advance for your help.I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1 -
Anyone used Code128 Barcode to print the BI Publisher Report?
Hi,
Anyone used Code128 Barcode to print the BI Publisher Report?
MeetuHi,
I have used in some of my reports.
Before developing reports with Barcode, there are few setups to be implemented.
1. Install Barcode fonts.
2. Install Oracle Reports Barcode PLL library.
3. Call below function in your query.
idautomation_uni.Code128(<column_value>, 'TRUE')
For complete information, you can refer below link:
http://www.idautomation.com/fonts/tools/oracle/
Thanks,
Ajay -
How to call the XML Publisher Report thro Standard PO Output for Comm.
Hi
We need to call our custom report(XML Publisher Report) from the standard PO Output for Communication Report.
There is a parameter(Purchase Order Layout) in PO Output for Communication in which we can see no. of standard reports. We want to add our custom report in that list so that when we will run this standard report by selecting our custom report for Purchase Order Layout parameter, we should get the output as per our Custom report.
Since PO Output for Communication is a Java Concurrent Program, we are not able to place our custom report in the list of Purchase Order layout Parameter.
RamWelcome to the forums !
Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
HTH
Srini -
If employee id is the same should not print on the xml publisher report
Hi Dear,
I met with one problem and needs some suggestion on the best approach on it. It is a xml publisher report.
We have multiple rows for the same employee , but for the same employee only the first row needs to print the emplid.
Do we need to write the if statement , how to get the value of the last row emplid ?
For example :
EMPLID EMP_RCD STATE
1001 0 CA
1 TX
Any suggestion is appreciated.
Thanks,
DennisI understand your requirement is as follows:
Requirement:_
The data is this ->
EMPLID COLUMN 1 COLUMN 2 COLUMN 3
EMPLID_01 DATA_01_01 DATA_02_01 DATA_03_01
EMPLID_01 DATA_01_02 DATA_02_02 DATA_03_02
EMPLID_01 DATA_01_03 DATA_02_03 DATA_03_03
EMPLID_02 DATA_01_04 DATA_02_04 DATA_03_04
And you need report in this format:
EMPLID_01 DATA_01_01 DATA_02_01 DATA_03_01
DATA_01_02 DATA_02_02 DATA_03_02
DATA_01_03 DATA_02_03 DATA_03_03
EMPLID_02 DATA_01_03 DATA_02_04 DATA_03_04
Solution:_
If my understanding is correct, then you can make use of variables
at start of template set the variable to 0
*<?xdoxslt:set_variable($_XDOCTX,'PREV_EMPLID',0)?>*
at the end of each data row, reset the variable
*<?xdoxslt:set_variable($_XDOCTX,'PREV_EMPLID',EMPLID)?>*
while printing emplid in that row use IF condition
*<?if:(xdoxslt:get_variable($_XDOCTX, 'PREV_EMPLID'))!=EMPLID?>*
The above If condition will print emplid on the row only when there is change in EMPLID, so effectively printing emplid only on the 1st row of data for each employee id.
Also, you need to ensure that you group by employee id before you print each row.
Let me know if this works for you. -
Hi,
For one of our XML Publisher report, the output is varying from one instance to another. The data output is same.
There are nine records that need to be displayed.
In the first instance, all the nine records are being displayed in the first page.
In the second instance, eight records are being displayed in the first page and the last record is being displayed in the next page.
Please let me know what could be the cause/resolution for this issue.
Thanks,
Krishnabefore all you need to check version of publisher with patches
Liviu Iliescu-Oracle how data source can impact to output in this case ?
OP said
The data output is same. -
XML Publisher report output in RTF format does not display full page
Hi,
We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
Appreciate your valuable inputs on this.
Is this a template issue or any profiles needs to be set.
Thanks
VijayDo you have any header and footer on your template?
If you have any header and footer then try to adjust it as of to display full page.
Thanks
Yasar -
Need to find the root cause of the XML Publisher report erroring out.
Hello All,
After I ran for a Particular Invoice, to have output in XML Publisher Report for Invoice Priting. It got errored out with the below details which i got from the OPP Log file.
From the below information, how do I get exact root cause. Please do the needful.
=======================================================================
[8/6/09 11:16:32 AM] [774712:RT14922832] Executing post-processing actions for request 14922832.
[8/6/09 11:16:32 AM] [774712:RT14922832] Starting XML Publisher post-processing action.
[8/6/09 11:16:32 AM] [774712:RT14922832]
Template code: XXBIORAXINV_PHY
Template app: BIO_AR
Language: en
Territory: 00
Output type: PDF
[8/6/09 11:16:33 AM] [UNEXPECTED] [774712:RT14922832] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
Caused by: oracle.xdo.parser.v2.XMLParseException: Unexpected EOF.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.XMLReader.popXMLReader(XMLReader.java:526)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 17 more
[8/6/09 11:16:33 AM] [774712:RT14922832] Completed post-processing actions for request 14922832.
=======================================================================
Please do the needful. Suggest the steps to get rid of this critical - issue.
Thanks,
AbdulPlease check if Output Post Processor concurrent manager is down/ inactive.
Restart the manager/ get it restarted and test the issue.
System Admin >> Concurrent >> Manager >> Administer -
Problem in XML Publisher Report submission from OAF Pages
Hi,
I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
So my doubt is
Does the Standard Concurrent program used in OAF supports the rtf reports.
Please suggest if any modifications to be done in the Concurrent program
KrishnaKrishna
Modified your code a little bit.Use this
public int submitCPRequest(String shipmentId) {
System.out.println("into submitCPRequest");
OAPageContext pageContext;
OAWebBean webBean;
try {
OAApplicationModule am =pageContext.getApplicationModule(webBean);
OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = new String("XXAPL"); //Application that contains the concurrent program
System.out.println("ApplName"+ applnName);
String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
System.out.println("Concc Name"+ cpName);
String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the
//vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(shipmentId);
System.out.println("Args"+ cpArgs);
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
System.out.println("Req Id"+ requestId);
tx.commit();
return requestId;
catch (RequestSubmissionException e) {
System.out.println("Into Exception");
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
catch(Exception exception)
throw OAException.wrapperException(exception);
}Thanks
AJ -
Changing the seeded rdf report output from text to PDF
Hi All,
I am trying to change the seeded report "Print Requisition Report" output from text to PDF. I changed the output format in the concurrent program definition from text to pdf. The report is now getting displayed in pdf format, but the alignment of the fields are changed. The output is not printing as it was printing while in the text output format. The output looks very sloppy, with uneven fonts and too much of text wrapping.
I tried some formatting and fields are somehow getting displayed but doesnt look in proper format. I am not able to change the font style in the report builder 6i, even if i change it is printing in the same font style with uneven font size. I think reducing the font size might help, but i am unable to change.We are on 11.5.10.2. Please provide your valuable suggestions on how to go about.
Thanks
SarveshHi Hussein,
Thanks for the information. After the adjustments in the layout and the font change the report is now getting displayed without any clipping when clicked on view output. But when the same report is printed some characters on the left and and right side is getting clipped. Please help on how to solve this issue.
Thanks,
Sarvesh -
Showing the XML publisher report in an iframe..
Hi all..
Please help me with this question.
Before: We had a "http page" and we are showing a XML Publisher report which is also in "http" ,in an iframe of the parent page. Previously it was working fine, as both are http.
*** Basically we are generating a URL of the report and showing it in a iframe of the web application****
Now: Recently we configured ssl to the parent page (https), and the report sever is still in "http". Because of this difference, whenever we are calling that report,it is showing a security alert and redirecting to totally wrong page.
Is there any configurations that i can do in the ""report server" to rectify this issue.Please help me with this issue.
Thank uHi Ravi ,
can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
regards
Kay -
Issue with display of Barcode in the report output from different Machines
Hi ,
I have developed a BI Publisher report to print barcode on the output.
I have configured the necessary setup in XML Publisher Responsibility
by following the steps
1) Home --> Administration
a) Create Font Files
Uploaded the ttf file
2. Create Font Mapping Set
"Special Fonts"
3.Created font Mapping under the Mapping set of type "Special Fonts"
4.Provided the Value of Font Mapping Set to ‘FO Processing ‘ under Configuration
Font Mapping Set : Special Fonts
The above configuration works fine and I am able to view the Barcode in the output.
Issue : When I try to run the same concurrent porgram from a different PC ,and if I view the output, I am not able to see the barcode.
Please let me know if anyone has faced issue of such kind.
I guess the above cannot be system specific and please let me know where it is going wrong.
Thanks,
SeshuHello again
I have the font file and I already put it into C:/Windows/Font folder. I just don't have the option to "Create Font Files".
I try to use this code in a xdo.cfg file:
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<fonts>
<font family="Free 3 of 9 Extended" style="normal" weight="normal">
<truetype path="FRE3OF9X.ttf"/>
</font>
</fonts>
</config>
but i just can't make the bar code appear in PDF.
Thanks a lot
Edited by: pedropereira on 22/Fev/2012 12:51
Edited by: pedropereira on 22/Fev/2012 12:57 -
Enable to get the aligned XML Publisher Report output
Hi All,
In BI Publisher report there is a column called short_text which have data like
i) Price Basis : Free Delivery to Tata Power SED
(ii) Delivery time : Within 6 weeks from the date of PO
(iii) Payment : After acceptance within 7 Days
(iv) Freight : Nil
(v) Insurance : Nil
(vi) Packing & Forwarding :Nil
(vii) CST/VAT : @ 5% VAT
(viii) Excise Duty : @ 10.3%
(ix) Service Tax : Nil
(x) Entry Tax : Nil
(xi) Warranty : Nil
But the data in the output is not coming in the aligned manner like above.
Could anyone please help on this??
Regards,
Swapna.Hello Bala,
I wouldn't SUBMIT the same program to get the Spool number. You can achieve the same by [NEW-PAGE PRINT ON|http://help.sap.com/abapdocu_702/en/abapnew-page_print.htm#!ABAP_ADDITION_1@1@] command.
Check the code snippet i've provided below:
DATA: spfli_wa TYPE spfli,
print_parameters TYPE pri_params,
valid_flag TYPE c LENGTH 1.
START-OF-SELECTION.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
IMPORTING
out_parameters = print_parameters
valid = valid_flag
EXCEPTIONS
invalid_print_params = 2
OTHERS = 4.
IF valid_flag = 'X' AND sy-subrc = 0.
* 1. Write the output to the output list(no spool is generated)
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF spfli_wa.
WRITE: / spfli_wa-carrid, spfli_wa-connid.
ENDSELECT.
* 2. Write the output to SAP spool(no list is displayed)
NEW-PAGE PRINT ON PARAMETERS print_parameters NO DIALOG.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF spfli_wa.
WRITE: / spfli_wa-carrid, spfli_wa-connid.
ENDSELECT.
NEW-PAGE PRINT OFF.
MESSAGE i000(zibi027) WITH 'Spool' sy-spono 'is generated!!!'.
"You can use the spool number (SY-SPONO) to email the list output
ENDIF.
Hope this helps.
BR,
Suhas
Maybe you are looking for
-
Here is the situation: A sick friend lies in bed most of the time and has her iPhone 4S (30-pin) charging cable connector within reach. She now also has an iPad 4 (lightning connector). We are looking for a good charging solution which doesn't requir
-
I am making a little animation in Motion which I am going to burn to DVD... What size would be the best? It's a 42" Plasma Screen... So is it 1024 x 576? or 720 x 576? I'm on PAL also...
-
Hi! i would like to know if some of you guys have developed a program where in before you can create a PO for a particular vendor it will prompt (warning not error msg) you that additonal PO quanity has exceeded the total quantites (regardless of UOM
-
A year ago I bought an e-book and I installed it on my old laptop. I would like to transfer my book to a new tablet and to an e-reader but I cannot do it. Could anybody help me?
-
Downloaded "Yes Man"but it has not shown up
I downloaded "Yes Man"the film from itunes however it does not say if it is downloading and there is no purchase history neither:S.