Need Help on calling report in OAF Page

Hi,
At present i am wokring EAM Module. Here i need to call one report.
In my OAF Page one button is there("The name of the button is *Issue*"). After clicking this button i need to fire one report(The name of the report is "Maintenance Picking Slip Issued Report").
Please help me how to call report? I don't have any idea how to proceed for this.please explain clearly.
Thanks in advance..
Thanks,
Somasekhar.

Somasekhar,
you want to call PLSQL Report or XML Publisher report or you want to submit the concurrent request.
If this XML Publisher report then refer following code for your refrence
public BlobDomain getXMLData(String as[], String s, String s1, String s2, String s3, String s4, String s5,
String s6, String s7, String s8, String s9, String s10)
throws Throwable
int i;
int j;
int k;
int l;
int i1;
int j1;
int k1;
int l1;
int i2;
int j2;
int k2;
OracleCallableStatement oraclecallablestatement;
ARRAY array;
int ai[] = new int[as.length];
i = 0;
j = 0;
k = 0;
l = 0;
i1 = 0;
j1 = 0;
k1 = 0;
l1 = 0;
i2 = 0;
j2 = 0;
k2 = 0;
for(int l2 = 0; l2 < as.length; l2++)
ai[l2] = Integer.parseInt(as[l2]);
if(s.equals("Y"))
i = 1;
if(s1.equals("Y"))
j = 1;
if(s2.equals("Y"))
k = 1;
if(s3.equals("Y"))
l = 1;
if(s4.equals("Y"))
i1 = 1;
if(s5.equals("Y"))
j1 = 1;
if(s6.equals("Y"))
k1 = 1;
if(s7.equals("Y"))
l1 = 1;
if(s8.equals("Y"))
j2 = 1;
if(s10.equals("Y"))
k2 = 1;
i2 = Integer.parseInt(s9);
DBTransaction dbtransaction = getDBTransaction();
String s11 = "BEGIN :1 :=EAM_WorkOrderRep_PVT.getWoReportXML(:2, :3, :4, :5, :6, :7, :8, :9,:10,:11,:12,:13); END;";
oraclecallablestatement = (OracleCallableStatement)dbtransaction.createCallableStatement(s11, 1);
java.sql.Connection connection = oraclecallablestatement.getConnection();
ArrayDescriptor arraydescriptor = ArrayDescriptor.createDescriptor("SYSTEM.EAM_WIPID_TAB_TYPE", connection);
array = new ARRAY(arraydescriptor, connection, ai);
BlobDomain blobdomain;
oraclecallablestatement.registerOutParameter(1, 2005);
oraclecallablestatement.setArray(2, array);
oraclecallablestatement.setInt(3, i);
oraclecallablestatement.setInt(4, j);
oraclecallablestatement.setInt(5, k);
oraclecallablestatement.setInt(6, l);
oraclecallablestatement.setInt(7, k1);
oraclecallablestatement.setInt(8, l1);
oraclecallablestatement.setInt(10, i1);
oraclecallablestatement.setInt(11, j1);
oraclecallablestatement.setInt(9, j2);
oraclecallablestatement.setInt(12, i2);
oraclecallablestatement.setInt(13, k2);
oraclecallablestatement.execute();
CLOB clob = ((OracleCallableStatement)oraclecallablestatement).getCLOB(1);
blobdomain = new BlobDomain();
OutputStream outputstream = blobdomain.getBinaryOutputStream();
long l3 = clob.length();
byte abyte0[] = new byte[(int)l3];
String s12 = clob.getSubString(1L, (int)l3);
abyte0 = s12.getBytes("UTF-8");
outputstream.write(abyte0);
outputstream.close();
return blobdomain;
SQLException sqlexception;
sqlexception;
try
oraclecallablestatement.close();
catch(Exception exception) { }
throw OAException.wrapperException(sqlexception);
public void initSearchCriteria()
log(this, "init search crieria", 1);
getWorkPlanSearchCriteriaVO().executeQuery();
Let me know you got your point or not.
Thanks,
Kumar

Similar Messages

  • Error while calling xml report from oaf page

    hi all
    i am calling xml(pdf) report from oaf page the back end jdeveloper console this error message is coming
    when i am caling report empty out put is coming
    any one help me regarding this issue
    123109_073025194][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [123109_073025194][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_COOKIE_NAME]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [JDBC:processEscapes]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPL_SERVER_ID]:[07910A4CBEF04DE395C782218C44D60710897045366671209174079915214149]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[100]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_COOKIE_VALUE]:[iDQBc8141owULp9woYLCe7wm:S]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_TRANSACTION_ID]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RRRR]
    [123109_073025194][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[20023]
    [123109_073025194][][EXCEPTION] [DEBUG] [LOGIN_ID]:[113493]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_PORT]:[1521]
    [123109_073025194][][EXCEPTION] [DEBUG] [USER_ID]:[1251]
    [123109_073025194][][EXCEPTION] [DEBUG] [DISPLAY_LANGUAGE]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPLICATION_ID]:[crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.server.xxcrmquotationmgmtAM]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [123109_073025194][][EXCEPTION] [DEBUG] [GUEST_USER_PWD]:[GUEST/ORACLE]
    [123109_073025194][][EXCEPTION] [DEBUG] [RESP_ID]:[50722]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_PROFILE_VALIDATION_ENABLED]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [FUNCTION_ID]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_PV_SESSION_MODE]:[115P]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANG]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=data02.utsco.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DEV)))]
    [123109_073025194][][EXCEPTION] [DEBUG] [FNDNAM]:[APPS]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_PROXY_USER]:[null]
    [123109_073025194][][EXCEPTION] [DEBUG] [TWO_TASK]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_DRIVER_TYPE]:[THIN]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_HOST]:[data02.utsco.com]
    [123109_073025194][][EXCEPTION] [DEBUG] [DBC_FILE_PATH]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [123109_073025194][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
    [123109_073025194][][EXCEPTION] [DEBUG] [LANG_CODE]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [123109_073025194][][EXCEPTION] [DEBUG] [USER_NAME]:[CRMUSER]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_NAME]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
    [123109_073025194][][EXCEPTION] [DEBUG] [ORG_ID]:[82]
    [123109_073025194][][EXCEPTION] [DEBUG] [DB_ID]:[DEV]
    [123109_073025194][][EXCEPTION] [DEBUG] [GWYUID]:[APPLSYSPUB/PUB]
    [123109_073025194][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[UNITED ARAB EMIRATES]
    [123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_ID]:[848565270]
    [123109_073025194][][EXCEPTION] [DEBUG] [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
    [123109_073025194][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [ajp.connection.listener.state]:[down]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Client Compiler]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.version]:[10.1.3.3.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.name]:[Windows XP]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\i18n.jar;C:\OAF\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\classes]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.desktop]:[windows]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_05-b05]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.trusted.clients]:[*]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.security.jazn.config]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.name]:[utsguest]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.language]:[en]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[C:\OAF\jdevbin\jdk\jre\bin]
    [123109_073025194][][EXCEPTION] [DEBUG] [oc4j.jms.usePersistenceLockFiles]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_05]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.timezone]:[GMT+04:00]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.net.preferIPv4Stack]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\endorsed]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[Cp1252]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
    [123109_073025194][][EXCEPTION] [DEBUG] [DBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.separator]:[\]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.country]:[US]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.home]:[C:\OAF\jdevbin\jdk\jre]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.version]:[5.1]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [path.separator]:[;]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_05-b05]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.variant]:[]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[oracle.apps.xdo.common.net.protocol|com.evermind.protocol]
    [123109_073025194][][EXCEPTION] [DEBUG] [checkForUpdates]:[adminClientOnly]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
    [123109_073025194][][EXCEPTION] [DEBUG] [RUN_FROM_JDEV]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.INTEROP_MODE]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [awt.toolkit]:[sun.awt.windows.WToolkit]
    [123109_073025194][][EXCEPTION] [DEBUG] [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_TOP]:[C:\OAF\jdevhome\jdev\dbc_files\]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.http.socket.timeout]:[500]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.port]:[5656]
    [123109_073025194][][EXCEPTION] [DEBUG] [JRAD_ELEMENT_LIST_PATH]:[C:\OAF\jdevhome\jdev\myhtml\OA_HTML\jrad\]
    [123109_073025194][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.POA.ORBServerId]:[1000000]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.home]:[C:\Documents and Settings\utsguest]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.home]:[C:\OAF\jdevbin]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.dms.sensors]:[5]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.library.path]:[C:\OAF\jdevbin\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\apps\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
    [123109_073025194][][EXCEPTION] [DEBUG] [XDO_TOP]:[E:\oracle\apps\apps_st\appl\xdo\12.0.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.dont.use.memory.archive]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\OAF\jdevbin\j2ee\home\oc4j-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\OAF\jdevbin\j2ee\home\lib\activation.jar;C:\OAF\jdevbin\j2ee\home\lib\mail.jar;C:\OAF\jdevbin\j2ee\home\lib\persistence.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb30.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb.jar;C:\OAF\jdevbin\j2ee\home\lib\javax77.jar;C:\OAF\jdevbin\j2ee\home\lib\javax88.jar;C:\OAF\jdevbin\j2ee\home\lib\servlet.jar;C:\OAF\jdevbin\j2ee\home\lib\jms.jar;C:\OAF\jdevbin\j2ee\home\lib\jta.jar;C:\OAF\jdevbin\j2ee\home\lib\jacc-api.jar;C:\OAF\jdevbin\j2ee\home\lib\connector.jar;C:\OAF\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\OAF\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\OAF\jdevbin\webservices\lib\jaxr-api.jar;C:\OAF\jdevbin\webservices\lib\jaxrpc-api.jar;C:\OAF\jdevbin\webservices\lib\saaj-api.jar;C:\OAF\jdevbin\webservices\lib\jws-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\OAF\jdevbin\j2ee\home\lib\ojsp.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\OAF\jdevbin\j2ee\home\lib\iiop_support.jar;C:\OAF\jdevbin\j2ee\home\lib\orbbase.jar;C:\OAF\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\OAF\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\OAF\jdevbin\j2ee\home\jaccprovider.jar;C:\OAF\jdevbin\javavm\lib\jasper.zip;C:\OAF\jdevbin\j2ee\home\lib\adminclient.jar;C:\OAF\jdevbin\opmn\lib\optic.jar;C:\OAF\jdevbin\j2ee\home\jacc-spi.jar;C:\OAF\jdevbin\j2ee\home\jazncore.jar;C:\OAF\jdevbin\j2ee\home\jazn.jar;C:\OAF\jdevbin\jlib\ospnego.jar;C:\OAF\jdevbin\jlib\ldapjclnt10.jar;C:\OAF\jdevbin\webservices\lib\wsserver.jar;C:\OAF\jdevbin\webservices\lib\wsif.jar;C:\OAF\jdevbin\webservices\lib\orawsmetadata.jar;C:\OAF\jdevbin\webservices\lib\orajaxr.jar;C:\OAF\jdevbin\jlib\jssl-1_1.jar;C:\OAF\jdevbin\jlib\ojmisc.jar;C:\OAF\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl2.jar;C:\OAF\jdevbin\xqs\lib\xqs-api.jar;C:\OAF\jdevbin\xqs\lib\xds.jar;C:\OAF\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\OAF\jdevbin\j2ee\home\lib\pcl.jar;C:\OAF\jdevbin\j2ee\home\lib\ext;C:\OAF\jdevbin\lib\dmsapp.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\OAF\jdevbin\jlib\jsp-el-api.jar;C:\OAF\jdevbin\jlib\commons-el.jar;C:\OAF\jdevbin\jlib\oracle-el.jar;C:\OAF\jdevbin\jlib\jewt4.jar;C:\OAF\jdevbin\jdev\appslibrt\regexp.jar;C:\OAF\jdevbin\jdev\appslibrt\share.jar;C:\OAF\jdevbin\jdev\appslibrt\uix2.jar;C:\OAF\jdevbin\oaext\mds\lib\mdsrt.jar;C:\OAF\jdevbin\oaext\lib\mdsdt.jar;C:\OAF\jdevbin\oaext\lib\oamdsdt.jar;C:\OAF\jdevbin\javacache\lib\cache.jar;C:\OAF\jdevbin\lib\xschema.jar;C:\OAF\jdevbin\BC4J\lib;C:\OAF\jdevbin\BC4J\lib\adfbinding.jar;C:\OAF\jdevbin\BC4J\lib\adfcm.jar;C:\OAF\jdevbin\BC4J\lib\adfm.jar;C:\OAF\jdevbin\BC4J\lib\adfmweb.jar;C:\OAF\jdevbin\BC4J\lib\adfs-jazn.jar;C:\OAF\jdevbin\BC4J\lib\adfs.jar;C:\OAF\jdevbin\BC4J\lib\adfshare.jar;C:\OAF\jdevbin\BC4J\lib\bc4jct.jar;C:\OAF\jdevbin\BC4J\lib\bc4jctejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmt.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\OAF\jdevbin\BC4J\lib\collections.jar;C:\OAF\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\OAF\jdevbin\jdev\appslibrt\fwk.zip;C:\OAF\jdevbin\jdev\appslibrt\atg.zip;C:\OAF\jdevbin\jdev\appslibrt\collections.zip;C:\OAF\jdevbin\jdev\appslibrt\iasjoc.zip;C:\OAF\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\OAF\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\OAF\jdevbin\jdev\appslibrt\svc.zip;C:\OAF\jdevbin\jdev\appslibrt\pat.zip;C:\OAF\jdevbin\jdev\appslibrt\concurrent.zip;C:\OAF\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\OAF\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\OAF\jdevbin\jdev\appslibrt\pdkjava.jar;C:\OAF\jdevbin\jdev\appslibrt\ptlshare.jar;C:\OAF\jdevbin\jdev\appslibrt\xml.jar;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\OAF\jdevbin\jdev\appslibrt\jazn.jar;C:\OAF\jdevbin\jdev\appslibrt\jazncore.jar;C:\OAF\jdevbin\bibeans\lib\biamlocal.jar;C:\OAF\jdevbin\bibeans\lib\bipres.jar;C:\OAF\jdevbin\bibeans\lib\bicmn.jar;C:\OAF\jdevbin\bibeans\lib\bidatasvr.jar;C:\OAF\jdevbin\bibeans\lib\bidataclt.jar;C:\OAF\jdevbin\bibeans\lib\bidatacmn.jar;C:\OAF\jdevbin\bibeans\lib\biext.jar;C:\OAF\jdevbin\bibeans\lib\bicmn-nls.zip;C:\OAF\jdevbin\bibeans\lib\bipres-nls.zip;C:\OAF\jdevbin\bibeans\lib\bidata-nls.zip;C:\OAF\jdevbin\oaext\config\oac\oacfilter.jar;C:\OAF\jdevbin\j2ee\home\lib\scheduler.jar;C:\OAF\jdevbin\jdev\lib\jdev-rt.jar;C:\OAF\jdevbin\jdev\lib\ojc.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl.jar;C:\OAF\jdevbin\lib\dms.jar;C:\OAF\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\OAF\jdevbin\opmn\lib\ons.jar;C:\OAF\jdevbin\jdbc\lib\ocrs12.jar;C:\OAF\jdevbin\rdbms\jlib\aqapi.jar;C:\OAF\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\OAF\jdevbin\jdbc\lib\orai18n.jar;C:\OAF\jdevbin\lib\xmlparserv2.jar;C:\OAF\jdevbin\lib\xml.jar;C:\OAF\jdevbin\lib\xmlmesg.jar;C:\OAF\jdevbin\lib\xsu12.jar;C:\OAF\jdevbin\lib\xquery.jar;C:\OAF\jdevbin\jlib\osdt_core.jar;C:\OAF\jdevbin\jlib\osdt_cert.jar;C:\OAF\jdevbin\jlib\osdt_xmlsec.jar;C:\OAF\jdevbin\jlib\osdt_wss.jar;C:\OAF\jdevbin\jlib\osdt_saml.jar;C:\OAF\jdevbin\jlib\ojpse.jar;C:\OAF\jdevbin\jlib\oraclepki.jar;C:\OAF\jdevbin\toplink\jlib\toplink.jar;C:\OAF\jdevbin\toplink\jlib\antlr.jar;C:\OAF\jdevbin\toplink\jlib\toplink-essentials.jar;C:\OAF\jdevbin\webservices\lib\wsclient.jar;C:\OAF\jdevbin\webservices\lib\orasaaj.jar;C:\OAF\jdevbin\webservices\lib\xsdlib.jar;C:\OAF\jdevbin\webservices\lib\mdds.jar;C:\OAF\jdevbin\webservices\lib\relaxngDatatype.jar;C:\OAF\jdevbin\webservices\lib\soap.jar;C:\OAF\jdevbin\sqlj\lib\runtime12.jar;C:\OAF\jdevbin\sqlj\lib\translator.jar;C:\OAF\jdevbin\webservices\lib\orawsdl.jar;C:\OAF\jdevbin\j2ee\home\applib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\OAF\jdevbin\lib\dsv2.jar;C:\OAF\jdevbin\j2ee\home\lib\http_client.jar;C:\OAF\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\OAF\jdevhome\jdev\myhtml\OA_HTML;C:\OAF\jdevhome\jdev\myclasses;C:\OAF\jdevbin\jlib\jdev-cm.jar;C:\OAF\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\OAF\jdevbin\BC4J\jlib\datatags.jar;C:\OAF\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\OAF\jdevbin\BC4J\jlib\graphtags.jar;C:\OAF\jdevbin\jdev\appslibrt\wsp.zip;C:\OAF\jdevbin\jdev\appslibrt\diagnostics.jar;C:\OAF\jdevbin\jdev\appslibrt\svctester.jar]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.home]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.application.environment]:[development]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
    [123109_073025194][][EXCEPTION] [DEBUG] [JRAD_XML_PATH]:[C:\OAF\jdevhome\jdev\myclasses\JRADXML;C:\OAF\jdevhome\jdev\myprojects;C:\OAF\jdevbin\jdev\oamdsxml\fwk]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
    [123109_073025194][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[Service Pack 3]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[C:\DOCUME~1\utsguest\LOCALS~1\Temp\]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
    [123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
    [123109_073025194][][EXCEPTION] [DEBUG] [os.arch]:[x86]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\ext]
    [123109_073025194][][EXCEPTION] [DEBUG] [user.dir]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
    [123109_073025194][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
    [123109_073025194][][EXCEPTION] [DEBUG] [line.separator]:[
    [123109_073025194][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
    [123109_073025194][][EXCEPTION] [DEBUG] [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
    [123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.use.ssl]:[false]
    [123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [123109_073025194][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
    [123109_073025194][][EXCEPTION] [DEBUG] [oracle.oc4j.http.socket.sendbuffersize]:[16384]
    [123109_073025194][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
    regard
    sreekanth

    Hi Sreekanth;
    Change your output type from PDF to HTML. Then it will give you clear error message in HTML page after fixing it if you able to see/run report fine in HTML then change your output type back to PDF.
    GsrC

  • Call normal report or xml report in OAF Page

    Hi,
    I'm in need to learn OAF in short time.
    So i need to know how to call a report or xml report in OAF page.
    Please explain me how to do this or give any good website URL.
    thanks in advance,
    SAN

    Hi,
    first of all, you must create a new controller to extend your existing...
    Then, you can create a new button via personalization or at runtime.
    On button pressed of your button (processFormRequest) use the following code to navigate to your report, xml or otherwise:
    com.sun.java.util.collections.HashMap parameters = new HashMap();
    String url = "OA.jsp";
    parameters.put("akRegionCode", "FNDCPREQUESTVIEWPAGE");
    parameters.put("akRegionApplicationId", "0");
    String id = "" + V_Request_ID + "";
    parameters.put("requestMode", "DEFERRED");
    parameters.put("requestId", id);
    parameters.put("progApplShortName","XXCY");
    parameters.put("progShortName","XXCY_CUSTOM_REPORT");
    pageContext.setForwardURL(url,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    parameters,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Regards,
    Costas

  • Getting the error while calling the report from oaf page

    Dear all
    when i am calling the report from oaf page
    if (pageContext.getParameter("PrintPDF") != null)
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue("HttpServletResponse");
    try
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "XXCRM", "XXCRM_EMP",
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    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);
    i am getting the error java.classcastexception at this line
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    regards
    Sreekanth

    check if you have import oracle.cabo.ui.data.DataObject; in your import statement.
    --Prasanna                                                                                                                                                                                               

  • 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
    Sreekanth

    java.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

  • Need help on classical report

    hi friends i need help on classical reports,
    sold-party,
    material
    sales and distrubitutation channel ,division,
    incoming orders,order number,invoice ,credit,
    i need sub totals and final total of invoice and each customer should display in new page .

    Hi
    Use the Tables KNA1,VBAk,VBAP,VBRK and VBRP and design the report
    see the sample report using KNA1,VBAK and VBAP.
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Reward points for useful Answers
    Regards
    Anji

  • I need help. When I open my "page" all my documents were gone. I need those things.

    I need help. When I open my "page" all my documents were gone. I need those things.

    I meant flickering means...when i open combobox and click focus is going out of air window as though combobox is in some another window. once click press mouse down...focus is in combo box but window loses focus and once releases mouse ..window back to focus.  Kinda annoying effect when u try to click on combo box and select.
    Tested with html scout sample app and load any webpage with combobox , window loses focus.
    But any combobox made using EXT it do not flicker because ext handles focus event correctly.
    My windows has set of combo box and user always select different value from combo box if keep losing focus and coming back its annoying as hell.

  • Need help on Oracle Report format

    Hi,
    I need help on Oracle Reports. I am generating a report in excel sheet. I have a column which is 13 digit number (In database it is CHAR datatype). In excel sheet it showing some thing like 9.78381E+12. I want to show complete number like 9783805591331.
    Also sometimes leading zero's are not showing when my column values is something like 0098794859583. I need to show the leading zero's as well in excel without losing them.
    Below are the parameters i am using for the report
    DESFORMAT=SPREADSHEET AND DESTYPE=FILE
    My Oracle 9i developer version.
    Any help on this would be much appreciated.
    Thanks
    Kishore

    An additional quote string ' character with the number field will solve this problem but if u want to display this field in report then it will look ugly
    '''||yourfield from table; check ur regional settings also
    plz mark it helpful correct if it is

  • Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c

    Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c.  I need assistance on connecting these together so I can run a report.  I am not an IT person so if someone could dumb it down it would be great.
    Thanks,
    NBGHealth

    Hello,
    I assume GBS Agency Expert 6.7.6c is some sort of database or data source? If you have an ODBC driver then create or use a System DSN to the database. Then you can create a report using that DSN.
    Otherwise I suggest you contact the makers of GBS Agency Expert 6.7.6c and ask them how to connect to the database.
    Let them know CR is ANSII 92 ODBC 3 compliant.
    Thank you
    Don

  • How can i call the xml report from oaf page

    Dear all
    i have oaf page in that page i need to call xml report from that oaf page
    how is posible.
    Regards
    Sreekanth

    refer this link http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    --Prasanna                                                                                                                                                                                                                       

  • Help Needed Regarding Creating a DFF in OAF page

    Hi ,
    I am trying to create DFF in OAF page but i could not able to create it.
    Here is the through explanation of the Requirement and Error.
    We have migrated recently from 11.5.10 - R12.1.2 in 11i we have the Buyers Form which is a Template.FMB and for that we have attached a DFF
    Name of DFF:PO_AGENTS Resp :PO Tittle Purchasing: Agents and attributes :attribute1 and Attribute2.
    My manager want that same DFF to appear in the OAF page of the Buyers.
    Navigation :Purchasing -> Setup -> Personal -> Buyers.
    I tried creating DFF as per the documents I found online and in the OAF Documentation guide but I am not able to create the DFF.I dont know where I am doing it wrong.
    Help would be highly appreciated.
    Please find the steps below what is given.
    Before you can add a descriptive flexfield to an OA Framework page, you must first setup the descriptive
    flexfield in Oracle Applications. To start, review Chapter 3 ("Planning and Defining Descriptive Flexfields") in
    the Oracle Applications Flexfields Guide Release 11i.
    When you have a clear plan for the descriptive flexfield you wish to set up, refer to the section titled
    "Implementing Descriptive Flexfields" in Chapter 14 ("Flexfields") of the Oracle Applications Developer's Guide
    Release 11i for instructions to the following general steps:
    Step 1: Define descriptive flexfield columns in your database.
    Step 2: Register your descriptive flexfield table with Oracle Application Object Library.
    Step 3: Register your descriptive flexfield using the Descriptive Flexfields Window.
    Next, refer to the Oracle Applications Flexfields Guide Release 11i for instructions to these general steps:
    Step 4: Define your value sets in the Value Sets Window, as described in Chapter 5 ("Values and Value
    Sets").
    Step 5: Define your descriptive flexfield structure using the Descriptive Flexfield Segments Window, as
    described in the "Descriptive Flexfield Segments Window" section of Chapter 3 ("Planning and Defining
    Descriptive Flexfields").
    Recall that the value of a descriptive flexfield context field determines the context of the descriptive flexfield
    and the context-sensitive segments (if any) that are displayed. The section titled "Context Fields and
    Reference Fields" in Chapter 3 ("Planning and Defining Descriptive Flexfields") discusses context fields in
    more detail.
    Note: Reference fields for descriptive flexfields are supported by Forms-based Oracle Applications, but not
    by OA Framework. A developer mode error occurs in JDeveloper if you try to implement this feature in OA
    Framework. Refer to the "Reference Fields" section of Chapter 3 ("Planning and Defining Descriptive
    Flexfields") in the Oracle Applications Flexfields Guide Release 11i for additional information about
    reference fields.
    Step 6: When you are ready to add the descriptive flexfield to an OA Framework page, follow the steps
    outlined in the Declarative Implementation and Runtime Control sections below.
    Declarative Implementation
    The following steps describe how to add a descriptive flexfield item to a OA Framework region:
    Step 1: Define an item of the item style flex in your region.
    Note: You cannot create a flex item directly under a messageComponentLayout region, but you can create a
    messageLayout region under the messageComponentLayout region and add the flex item under the
    messageLayout region.
    Step 2: Set the Read Only property to True or False, depending on whether you want the descriptive flexfield
    to be read only.
    304
    Step 3: Specify a View Instance for your flexfield. The view instance should be the same as the view instance
    (view object) specified for your region. When the view object is defined, it should include all the database
    columns necessary for this descriptive flexfield. You should not change the database column names for this
    flexfield because the OADescriptiveFlexBean uses the same naming convention that the view object
    generation routine uses to find the corresponding attribute names from your view object.
    Note: OA Framework supports multiple descriptive flexfields on the same view object.
    Note: If a flexfield's view object does not return a row, an OAException will not be thrown so that the
    controller's processRequest method can still execute and render the flexfield.
    Step 4: Set the Appl Short Name property to the short name of the application to which the descriptive flexfield
    is registered. (Step 3 of Setting Up a Descriptive Flexfield in Oracle Applications).
    Step 5: Set the Name property to the name of the descriptive flexfield as it was registered.
    Note: This differs from how Key Flexfields are defined by shorthand codes.
    Step 6: Set the Type property to descriptive.
    Step 7: Set the Segment List property as appropriate (see Descriptive Flexfield Segment List).
    Step 8: Finally, you may set the Display Context Field to True or False, depending on whether you want to
    hide or show the context for the descriptive flexfield.

    Hello all OAF GURUS,
    Here is the brief explanation of what I am doing Environment :R12.1.2
    I am creating an item type of FLEX and the values are
    Step 2) Set the Read Only property to True
    step 3 )View Instance : PoAgentsVO
    step 4) Application Short name :PO
    Step 5: Set the Name property - PO_AGENTS name of the DFF
    Step 6: Set the Type property to descriptive
    Step 7: Set the Segment List property as appropriate here I am giving as Attribute1||Attribute2
    Step 8: Finally, set the Display Context Field to True
    after doing all these I am not able to see the DFF i dont know where I am doing a mistake.
    Help would be highly appreciated.
    Thanks & Regards
    Krishna
    Edited by: user12156300 on Jan 29, 2010 7:55 AM

  • Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option

    I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.-
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    In this scenario, I already developed Data Definition (XML) and Template (RTF) for the report and a self service page with 'Generate PDF' button. When the button is clicked the template is getting filled with the data from the database and displaying the PDF output. A dialog box with 'Open/Save/Cancel' appears before the PDF document is shown.
    But my requirement is to avoid this dialog box and Save option so when the button is clicked the document has to be directly sent to the printer.
    Is there anyway to achieve this? Please help as this is very urgent..
    Thanks,
    Naren

    Naveen,
    You need to read the documentation here:
    http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
    All of the information you need is in these:
    Administration and Developer's Guide
    Report Designer's Guide
    JavaDocs
    With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
    For an example that should be very close to what you need to do, see the comments section of this page:
    http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
    Find the comment titled: "Alternative: BlobDomain from data template"
    The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
    Kurz

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • Printing BI Publisher report from OAF Page

    We have a requirement to display a BI Publisher Report on the invoke of a Button/Link from a OAF Page. One way to achieve this without invoking a concurrent program is by following the method described in the link below :-
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    In the current scenario, we already have developed Data Definition (XML) and Template (RTF) for the report and is used too. We want to use the same Data Definition and Template but invoke from a OAF Page. Is there a way to achieve this?
    In the method mentioned in the above link, we would have to create many VO's to generate the XML, since the XML needed in our case is a detailed one, we would need to create many VO's to achieve this. Hence looking out for a way in which we can invoke the Data Definition (XML) already registered in the BI Publisher.
    Any inputs to achieve this would be helpful.
    Regards
    Naveen

    Naveen,
    You need to read the documentation here:
    http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
    All of the information you need is in these:
    Administration and Developer's Guide
    Report Designer's Guide
    JavaDocs
    With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
    For an example that should be very close to what you need to do, see the comments section of this page:
    http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
    Find the comment titled: "Alternative: BlobDomain from data template"
    The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
    Kurz

  • Creating an XML Report from OAF page

    Hi All,
    I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
    I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
    My understanding :
    1. Generate the XML from Conttroller
    2. Load the XML to RTF and map the fields
    3. Register as Data Definition and RTF
    4. Output seen
    MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
    I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
    public void processRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    //(XMLNode)vo.writeXML(4,"")
    try {
    ((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    } catch (IOException e) {
    // TODO
    throw new OAException("The value of VO is " + vo,
    OAException.CONFIRMATION);
    System.out.println(outputStream.toString());
    Generated XML :
    <colorVOEx3Row>
    <UserName>abc</UserName>
    <UserId>33102</UserId>
    <CreatedBy>27241</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>deg</UserName>
    <UserId>33604</UserId>
    <CreatedBy>1135</CreatedBy>
    <Clr1>0</Clr1>
    </colorVOEx3Row>
    <colorVOEx3Row>
    <UserName>****mno</UserName>
    <UserId>33643</UserId>
    <CreatedBy>24587</CreatedBy>
    <Clr1>2</Clr1>
    </colorVOEx3Row>
    </colorVOEx3
    Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
    Hope i am clear.

    Hi Anand,
    Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
    The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
    Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
    Please let me know if i am missing some thing
    Thanks
    Sunny

Maybe you are looking for

  • Webforms - Wrap Text/Word Wrap for Column Headings

    I have some member aliases that are set as my webform's column headings, but they are fairly long. Setting the column width to a custom value that fits most of the text in the heading makes the form very wide and ugly to work with. I don't see any op

  • Network devices not showing up under "shared" in finder bar

    Ok so i have a network that consists of a maxtor nas device, 2 win xp pc's, 1 win7 pc, d-link 524 router, and my macbook pro. I would like to be able to transfer files between my mac and the devices and use the printer attached to my maxtor. My issue

  • DVC PRO and BlackMagic hardware problems...HELP PLEASE!!!

    Hi, We recently started using an Panasonic DVCPRO unit (model# AJ-SD255P). This particular unit does not have ieee or serial digital component audio and video in/out connections. These options are just that "options" and when the deck was ordered we

  • Why is my entire CS3 crashing??

    Hello, For the past week I've tried to use Photoshop, InDesign and Illustrator but almost immediately after launching them, they crash.  I followed everything on the discussion boards including deleting TWAIN files but nothing seems to be fixing the

  • VC issues or problems

    Here are some issues with Visual Composer faced by me : 1.Tool Bar for the Tabke View doesn't come up for WebDynPro app.Its there only for Flash run time. 2.Delete button doesn’t work for rename / edit buttons, you have to rely on Backspace button. 3