Missing rows when accessing Oracle Lite from Forte?

 

You may find useful these links from the Oracle technology corner >
http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb92/index.html
http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb8/index.html
Regards.

Similar Messages

  • TIME_OUT when accessing Oracle table from SAP using native SQL

    Hi,
    I have a problem in one of my native SQL statement. It takes a long time accessing the table considering that the number of records to be retrieved is only small.
    Something happened on the Oracle system. But, stilll to be confirmed. Looking further at the issue, it seems that when the value in the where clause equated is a literal (meaning the value is not declared in DATA or CONSTANTS in the ABAP Program)
    Example
    1.
    EXEC.
    WHERE FIELD = '1'
    ENDEXEC.
    instead of
    2.
    CONSTANTS: c_1 value '1'.
    EXEC.
    WHERE FIELD = c_1
    ENDEXEC.
    i found that when the way of coding is same as Example 1, a time-out error occurs. But when in Example 2, no issue.
    Can someone explain this?
    Thanks!

    Repetitively asking the same question again and again is against the forum rules.
    Please post an explain of the SQL statement on the remote machine.
    Markus

  • Error when accessing Oracle BPEL console

    The following error message shows up when access oracle BPEL console. Any advice to resolve this error? Thanks a lot in advance!
    ***************************************************************************** Oracle BPEL Server version 10.1.3.1.0 Build: 0 Build time: Mon Oct 09 08:44:49 PDT 2006 Build type: release Source tag: PCBPEL_10.1.3.1.0_GENERIC_061009.0802
    Exception Message:
    [java.lang.NoClassDefFoundError] org/apache/log4j/Category
    Exception Trace:
    java.lang.NoClassDefFoundError: org/apache/log4j/Category at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at java.lang.Class.getConstructor0(Class.java:2640) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.collaxa.thirdparty.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37) at org.collaxa.thirdparty.apache.axis.encoding.TypeMappingImpl.(TypeMappingImpl.java:68) at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTypes(TypeSoapRegistry.java:251) at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegistry.java:79) at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:126) at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:613) at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:474) at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:1111) at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.java:924) at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:111) at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:254) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at com.evermind.server.ThreadState.runAs(ThreadState.java:622) at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52) at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55) at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87) at ServerBean_RemoteProxy_4bin6i8.init(Unknown Source) at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:60) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734) at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134) at com.evermind.server.http.HttpApplication.(HttpApplication.java:738) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414) at com.evermind.server.Application.getHttpApplication(Application.java:545) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909) at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645) at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290) at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270) at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177) at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2450) at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:998) at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131) at java.lang.Thread.run(Thread.java:595)

    ru able to login to the other applications on your App server ... viz.
    Oracle App Server Console, ESB Console, Worklist App ... etc

  • JDBC access to Oracle Lite from midlet on j9 pocket pc

    Hi all,
    Is it possible to access an Oracle Lite database from a MIDLet applicatie
    running on a POCKET with the J9 virtual machine? I want to use MIDP and not the Personal Profile to be able to use the Oracle webservice proxy with the J2ME client SDK.
    I think that I only have to include the appropriate libraries (classes12.jar or olite40.jar) in my project..Am I right?
    Thanks in advance,
    Tom Hofte

    Hi,
    Please do not get me wrong , I am sending this reply to get some help from you about your findings .
    I am s/w developer who is involved in application development for PDA devices
    As an option ,
    I have installed oracle9i database in a machine which has win2k server OS and then
    Installed oracle9iLite mobile server sharing the same <ORACLE_HOME> on the machine.
    I am trying to configure and start the mobile server in the “STANDALONE MODE”
    When I typed webtogo on the cmd line , it did not respond , instead it said “Unrecognized option”
    Then when I tried to execute the weg-to-go executable file in the <ORACLE_HOME>\mobile\server\bin directory ,
    It did not respond .
    Can you please help me out to sort out this problem,
    And also give me some more useful hints to configure the mobile server as a module in oracle9iAS.
    Expecting an early response
    Thanks in advance
    yogaraj

  • Accessing Oracle Database from PocektPC / Palm

    Hi
    We need to develope a mobile application where client can be Palm or PocketPC device (preferably PocketPC)
    and the Server is Oracle 9 on Sun Solaris.
    Some data will be logged into PDA device and stored in the local database. Thereafter it needs to connect to Oracle and INSERT into it.
    We do not want to use any third party sw as far as possible. The client does not have App Server (so web services is not possible)
    If we have to use Palm device what are the solutions?
    If we have to use PocketPC device what are the solutions?
    thanks and regards
    Haresh Gujarathi
    eMantra Technologies.

    Haresh,
    With a max of 10 clients and 3-4 simultaneous syncs, I think your customer can run Lite in standalone mode without the App Server. Before I answer your questions, I'd like to give a brief description of the data model for Lite, which might help.
    When you enter data into your client (PPC, Palm or laptop), the data is put into an Oracle Lite Database, located on the client. When you synchronize with the Oracle Lite Mobile Server, the Lite DB on the client is synchronized with the Lite DB on the Mobile Server. This synchronization is done through http and we provide the infrastructure for this process.
    Once the data is on the Mobile Server, the data on the Oracle Lite DB can be inserted into the Oracle 9i DB through JDBC.
    When you ask about the Wi-fi connection, what exactly are you speaking of? For example, do you mean an 802.11b connection between the Lite client and the Mobile Server, and then an additional 802.11b connection between the Mobile Server and the 9i DB? In both cases, this can be done because it's simply a different mode for the transport of data.
    1. If Lite is not in the picture at all, then you can simply use one of Oracle's connectors (e.g. JDBC) to access the 9i Database.
    2. Yes, .NET is supported in Oracle Lite, releases 5.0.2.8 and higher.
    3. I'll have to do some further research for the answer to this question to see if it's possible to write an app that can connect to the Lite DB on Palm using Mobile VB.
    4. #2 can be done and it might be possible to do #3.
    5. There are some tutorials on OTN. Here is the link:
    http://otn.oracle.com/products/lite/tutorials/index.html
    Please let me know if you have additional questions.
    Cheers,
    Junius

  • Accessing Oracle Database from PcoektPC / Palm

    Hi
    We need to develope a mobile application where client can be Palm or PocketPC device (preferably PocketPC)
    and the Server is Oracle 9 on Sun Solaris.
    SOme data will be logged into PDA device and stored in the local database. Thereafter it needs to connect to Oracle and INSERT into it.
    We do not want to use any third party sw as far as possible. The client does not have App Server (so web services is not possible)
    If we have to use Palm device what are the solutions?
    If we have to use PocketPC device what are the solutions?
    thanks and regards
    Haresh Gujarathi
    eMantra Technologies.

    Haresh,
    With a max of 10 clients and 3-4 simultaneous syncs, I think your customer can run Lite in standalone mode without the App Server. Before I answer your questions, I'd like to give a brief description of the data model for Lite, which might help.
    When you enter data into your client (PPC, Palm or laptop), the data is put into an Oracle Lite Database, located on the client. When you synchronize with the Oracle Lite Mobile Server, the Lite DB on the client is synchronized with the Lite DB on the Mobile Server. This synchronization is done through http and we provide the infrastructure for this process.
    Once the data is on the Mobile Server, the data on the Oracle Lite DB can be inserted into the Oracle 9i DB through JDBC.
    When you ask about the Wi-fi connection, what exactly are you speaking of? For example, do you mean an 802.11b connection between the Lite client and the Mobile Server, and then an additional 802.11b connection between the Mobile Server and the 9i DB? In both cases, this can be done because it's simply a different mode for the transport of data.
    1. If Lite is not in the picture at all, then you can simply use one of Oracle's connectors (e.g. JDBC) to access the 9i Database.
    2. Yes, .NET is supported in Oracle Lite, releases 5.0.2.8 and higher.
    3. I'll have to do some further research for the answer to this question to see if it's possible to write an app that can connect to the Lite DB on Palm using Mobile VB.
    4. #2 can be done and it might be possible to do #3.
    5. There are some tutorials on OTN. Here is the link:
    http://otn.oracle.com/products/lite/tutorials/index.html
    Please let me know if you have additional questions.
    Cheers,
    Junius

  • Error when accessing Tuxedo Services from Weblogic

    Hi,
    I have a stateless session bean deployed on Weblogic 10.3.5 . I have a WTC Server configured to connect to my Tuxedo server.I have all the local and remote AP's set on this server also.
    Now I am trying to access Tuxedo server from a method in my deployed EJB. Method looks like this
    ========================================================================================
    Context ctx;
         TuxedoConnectionFactory tcf;
         TuxedoConnection myTux; // For now we get it via NEW until the Factory works
         TypedString myData;
         Reply myRtn;
         int status;
         System.out.println("getData called, converting " + toConvert);
         try {
         ctx = new InitialContext();
         tcf =
         (TuxedoConnectionFactory) ctx.lookup("TuxedoConnectionFactory");
         } catch (NamingException ne) {
         // Could not get the tuxedo object, throw TPENOENT
         throw new TPException(TPException.TPENOENT,
         "Could not get TuxedoConnectionFactory : " + ne);
         myTux = tcf.getTuxedoConnection();
         myData = new TypedString(toConvert);
         System.out.println("About to call tpcall");
         try {
         myRtn = myTux.tpcall("TOUPPER", myData, 0);
         } catch (TPReplyException tre) {
              System.out.println("tpcall threw TPReplyExcption " + tre);
         throw tre;
         } catch (TPException te) {
              System.out.println("tpcall threw TPException " + te);
         throw te;
         } catch (Exception ee) {
              System.out.println("tpcall threw exception: " + ee);
         throw new TPException(TPException.TPESYSTEM, "Exception: " + ee);
         System.out.println("tpcall successfull!");
         myData = (TypedString) myRtn.getReplyBuffer();
         myTux.tpterm(); // Closing the association with Tuxedo
    ========================================================================================
    I get following error when i call the above method from my client for EJB.
    ========================================================================================
    TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not get TuxedoConnectionFactory : javax.naming.NameNotFoundException: Unable to resolve 'TuxedoConnectionFactory'. Resolved ''; remaining name 'TuxedoConnectionFactory'
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at sfsb3.ReplicableSFSB_6ri454_ReplicableSFSRemoteIntfImpl_1035_WLStub.getData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy0.getData(Unknown Source)
         at test.TestDemoClient.main(TestDemoClient.java:37)
    ========================================================================================
    I need to resolve this quickly please.
    Thanks for any help
    Regards,
    Awais

    I'm not very familiar with Tuxedo unfortunately.
    I recommend that you post here:
    Could not get TuxedoConnectionFactory, setting up AP's incorrectly?
    You could also start with the code here:
    Where to Download weblogic.wtc.jatmi Library/Package
    And follow the instructions here:
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13756.pdf

  • Error display when accessing oracle erp

    am getting error when i try access oracle erp with dns name
    Network Error (tcp_error)
    A communication error occurred: "Connection refused"
    The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
    For assistance, contact your network support team.
    what could be the solution for this issue.

    Either URL is wrong or Services on ERP server are down

  • Access Oracle Lite database on CE

    Hi Eric,
    Thank you for your help, but I have already tried using SLQplus
    and Oracle Lite Navigator, and it works !
    I have no problem accessing the POLite demo database (on my
    windows CE) from my desktop. But the demo program REPSVR shipped
    with Oracle Lite on CE doesn't work at all...
    I've tried the 3 solutions : Disk File, HTTP, and OMA replication
    but the only problem is that the program cannot access to the
    database !
    I'm sure that :
    _HTTP, OMA and Disk File Replication work because I've tested it
    fom a remote location on my network.
    _the connection to the database server (an Oracle 8.0.5) works.
    _The ODBC.INI is also well configured (by default with the DSN
    POLite and the DSN CE pointing to the database POLite).
    So the only reason possible is the connection to the local
    database.
    I was also unable to use the ODBINFO to test POLite...
    I've carefully studied the doc, but no other procedure to test
    the database is described...
    It's very frustrating because I'm just one step before
    succesfully validate Oracle Lite for Windows CE for my company !
    If you have other ideas (other than going right into the code of
    the REPSRV demo !!!), I woul greatly appreciated...
    Thanks.
    Hi Olivier,
    There are a few things you can try. Connecting using ODBC is probably
    the easiest way. You can either use sqlplus or the Oracle Lite Navigator
    tool that comes with 8i Lite. Use a connect string of:
    ODBC:CE
    If you have more problems, you can try posting them on the Oracle 8i Lite
    discussion group, located at
    http://technet.oracle.com
    Hope this helps,
    Eric
    Olivier Davant wrote:
    I am not able to access my demonstration database (of Oracle
    Lite) on
    Windows CE.
    Can anyone tell me a procedure to check where is the bug ?
    Like : 1) check that all files are present
    2) use an ODBC test...
    Thank you.null

    If you are using OLite, you should use the OLite .NET provider:
    http://download-west.oracle.com/docs/cd/B14156_01/doc/B13788/html/toc.htm
    Look at Chapter 6 and 11, which cover ADO.NET data access.

  • Error when installing Oracle Lite for Mobile Field Service Laptop

    Hi,
    I am facing a strange problem when installing Mobile Field Service Laptop agent "Oracle Lite" on my laptop.
    When I run the setup, it asks me username and password, after entering the information, when I proceed, I see setup window which displays below messages
    "Authenticating with server... "
    Please wait. This may take several minutes ...
    Then it hangs for several minutes, approx 5 to 10 mins, and then gives message
    "Could not connect to server: HTTP/1.0 502 Bad Gateway"
    I am not able to proceed with setup.
    But none of my other colleagues are facing this issue, even though the network, proxy settings and java version are same.
    Any idea about this error?
    Regards,
    Mohammed

    I thought polite.ini us required....how r u using MFS without polite.ini?

  • JDBC API ( JSR 169 ) Implementation for accessing oracle lite database

    We are developing an application using IBM J9 (CDC and Foundation Profile) on Pocket PC 2003 environment with SWT as the front end development. We are using Oracle Lite 9i as the Client database.
    We have sucessfully installed Oracle Lite and was able to create tables in the database.. however we could not find the JDBC API (java.sql and javax.sql packages which is JSR 169 JDBC 2.0/3.0) inorder to load the JDBC driver(OLITE40.jar) and access the oracle Lite Database on Pocket PC.
    IBM J9 Micro Environement does not have this support.
    I am wondering if Oracle provides this implementation.
    If not is there a get around.
    the client database is crucial to the application and i would really appreciate an answer to our problem.

    Check out
    http://groups.google.com/groups?hl=en&lr=&threadm=cjgl3g%248hhm%241%40news.boulder.ibm.com&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dibm.software.websphere.studio.device-developer
    I have had the same issue before.
    Regards,
    Ron

  • When accessing favorites imported from IE8, duplicate links appear for those bookmarks on Google new tab page, while things I have bookmarked in Firefox appear normally, as a single link.

    For several months now, I have had this issue. I'm not sure if this is an issue with Google Toolbar or Firefox, but I have uninstalled and re-installed the toolbar several times, and the same thing keeps happening when I access anything Imported from IE8. Anything I originally bookmark in Firefox appears as a single link on the Google new tab page, while my favorites from IE8 appears twice. Everything appears as normal in the Firefox Bookmarks menu. This doesn't seem to affect functionality in any way, but it is rather irritating at times. Is it possible it could be a bug in IE8? I'm curious to see if anyone knows of a solution to this issue. Any help or input is greatly appreciated. Has anyone else had this happen? I have the latest versions of Google Toolbar and Firefox, so far as I'm aware. Thanks, once again, for your time and input.

    Thanks to jscher! With some help from AVG my AVG & Google browser panels now work OK. But I've taken the advice & disabled several extensions including the Disconnect. The browsers are still OK after re-launching them so I keep fingers crossed.
    My original problem was that I had suddenly found a small popup window appearing, over the browser window, that I couldn't get rid of. It contained an advisory to the effect that Windows couldn't find the file popuptransparent[dot]xul. I tried searching for that to see what it was and in the course of doing that I seem to have executed it. Then was when the trouble started.
    I have 3 instances of that file in my computer and would dearly like to get rid of them if they are of no use to me. Any advice there?

  • Accessing Oracle Lite on Palm

    How can I access throught JDBC in a Oracle Lite database running on Palm?

    In my opinion you can only access via ODBC or OKAPI on the Lite-DB on palm.

  • Error in OHW Configuration when accessing OCS help from OCS Admin Page

    Hi.
    Getting "Error in OHW Configuration OHW configuration file error detected. Please contact the system administrator." when i try to access help info from the OCS Adminsitration Page.
    Any feedback on what's wrong is welcomed ...!
    Regards, Luis ...!

    http://dbatoolz.orapros.com/tp/3125.how-to_recreate_corrupted_ohwconfig-xml.html

  • ORA-01002: fetch out of sequence- error when accesing oracle sp from c#

    We have a stored procedure when we exceute it from Sql plus tool ot Toad works fine. But when we call it from C# .ne code gives us the following error.
    ORA-01002: fetch out of sequence ORA-02063: preceding line from SQA1
    Please help.

    with out these lines it works
    (fae_primary_agent_ind = 'X') or
    ((fae_primary_agent_ind is null) and (agn_agt_comp_st_cd = ‘65’)
    This is the stored proc. It works in oracle. It does not work only when we call it from C#.
    CREATE OR REPLACE
    PROCEDURE abc (
    p_report_date IN VARCHAR2,
    p_cur OUT Getadrdata.t_cursor,
    p_run_mode OUT NUMBER
    AS
    v_report_dt DATE;
    backed_out NUMBER := 0;
    previously_paid NUMBER := 0;
    BEGIN
    v_report_dt := TO_DATE (p_report_date, 'DDMMYYYY');
    SELECT COUNT (*)
    INTO backed_out
    FROM r2t_adr_payment a, DUAL
    WHERE a.fap_acctg_dt = v_report_dt
    AND a.fap_status_cd = 'B';
    IF backed_out = 0
    THEN
         SELECT COUNT (*)
    INTO previously_paid
    FROM r2t_adr_payment a, DUAL
    WHERE a.fap_acctg_dt = v_report_dt
    AND a.fap_status_cd = 'P';
    END IF;
    IF backed_out > 0 or previously_paid > 0
    THEN
    p_run_mode := 2;
    OPEN p_cur FOR
    SELECT fae_agent_nbr agent_nbr, fae_ssn_last_4digits ssn_nbr,
    fae_address_ln1 address_line1, fae_address_ln2 address_line2,
    fae_city_nm city, fae_state_cd state, fae_zip_cd zip,
    fae_bus_phone business_phone, fae_supv_region_cd region,
    fae_territory_cd territory, fae_market_cd market,
    -- FAE_AGT_COMP_ST_CD COMP_STAT_CD,
    agn_agt_comp_st_cd comp_stat_cd, fae_emplmt_dt emp_date,
    fae_agent_type_cd status_cd, fae_first_nm first_name,
    fae_last_nm last_name,
    rpt_agent_bonus_class_id p_agent_bonus_class_id
    FROM r2t_adr_epc_agent_info LEFT OUTER JOIN rgt_points
    ON fae_agent_nbr = rpt_agent_nbr
    LEFT OUTER JOIN p1t_tot_agent ON fae_agent_nbr =
    agn_agent_nbr
    INNER JOIN r2t_adr_payment
    ON fae_agent_nbr = fap_primary_agent_nbr
    WHERE FAE_AGENT_TYPE_CD = '41'
    AND rpt_acctg_dt = v_report_dt
    AND v_report_dt BETWEEN agn_start_eff_dt AND agn_end_eff_dt
    AND fap_acctg_dt = v_report_dt
    AND fap_status_cd = 'B'
    UNION ALL
    SELECT fae_agent_nbr agent_nbr, fae_ssn_last_4digits ssn_nbr,
    fae_address_ln1 address_line1, fae_address_ln2 address_line2,
    fae_city_nm city, fae_state_cd state, fae_zip_cd zip,
    fae_bus_phone business_phone, fae_supv_region_cd region,
    fae_territory_cd territory, fae_market_cd market,
    -- FAE_AGT_COMP_ST_CD COMP_STAT_CD,
    agn_agt_comp_st_cd comp_stat_cd, fae_emplmt_dt emp_date,
    fae_agent_type_cd status_cd, fae_first_nm first_name,
    fae_last_nm last_name,
    0 p_agent_bonus_class_id
    FROM r2t_adr_epc_agent_info
    LEFT OUTER JOIN p1t_tot_agent ON fae_agent_nbr =
    agn_agent_nbr
    INNER JOIN r2t_adr_payment
    ON fae_agent_nbr = fap_primary_agent_nbr
    WHERE fae_agent_type_cd = '13'
    AND v_report_dt BETWEEN agn_start_eff_dt AND agn_end_eff_dt
    AND fap_acctg_dt = v_report_dt
    AND fap_status_cd = 'B';
    ELSE
    p_run_mode := 1;
    OPEN p_cur FOR
    SELECT fae_agent_nbr agent_nbr, fae_ssn_last_4digits ssn_nbr,
    fae_address_ln1 address_line1, fae_address_ln2 address_line2,
    fae_city_nm city, fae_state_cd state, fae_zip_cd zip,
    fae_bus_phone business_phone, fae_supv_region_cd region,
    fae_territory_cd territory, fae_market_cd market,
    -- FAE_AGT_COMP_ST_CD COMP_STAT_CD,
    agn_agt_comp_st_cd comp_stat_cd, fae_emplmt_dt emp_date,
    fae_agent_type_cd status_cd, fae_first_nm first_name,
    fae_last_nm last_name,
    rpt_agent_bonus_class_id p_agent_bonus_class_id
    FROM r2t_adr_epc_agent_info LEFT OUTER JOIN rgt_points
    ON fae_agent_nbr = rpt_agent_nbr
    LEFT OUTER JOIN p1t_tot_agent ON fae_agent_nbr =
    agn_agent_nbr
    WHERE rpt_acctg_dt = v_report_dt
    -- Next line for testing of a subset of data - testing purposes only
    -- AND FAE_SUPV_REGION_CD ='002'
    AND FAE_AGENT_TYPE_CD = '41'
    AND (
    (RPT_AGENT_BONUS_CLASS_ID = '3' AND SUBSTR(FAE_EMPLMT_DT,1,2) <> '01' AND ADD_MONTHS(FAE_EMPLMT_DT, 7 ) <= v_report_dt) OR
    (RPT_AGENT_BONUS_CLASS_ID = '3' AND SUBSTR(FAE_EMPLMT_DT,1,2) = '01' AND ADD_MONTHS(FAE_EMPLMT_DT, 6 ) <= v_report_dt) OR
    (RPT_AGENT_BONUS_CLASS_ID = '1')
    AND (
    (fae_primary_agent_ind = 'X') or
    ((fae_primary_agent_ind is null) and (agn_agt_comp_st_cd = ‘65’)
    AND v_report_dt BETWEEN agn_start_eff_dt AND agn_end_eff_dt
    UNION ALL
    SELECT fae_agent_nbr agent_nbr, fae_ssn_last_4digits ssn_nbr,
    fae_address_ln1 address_line1, fae_address_ln2 address_line2,
    fae_city_nm city, fae_state_cd state, fae_zip_cd zip,
    fae_bus_phone business_phone, fae_supv_region_cd region,
    fae_territory_cd territory, fae_market_cd market,
    -- FAE_AGT_COMP_ST_CD COMP_STAT_CD,
    agn_agt_comp_st_cd comp_stat_cd, fae_emplmt_dt emp_date,
    fae_agent_type_cd status_cd, fae_first_nm first_name,
    fae_last_nm last_name, 0 p_agent_bonus_class_id
    FROM r2t_adr_epc_agent_info LEFT OUTER JOIN p1t_tot_agent
    ON fae_agent_nbr = agn_agent_nbr
    WHERE fae_agent_type_cd = '13'
    -- Next line for testing of a subset of data - testing purposes only
    -- AND FAE_SUPV_REGION_CD ='002'
    AND fae_primary_agent_ind = 'X'
    AND v_report_dt BETWEEN agn_start_eff_dt AND agn_end_eff_dt;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    --DBMS_OUTPUT.PUT_LINE ('no data ' || SQLERRM);
    NULL;
    WHEN OTHERS
    THEN
    --DBMS_OUTPUT.PUT_LINE ('error ' || SQLERRM);
    --OPEN p_cur FOR
    -- SELECT NULL
    -- FROM DUAL;
              RAISE;
    END abc;

Maybe you are looking for

  • What settings are reqd. for consuming a webservice in 6.2 - Other questions

    Hi, I have been following the below mentioned blog to create a program to consume a webservice.I am currently on Enterprise version(4.7), release 6.2. I get a communication_failure(sy-subrc = 1) when using "METHOD http_client->receive".Please let me

  • My iMac won't connect to my network drive

    I have a Buffalo network drive on my network.  It is already connected to my PC laptops.  I have installed the necessary software, but it will connect through the finder, but it will not go further than the "share" folder.  I have pictures and iTunes

  • How to export an InDesign newsletter to HTML code

    a prospective client is using InDesign and asked if she could get a newsletter into our software app...in HTML code. any thoughts if this is possible, as i do not use the program. if possible, can you provide info on what to click so i can describe t

  • I'm looking to get an iMac, but...

    my work requires that I use Windows only apps as well as MS Office programs. I've been told that publisher and excel files made on a mac don't open properly on a PC. Are they actually compatible, and is there a way to run Windows only programs withou

  • How to view all available Infotypes for HR ?

    Hi All, I want to view all available infotypes for HR in SAP GUI. What is the transaction code for this? OR What are the steps to carry out? Thanks.