Integrating XML publisher & OAF Page, Generating output in PDF format
Query:SELECT empno,ename,job,mgr,hiredate,comm,deptno FROM emp
Step 3 : Generating the XML for Template Design
Design a OAF Page EmpPG with the Following Code in the Controller EmpCO.
EmpCO :
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("initEmpVO");
am.invokeMethod("getEmpDataXML");
EmpAMImpl :
public void initEmpVO()
EmpVOImpl vo = getEmpVO1();
if(vo == null)
MessageToken errTokens[] = {
new MessageToken("OBJECT_NAME", "EmpVO1")
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
} else
vo.executeQuery();
public void getEmpDataXML()
try {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
((XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
System.out.println(outputStream.toString());
catch(Exception e)
throw new OAException (e.getMessage());
I used the same code & strictly followed all the instructions.
I am able to see only few column names in .xml
http://apps2fusion.com/at/ps/51-ps/260-integrating-xml-publisher-and-oa-framework
Please go thru the above link.
Could anyone help me where I am doing mistake.
Correct me If I am missing anything.
Thanks in Advance.
Thanks
Sruthi
The approach is too problematic...
why dont you follow http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
Hrishikesh
Similar Messages
-
XML publisher report not generating output for huge XML files
Changed Depreciation Projections Report output type to XML.
Defined a Data Definition and a new Data Template (RTF) for this report.
Ran the Depreciation Projection Report to generate the XML output.
Ran the XML Report Publisher report to generate teh PDF/Excel output of the above report.
Output generated for smaller XML files. When XML size is big, the program is running for hours without generating the output.
Teh RTF template is basically a matrix report in which the number of columns in the report is based on the number of periods the report is run for.
The same is not working in the Desktop version also. The system is hanging when i try to view the preview pdf.
The XML file size is approximately 33 MB.
Please let me know if there is any way we can increase the memory size to see the output.
Thanks,
Ram.for publisher use Category: E-Business Suite
-
Need help in exporting data in to Excel by integrating XML publisher in OAF
Hi All,
I am facing issue while exporting data into Excel by integrating XML publisher in OAF. Everything is working fine except that the report is not uploaded in the Excel sheet. Excel sheet is opening empty.
In OC4J server log an getting the below Exception while exporting the data:
13/06/21 14:31:17 in try b4 creating DT
[062113_023118734][][STATEMENT] debug_mode=on
[062113_023118750][][STATEMENT] xml_tag_case=upper
[062113_023118750][][STATEMENT] Inside parameterParser...
[062113_023118750][][STATEMENT] Parameter:p_last_rev Default value:
[062113_023118750][][STATEMENT] Inside dataQueryParser...
[062113_023118750][][STATEMENT] Inside dataStructureParser...
[062113_023118765][][STATEMENT] Group ...report
[062113_023118765][][STATEMENT] Group ...G_DISPUTE
[062113_023118765][][STATEMENT] Template parsing completed...
[062113_023118765][][STATEMENT] Setting Data Template
[062113_023118765][][STATEMENT] Setting JDBC Connection
13/06/21 14:31:18 after datatemplate
[062113_023118765][][STATEMENT] ***Paramter :p_last_rev Value :419947
[062113_023118765][][STATEMENT] Setting Parameters
[062113_023118765][][STATEMENT] Setting Parameters
13/06/21 14:31:18 after set params
13/06/21 14:31:18 after setOutput
[062113_023118781][][STATEMENT] Start process Data
[062113_023118781][][STATEMENT] Process Data ...
[062113_023118781][][STATEMENT] p_last_rev
[062113_023118812][][STATEMENT] Writing Data ...
[062113_023118843][][STATEMENT] Sql Query :Q_DISPUTE: select f.description "Current_Reviewer",
p.trx_date "Original_Transaction_Date",
h.discr_dt "Create_Date",
h.custid "Customer_Number",
h.cusname "Customer_Name",
h.discr_no "Dispute_Number",
p.amount_due_remaining "Remaining_Amount",
h.last_rev,
a.name
from seacds.ar_payment_schedules_all_sv p,
seaar.seaar_ddt_header h,
seacds.fnd_user_nv f,
seacds.ar_collectors_nv a
where p.trx_number = h.discr_no
and f.user_name = h.last_rev
and nvl(a.employee_id, -999) = nvl(f.employee_id, -987)
and a.attribute1 = 'AR'
and p.class != 'PMT'
and h.clsd_flag = 'N'
and p.org_id = 22
and p.amount_due_remaining > 0
and h.last_rev = decode(:p_last_rev,'ALL',last_rev,:p_last_rev)
order by f.description,h.last_rev
[062113_023118843][][STATEMENT] 1: p_last_rev:419947
[062113_023118843][][STATEMENT] 2: p_last_rev:419947
[062113_023119546][][EVENT] Data Generation Completed...
[062113_023119546][][EVENT] Total Data Generation Time 1.0 seconds
13/06/21 14:31:19 after processData
13/06/21 14:31:19 blobDomain Value :<?xml version="1.0" encoding="UTF-8"?>
<IDIS_OPENEDBYUSER_RPT>
<p_last_rev>419947</p_last_rev>
<LIST_G_DISPUTE>
<G_DISPUTE>
<CURRENT_REVIEWER>NUMFON KIMWANGTAGO</CURRENT_REVIEWER>
<ORIGINAL_TRANSACTION_DATE>2010-10-02T00:00:00.000+05:30</ORIGINAL_TRANSACTION_DATE>
<CREATE_DATE>2011-04-20T00:00:00.000+05:30</CREATE_DATE>
<CUSTOMER_NUMBER>45356000</CUSTOMER_NUMBER>
<CUSTOMER_NAME>HEWLETT PACKARD GMBH</CUSTOMER_NAME>
<DISPUTE_NUMBER>1CZ155358</DISPUTE_NUMBER>
<REMAINING_AMOUNT>945</REMAINING_AMOUNT>
</G_DISPUTE>
</LIST_G_DISPUTE>
</IDIS_OPENEDBYUSER_RPT>
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): oa-date-validation: null
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): xdo.TemplateValidation: null
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): template validation is on
[062113_023121046][][STATEMENT] TemplateHelper.runProcessTemplate() called
[062113_023121062][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[062113_023121062][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_COOKIE_NAME]:[dcap1]
[062113_023121062][][EXCEPTION] [DEBUG] [JDBC:processEscapes]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [APPL_SERVER_ID]:[C1ACC302F183004AE0430A0990B773BA35529272341851546077251405344914]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[100]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_SESSION_COOKIE_VALUE]:[v1CUM5yeRe9st6ePp4QEmgJhEW]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_TRANSACTION_ID]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RRRR]
[062113_023121062][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[20084]
[062113_023121062][][EXCEPTION] [DEBUG] [LOGIN_ID]:[4444238]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_PORT]:[1533]
[062113_023121062][][EXCEPTION] [DEBUG] [USER_ID]:[2318]
[062113_023121062][][EXCEPTION] [DEBUG] [DISPLAY_LANGUAGE]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [APPLICATION_ID]:[seagate.oracle.apps.seaar.idispute.report.server.iDisputeOpenedByUserAM]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062113_023121062][][EXCEPTION] [DEBUG] [GUEST_USER_PWD]:[GUEST/ORACLE]
[062113_023121062][][EXCEPTION] [DEBUG] [RESP_ID]:[53350]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_PROFILE_VALIDATION_ENABLED]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [FUNCTION_ID]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_PV_SESSION_MODE]:[115J]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012b.okla.seagate.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012a.okla.seagate.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=dcap1)))]
[062113_023121062][][EXCEPTION] [DEBUG] [FNDNAM]:[APPS]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_PROXY_USER]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [TWO_TASK]:[dcap1_balance]
[062113_023121062][][EXCEPTION] [DEBUG] [APPS_JDBC_DRIVER_TYPE]:[THIN]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_HOST]:[okdevcl1012a.okla.seagate.com]
[062113_023121062][][EXCEPTION] [DEBUG] [DBC_FILE_PATH]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[062113_023121062][][EXCEPTION] [DEBUG] [LANG_CODE]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[062113_023121062][][EXCEPTION] [DEBUG] [USER_NAME]:[505543]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[5]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_NAME]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
[062113_023121062][][EXCEPTION] [DEBUG] [ORG_ID]:[22]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_ID]:[dcap1]
[062113_023121062][][EXCEPTION] [DEBUG] [GWYUID]:[APPLSYSPUB/PUB]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_SESSION_ID]:[1231277285]
[062113_023121062][][EXCEPTION] [DEBUG] [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
[062113_023121062][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[062113_023121062][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
[062113_023121062][][EXCEPTION] [DEBUG] [ajp.connection.listener.state]:[down]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Client Compiler]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.j2ee.container.version]:[10.1.3.3.0]
[062113_023121062][][EXCEPTION] [DEBUG] [os.name]:[Windows XP]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\i18n.jar;C:\JDEV\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\classes]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.desktop]:[windows]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[062113_023121062][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_05-b05]
[062113_023121062][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.trusted.clients]:[*]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.security.jazn.config]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
[062113_023121062][][EXCEPTION] [DEBUG] [user.name]:[mysub]
[062113_023121062][][EXCEPTION] [DEBUG] [user.language]:[en]
[062113_023121062][][EXCEPTION] [DEBUG] [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[C:\JDEV\jdevbin\jdk\jre\bin]
[062113_023121062][][EXCEPTION] [DEBUG] [oc4j.jms.usePersistenceLockFiles]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_05]
[062113_023121062][][EXCEPTION] [DEBUG] [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
[062113_023121062][][EXCEPTION] [DEBUG] [user.timezone]:[Asia/Calcutta]
[062113_023121062][][EXCEPTION] [DEBUG] [java.net.preferIPv4Stack]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[062113_023121062][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
[062113_023121062][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\endorsed]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[Cp1252]
[062113_023121062][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[062113_023121062][][EXCEPTION] [DEBUG] [DBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [file.separator]:[\]
[062113_023121062][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[062113_023121062][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[062113_023121062][][EXCEPTION] [DEBUG] [user.country]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [java.home]:[C:\JDEV\jdevbin\jdk\jre]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[062113_023121062][][EXCEPTION] [DEBUG] [os.version]:[5.1]
[062113_023121062][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[062113_023121062][][EXCEPTION] [DEBUG] [path.separator]:[;]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_05-b05]
[062113_023121062][][EXCEPTION] [DEBUG] [user.variant]:[]
[062113_023121062][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[com.evermind.protocol]
[062113_023121062][][EXCEPTION] [DEBUG] [checkForUpdates]:[adminClientOnly]
[062113_023121062][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
[062113_023121062][][EXCEPTION] [DEBUG] [RUN_FROM_JDEV]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
[062113_023121062][][EXCEPTION] [DEBUG] [com.sun.jts.pi.INTEROP_MODE]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [awt.toolkit]:[sun.awt.windows.WToolkit]
[062113_023121062][][EXCEPTION] [DEBUG] [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_TOP]:[C:\JDEV\jdevhome\jdev\dbc_files\]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.j2ee.http.socket.timeout]:[500]
[062113_023121062][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.port]:[5659]
[062113_023121062][][EXCEPTION] [DEBUG] [JRAD_ELEMENT_LIST_PATH]:[C:\JDEV\jdevhome\jdev\myhtml\OA_HTML\jrad\]
[062113_023121062][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [com.sun.CORBA.POA.ORBServerId]:[1000000]
[062113_023121062][][EXCEPTION] [DEBUG] [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
[062113_023121078][][EXCEPTION] [DEBUG] [user.home]:[C:\Documents and Settings\mysub]
[062113_023121078][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.home]:[C:\JDEV\jdevbin]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.dms.sensors]:[5]
[062113_023121078][][EXCEPTION] [DEBUG] [java.library.path]:[C:\JDEV\jdevbin\jdk\bin;.;C:\WINNT\system32;C:\WINNT;D:\oracle\product\10.1.0\Db_1\bin;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Windows Imaging\;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin\client;D:\oracle\product\10.1.0\Db_1\jlib;]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.dont.use.memory.archive]:[true]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[062113_023121078][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[062113_023121078][][EXCEPTION] [DEBUG] [java.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\JDEV\jdevbin\j2ee\home\oc4j-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\activation.jar;C:\JDEV\jdevbin\j2ee\home\lib\mail.jar;C:\JDEV\jdevbin\j2ee\home\lib\persistence.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb30.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax77.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax88.jar;C:\JDEV\jdevbin\j2ee\home\lib\servlet.jar;C:\JDEV\jdevbin\j2ee\home\lib\jms.jar;C:\JDEV\jdevbin\j2ee\home\lib\jta.jar;C:\JDEV\jdevbin\j2ee\home\lib\jacc-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\connector.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\JDEV\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\JDEV\jdevbin\webservices\lib\jaxr-api.jar;C:\JDEV\jdevbin\webservices\lib\jaxrpc-api.jar;C:\JDEV\jdevbin\webservices\lib\saaj-api.jar;C:\JDEV\jdevbin\webservices\lib\jws-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojsp.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\JDEV\jdevbin\j2ee\home\lib\iiop_support.jar;C:\JDEV\jdevbin\j2ee\home\lib\orbbase.jar;C:\JDEV\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\JDEV\jdevbin\j2ee\home\jaccprovider.jar;C:\JDEV\jdevbin\javavm\lib\jasper.zip;C:\JDEV\jdevbin\j2ee\home\lib\adminclient.jar;C:\JDEV\jdevbin\opmn\lib\optic.jar;C:\JDEV\jdevbin\j2ee\home\jacc-spi.jar;C:\JDEV\jdevbin\j2ee\home\jazncore.jar;C:\JDEV\jdevbin\j2ee\home\jazn.jar;C:\JDEV\jdevbin\jlib\ospnego.jar;C:\JDEV\jdevbin\jlib\ldapjclnt10.jar;C:\JDEV\jdevbin\webservices\lib\wsserver.jar;C:\JDEV\jdevbin\webservices\lib\wsif.jar;C:\JDEV\jdevbin\webservices\lib\orawsmetadata.jar;C:\JDEV\jdevbin\webservices\lib\orajaxr.jar;C:\JDEV\jdevbin\jlib\jssl-1_1.jar;C:\JDEV\jdevbin\jlib\ojmisc.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl2.jar;C:\JDEV\jdevbin\xqs\lib\xqs-api.jar;C:\JDEV\jdevbin\xqs\lib\xds.jar;C:\JDEV\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\JDEV\jdevbin\j2ee\home\lib\pcl.jar;C:\JDEV\jdevbin\j2ee\home\lib\ext;C:\JDEV\jdevbin\lib\dmsapp.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\JDEV\jdevbin\jlib\jsp-el-api.jar;C:\JDEV\jdevbin\jlib\commons-el.jar;C:\JDEV\jdevbin\jlib\oracle-el.jar;C:\JDEV\jdevbin\jlib\jewt4.jar;C:\JDEV\jdevbin\jdev\appslibrt\regexp.jar;C:\JDEV\jdevbin\jdev\appslibrt\share.jar;C:\JDEV\jdevbin\jdev\appslibrt\uix2.jar;C:\JDEV\jdevbin\oaext\mds\lib\mdsrt.jar;C:\JDEV\jdevbin\oaext\lib\mdsdt.jar;C:\JDEV\jdevbin\oaext\lib\oamdsdt.jar;C:\JDEV\jdevbin\javacache\lib\cache.jar;C:\JDEV\jdevbin\lib\xschema.jar;C:\JDEV\jdevbin\BC4J\lib;C:\JDEV\jdevbin\BC4J\lib\adfbinding.jar;C:\JDEV\jdevbin\BC4J\lib\adfcm.jar;C:\JDEV\jdevbin\BC4J\lib\adfm.jar;C:\JDEV\jdevbin\BC4J\lib\adfmweb.jar;C:\JDEV\jdevbin\BC4J\lib\adfs-jazn.jar;C:\JDEV\jdevbin\BC4J\lib\adfs.jar;C:\JDEV\jdevbin\BC4J\lib\adfshare.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jct.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jctejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmt.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\JDEV\jdevbin\BC4J\lib\collections.jar;C:\JDEV\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwk.zip;C:\JDEV\jdevbin\jdev\appslibrt\atg.zip;C:\JDEV\jdevbin\jdev\appslibrt\collections.zip;C:\JDEV\jdevbin\jdev\appslibrt\iasjoc.zip;C:\JDEV\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\JDEV\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\JDEV\jdevbin\jdev\appslibrt\svc.zip;C:\JDEV\jdevbin\jdev\appslibrt\pat.zip;C:\JDEV\jdevbin\jdev\appslibrt\concurrent.zip;C:\JDEV\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\JDEV\jdevbin\jdev\appslibrt\pdkjava.jar;C:\JDEV\jdevbin\jdev\appslibrt\ptlshare.jar;C:\JDEV\jdevbin\jdev\appslibrt\xml.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazn.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazncore.jar;C:\JDEV\jdevbin\bibeans\lib\biamlocal.jar;C:\JDEV\jdevbin\bibeans\lib\bipres.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn.jar;C:\JDEV\jdevbin\bibeans\lib\bidatasvr.jar;C:\JDEV\jdevbin\bibeans\lib\bidataclt.jar;C:\JDEV\jdevbin\bibeans\lib\bidatacmn.jar;C:\JDEV\jdevbin\bibeans\lib\biext.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bipres-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bidata-nls.zip;C:\JDEV\jdevbin\oaext\config\oac\oacfilter.jar;C:\JDEV\jdevbin\j2ee\home\lib\scheduler.jar;C:\JDEV\jdevbin\jdev\lib\jdev-rt.jar;C:\JDEV\jdevbin\jdev\lib\ojc.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl.jar;C:\JDEV\jdevbin\lib\dms.jar;C:\JDEV\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\JDEV\jdevbin\opmn\lib\ons.jar;C:\JDEV\jdevbin\jdbc\lib\ocrs12.jar;C:\JDEV\jdevbin\rdbms\jlib\aqapi.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\JDEV\jdevbin\jdbc\lib\orai18n.jar;C:\JDEV\jdevbin\lib\xmlparserv2.jar;C:\JDEV\jdevbin\lib\xml.jar;C:\JDEV\jdevbin\lib\xmlmesg.jar;C:\JDEV\jdevbin\lib\xsu12.jar;C:\JDEV\jdevbin\lib\xquery.jar;C:\JDEV\jdevbin\jlib\osdt_core.jar;C:\JDEV\jdevbin\jlib\osdt_cert.jar;C:\JDEV\jdevbin\jlib\osdt_xmlsec.jar;C:\JDEV\jdevbin\jlib\osdt_wss.jar;C:\JDEV\jdevbin\jlib\osdt_saml.jar;C:\JDEV\jdevbin\jlib\ojpse.jar;C:\JDEV\jdevbin\jlib\oraclepki.jar;C:\JDEV\jdevbin\toplink\jlib\toplink.jar;C:\JDEV\jdevbin\toplink\jlib\antlr.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-essentials.jar;C:\JDEV\jdevbin\webservices\lib\wsclient.jar;C:\JDEV\jdevbin\webservices\lib\orasaaj.jar;C:\JDEV\jdevbin\webservices\lib\xsdlib.jar;C:\JDEV\jdevbin\webservices\lib\mdds.jar;C:\JDEV\jdevbin\webservices\lib\relaxngDatatype.jar;C:\JDEV\jdevbin\webservices\lib\soap.jar;C:\JDEV\jdevbin\sqlj\lib\runtime12.jar;C:\JDEV\jdevbin\sqlj\lib\translator.jar;C:\JDEV\jdevbin\webservices\lib\orawsdl.jar;C:\JDEV\jdevbin\j2ee\home\applib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\JDEV\jdevbin\lib\dsv2.jar;C:\JDEV\jdevbin\j2ee\home\lib\http_client.jar;C:\JDEV\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\JDEV\jdevhome\jdev\myhtml\OA_HTML;C:\JDEV\jdevhome\jdev\myclasses;C:\JDEV\jdevbin\jlib\jdev-cm.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\JDEV\jdevbin\BC4J\jlib\datatags.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\JDEV\jdevbin\BC4J\jlib\graphtags.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsp.zip;C:\JDEV\jdevbin\jdev\appslibrt\diagnostics.jar;C:\JDEV\jdevbin\jdev\appslibrt\svctester.jar]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.home]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.application.environment]:[development]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[062113_023121078][][EXCEPTION] [DEBUG] [JRAD_XML_PATH]:[C:\JDEV\jdevhome\jdev\myclasses\JRADXML;C:\JDEV\jdevhome\jdev\myprojects;C:\JDEV\jdevbin\jdev\oamdsxml\fwk]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
[062113_023121078][][EXCEPTION] [DEBUG] [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[062113_023121078][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
[062113_023121078][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[Service Pack 3]
[062113_023121078][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[C:\DOCUME~1\mysub\Local Settings\Temp\]
[062113_023121078][][EXCEPTION] [DEBUG] [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
[062113_023121078][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
[062113_023121078][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
[062113_023121078][][EXCEPTION] [DEBUG] [os.arch]:[x86]
[062113_023121078][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
[062113_023121078][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\ext]
[062113_023121078][][EXCEPTION] [DEBUG] [user.dir]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
[062113_023121078][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
[062113_023121078][][EXCEPTION] [DEBUG] [line.separator]:[
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
[062113_023121078][][EXCEPTION] [DEBUG] [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
[062113_023121078][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.use.ssl]:[false]
[062113_023121078][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[062113_023121078][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
[062113_023121078][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
13/06/21 14:31:33 After exporting into excel sheet
Here is my code which i have used to integrate the XML publisher:
Code in AMImpl:
public BlobDomain getXMLData(String user) {
System.out.println("*** in getXMLData *** ");
this.getOADBTransaction().writeDiagnostics(this, "*** in getXMLData ***",1);
BlobDomain blobDomain = new BlobDomain();
String dataDefCode = null;
dataDefCode ="IDIS_OPENEDBYUSER_RPT";
String dataDefApp = "SEAAR";
try {
System.out.println("in try b4 creating DT");
this.getOADBTransaction().writeDiagnostics(this, "*** in try b4 creating DT ***",1);
DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(),
dataDefApp,
dataDefCode);
this.getOADBTransaction().writeDiagnostics(this, "*** after datatemplate ***",1);
System.out.println("after datatemplate");
Hashtable parameters = new Hashtable();
parameters.put("p_last_rev", user);
datatemplate.setParameters(parameters);
System.out.println("after set params");
this.getOADBTransaction().writeDiagnostics(this, "*** after set params ***",1);
datatemplate.setOutput(blobDomain.getOutputStream());
System.out.println("after setOutput");
this.getOADBTransaction().writeDiagnostics(this, "*** after setOutput***",1);
datatemplate.processData();
System.out.println("after processData" );
this.getOADBTransaction().writeDiagnostics(this, "*** after processData***",1);
System.out.println("blobDomain Value :"+blobDomain);
this.getOADBTransaction().writeDiagnostics(this,"blobDomain :: "+blobDomain,1 );
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Code in Controller file:
if (pageContext.getParameter("Export") != null)
BlobDomain amBlobDomain ;
String user = (String)pageContext.getTransientSessionValue("userName");
System.out.println("User name before passing parameter to report"+user);
Serializable[] param = { user};
amBlobDomain = (BlobDomain)am.invokeMethod("getXMLData", param);
Properties pdfproperties = new Properties();
try
DocumentHelper.exportDocument(pageContext,
"SEAAR",
"IDISPUTE_OPENEDBYUSER_RPT_TP",
"en",
"US",
amBlobDomain.getInputStream(),
"EXCEL",
pdfproperties);
catch(Exception e) {
System.out.println("Exception found in Document Helper");
throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
System.out.println("After exporting into excel sheet");
Thanks and Regards,
MyvizhiHi Peddi,
I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Thanks and Regards,
Myvizhi -
XML Publisher Template Re-Generator
What does the XML Publisher Template Re-Generator actually do? I'm having an issue where the AP Check layout is fine when I test locally on my pc, but when i run the check in the Oracle app, the check prints on the next page.
Hi,
It's for use when you upgrade your version of XMLP. When you load an rtf template via XMLP Admin it stores your original file and also converts it to XSL-FO. When you upgrade XMLP then the functionality changes and the XSL-FO it generates changes.
The re-generate process rebuilds the XSL-FO for all the templates loaded into the database.
I think I read somewhere that in 5.6.3 this is run as part of the patching process.
Regards
Paul -
Reg:Integrating XML Publisher and OA Framework
I am trying to Integrating XML Publisher and OA Framework, i got
C:\Framework\Jdeveloper\jdevhome\jdev\myprojects\xxxmlrep\oracle\apps\ak\webui\EmpCO.java
Error(84,7): class OADBTransactionImpl not found in class xxxmlrep.oracle.apps.ak.webui.EmpCO
Error(87,7): class OADBTransactionImpl not found in class xxxmlrep.oracle.apps.ak.webui.EmpCO
Error(88,7): class OADBTransactionImpl not found in class xxxmlrep.oracle.apps.ak.webui.EmpCO
Error(90,5): variable TemplateHelper not found in class xxxmlrep.oracle.apps.ak.webui.EmpCO
Error(83,5): variable TemplateHelper not found in class xxxmlrep.oracle.apps.ak.webui.EmpCO
source code is
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package xxxmlrep.oracle.apps.ak.webui;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.cabo.ui.data.DataObject;
import oracle.xml.parser.v2.XMLNode;
* Controller for ...
public class EmpCO extends OAControllerImpl
private static final int DEPTH = 4;
private static final int APP_ID = 20035;
private static final String APP_NAME = "AK";
private static final String TEMPLATE_CODE = "XXEMP_JDEV";
private static final int BUFFER_SIZE = 32000;
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("initEmpVO");
am.invokeMethod("getEmpDataXML");
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
String event = pageContext.getParameter("event");
if("GenerateReport".equals(event))
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
ServletOutputStream os = response.getOutputStream();
String contentDisposition = "attachment;filename=EmpReport.pdf";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/pdf");
XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpAM");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
APP_NAME,
TEMPLATE_CODE,
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF,
null,
pdfFile);
byte[] b = pdfFile.toByteArray();
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
catch(Exception e)
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(false);
thank in advance
}User,
This code snippet may help:
while (myQuestionIsAboutOAFramework)
user.askQuestionInProperForum(Constants.OAFrameworkForum);
public class Constants
public static string OAFrameworkForum = "http://forums.oracle.com/forums/forum.jspa?forumID=210";
}John -
Every time I create a button it moves to the centre of the page when outputing to pdf
every time I create a button it moves to the centre of the page when outputting to pdf
I have done a load of tests and it does it every time
I imported a jpg image as my button. Converted it to a button by Interactive/convert button. Even before I setup all the options in the buttons panel it moves. So for instance I have the button in the bottom RHS in Indesign. Then make a interactive pdf and its in the centre of the page. I have even converted the image back to an object and it goes back to in proper position.
I have tried this in several documents, starting from scratch and using different images and also drawn a button. I have also used the buttons from the button library
In previous version of Indesign I have never uncounted this problem.
2 weeks later to above post
Can anyone help this has not be resolved and I have several annual reports to get out urgently. Its happening to all documents!every time I create a button it moves to the centre of the page when outputting to pdf
I have done a load of tests and it does it every time
I imported a jpg image as my button. Converted it to a button by Interactive/convert button. Even before I setup all the options in the buttons panel it moves. So for instance I have the button in the bottom RHS in Indesign. Then make a interactive pdf and its in the centre of the page. I have even converted the image back to an object and it goes back to in proper position.
I have tried this in several documents, starting from scratch and using different images and also drawn a button. I have also used the buttons from the button library
In previous version of Indesign I have never uncounted this problem.
2 weeks later to above post
Can anyone help this has not be resolved and I have several annual reports to get out urgently. Its happening to all documents! -
Displaying output in PDF format
Hi
I have a requirement .
I have a button in a page , when i click on the button output should be opened in PDF format.
In a Standard Page i have 4 radio buttons , initially i can select only one radio button on the standard page, but my requirement is i have to select 2 radio buttons as an option .
ThanksHi ,
For PDF output refer this link
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
Keerthi -
Convert internal table output to pdf format
Hi all,
my query is given below.
<removed by moderator>
i need to convert internal table output to Pdf. format
the Pdf file generating.
when i am opening the pdf. file shows error like there was an error opening this document . this file cannot be opened because it has no pages.
please help me.
thanks in advance.
Regards,
Karthikeyan Krishan
Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters each to preserve formatting.
Edited by: Thomas Zloch on Mar 30, 2011 12:57 PMHi,
Check this link where I send data in RAW format as attachment using cl_bcs.
Open PDF File stored in AL11 and send by email using CL_BCS.
Regards,
Ernesto -
Display ALV list output in PDF format
Hi All,
My requirement is :
I am displaying output using Function module 'REUSE_ALV_LIST_DISPLAY'. then i will click one button which placed in application tool bar say 'Download to PDF' when i click this button it will display the output in PDF format. I tried with exsting threads but i unable to get suitable solution.Anybody can send me the sample code please.
Thanks in advance.
Maheedharplease go throuh the below procedure and sample Code, this might help you.
Procedure
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
Here is a sample code of program to perform the function.
SAMPLE CODE
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
variant = ' '
direct_call = ' '
importing fm_name = fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
calling the generated function module
call function fm_name
exporting
archive_index =
archive_parameters =
control_parameters = cparam
mail_appl_obj =
mail_recipient =
mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
document_output_info =
job_output_info = tab_otf_data
job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc 0.
error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final] = tab_otf_data-otfdata[.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 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.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = FILE_NAME
path = FILE_PATH
fullpath = FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 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.
************downloading the converted PDF data to your local PC*******
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = FULL_PATH
filetype = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc 0.
ENDIF.
Check this link it will help you.
https://forums.sdn.sap.com/click.jspa?searchID=5950895&messageID=2375150
Reward points if useful. -
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 -
Could not display output in PDF format from a RDF file
Hi all,
I'm calling a report file (.RDF) from the browser using RWCGI.EXE, and specified the output in PDF format, but it always asking me to download the active-X for the PDF file generated by the report. I have Adobe Acrobat Reader installed on my machine, what could be the problem?
thanks in advance.I had the same problem.
As a quick fix, what I enventually did, if you are using WebDB and CGI, is to create an alias in the cgicmd.dat file.
It worked after.
Example of line:
===============
web41pdf: report=web_41.rdf server=Rep60_Z11734 userid=DEMO6I/DEMO6I@PERSOEM destype=cache desformat=PDF tolerance=1440
Then you call the URL http://<web site>/rw60cgi?web41pdf
Yet I would be glad to understand why I also get this message.
Philippe Dalmas. -
Converting sap script output into pdf format?
Hi all,
I have modified the standard purchase order script form MEDRUCK . Now i need to generate the output into pdf format.
This is not only limited to spool requests , But also when the user creates the purchase order and clicks on print or print preview the output should be in pdf format.
Please help on where and what code has to be written for this requirement?
Thanks,
Aravind.Hi
I don't know which is your release, but I don't think it's possible to create a preview in pdf format, but u can create a pdf file instead of the spool and then open it automatically, this is an example:
- A) Open form
IF P_PDF = 'X'.
XDEVICE = 'PRINTER'.
* Get OTF
ITCPO-TDGETOTF = 'X'.
ENDIF.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = XDEVICE
DIALOG = 'X'
FORM = 'ZFI_CL_EC_MOVI'
OPTIONS = ITCPO
MAIL_SENDER = LVS_SENDER
MAIL_RECIPIENT = LVS_RECIPIENT
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
OTHERS = 11.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
B) Close FORM
CALL FUNCTION 'CLOSE_FORM'
TABLES
OTFDATA = T_OTF
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
ELSE.
PERFORM DOWNLOAD_PDF.
ENDIF.
C) Create PDF and open it:
FORM DOWNLOAD_PDF.
DATA: BIN_FILESIZE TYPE I.
DATA: T_FILE_PDF TYPE STANDARD TABLE OF TLINE,
DOCTAB_ARCHIVE TYPE STANDARD TABLE OF DOCS.
DATA: FILE_TABLE TYPE FILETABLE WITH HEADER LINE.
DATA: RC TYPE I,
USER_ACTION TYPE I.
DATA: TITLE TYPE STRING,
FILENAME TYPE STRING.
CHECK P_PDF = 'X'.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = BIN_FILESIZE
TABLES
OTF = T_OTF
DOCTAB_ARCHIVE = DOCTAB_ARCHIVE
LINES = T_FILE_PDF
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
EXIT.
ENDIF.
TITLE = 'Creare File'(T02).
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = TITLE
DEFAULT_EXTENSION = '*.pdf'
CHANGING
FILE_TABLE = FILE_TABLE[]
RC = RC
USER_ACTION = USER_ACTION
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
EXIT.
ELSE.
IF USER_ACTION = 9. EXIT. ENDIF.
IF RC = 1.
READ TABLE FILE_TABLE INDEX 1.
ENDIF.
ENDIF.
MOVE FILE_TABLE-FILENAME TO FILENAME.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
FILENAME = FILENAME
FILETYPE = 'BIN'
CHANGING
DATA_TAB = T_FILE_PDF
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
EXIT.
ELSE.
MESSAGE S208(00) WITH 'File creato con successo'(S01).
ENDIF.
CHECK P_OPEN = 'X'.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = FILE_TABLE-FILENAME
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
ENDIF.
ENDFORM. " DOWNLOAD_PDF
Max -
Sandard Smart Form output into PDF format.
Hi to all,
Any one please guide me, how to convert sandard Smart Form output into PDF format.
Regards,
Thaneshhi thanesh,
the below code may help you.
data: FM_NAME TYPE RS38L_FNAM.
DATA: W_BIN_FILESIZE TYPE I,
T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
T_PDF_TAB TYPE TLINE OCCURS 0 WITH HEADER LINE,
W_FILESIZE TYPE I,
WA_CTRLOP TYPE SSFCTRLOP,
WA_OUTOPT TYPE SSFCOMPOP,
T_OTFDATA TYPE SSFCRESCL.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = <ur form name>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
WA_CTRLOP-GETOTF = 'X'.
WA_CTRLOP-NO_DIALOG = 'X'.
WA_OUTOPT-TDNOPREV = 'X'.
call function <function module generated for ur form>
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = WA_CTRLOP
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = WA_OUTOPT
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = T_OTFDATA
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
T_OTF[] = T_OTFDATA-OTFDATA[].
call function 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
IMPORTING
BIN_FILESIZE = W_BIN_FILESIZE
BIN_FILE =
tables
OTF = T_OTF
LINES = T_PDF_TAB
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
call function 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_BIN_FILESIZE
CODEPAGE = ' '
FILENAME = 'D:\TEST11.PDF'
FILETYPE = 'BIN'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH = W_FILESIZE
tables
data_tab = T_PDF_TAB
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
NO_AUTHORITY = 10
OTHERS = 11
if sy-subrc = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
WRITE: / 'SUCCESSFULLY CONVERTED'.
endif. -
Using Reports6i to Publish Reports On The Web As PDF Format - Arabic Data
Hi everybody.
I am using Reports6i to create some reports and publish them on the web as PDF format for security reason. The problem is that the opened document displays Arabic letters in encrypted way, I tried to use Acrobat Reader version 5 but it is still not working. Then I try to publish reports as HTML document, In this way, the arabic letters look fine but any vertical lines I designed in the reports did not show up, furthermore, the user can edit HTML document, change the data, then print the report, so using HTML as an output is not secure.
Any suggestions?Hello ,
You can try out the following
1. Click on the Report name and bring up the property palette to show all of the properties for the whole report.
2. Under Report Escapes->Before Form Value, change form method from POST to GET .
Thanks
The Oracle Reports Team -
Generating Smartform in PDF Format through SRM portal link
Hi All,
Please can one tell me generating Smartform in PDF format while we click on Output-format while displaying Purchase order.
Is there any configuration needed or is there any process to generate smartform in SRM portal link.
Thanks,
Sri LakshmiHi Pradeep,
Thanks for your reply.
I dont want any BADI or Method.
I want to know, when we display or create Purchase Order through SRM link- there is an option Output format where the details of PO will be generated through Smartform in PDF format.
I want to know the procedure how that PDF format is generating.
Regards,
Sri Lakshmi
Maybe you are looking for
-
Enterprise manager is not able to connect to database instance
Hi I am having a problem with Oracle EM. I would appreciate very much if anyone can help me. I installed Oracle on XP which runs on virtual pc on XP as well. Everything is fine, I can connect to database with sqlplus, and there were no errors during
-
How to go from 150$ per month to 750$ per month in BizSpark?
Hey, I apologize if this is in a wrong forum category but I am new to this. As the title explains I just want to know what steps should I do to achieve 750$ per month. I asked some of my friends about it and they told me that it is by doing a multipl
-
Greetings, I've had a couple button issues causing problems for my online presentations. First one, during a quiz, when an answer is entered the "Correct" box appears when clicking "submite and then disappears immediately. Instead of being able to cl
-
JSP newbie: local Sun Java System Application Server installation
I am new to JSP and I am preparing to get the software I need. JDK 6 and Netbeans 6 are installed. Now I need an application server. Since the Sun tutorials use the "Sun Java System Application Server" I have choosen this one (version 9.1). As far as
-
InfoView Timeout Crystal Report Server 2008 Business Objects 3.1
After two days of digging, poking, prodding and fumbling around in the dark I finally found a method (one that actually works!) to change the timeout period for InfoView. Venkat Patnaik (second message) posted an excellent procedure in a place that