Error when throwing OARowValException in ValidateEntity of EO

Hei, i have a problem with OARowValException thrown from ValidateEntity.
Here is the code:
  protected void validateEntity()
    super.validateEntity();
   if (getTilDato() !=null)
       long fraDato = getFraDato().dateValue().getTime();
       long tilDato = getTilDato().dateValue().getTime();
       if (tilDato < fraDato)
           throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,
               getEntityDef().getFullName(),  // EO name
               getPrimaryKey(),  // EO PK
               "XXET",  // Message product short name
               "XXET_TP210_DATE_CHECK"); // Message name
This is just a simple check on two dates, the to date must be greater then the from date.
When i enter a to date less than the from date in the page and press apply, the following error is thrown:
Database error: oracle.apps.fnd.framework.OARowValException: Application: XXET, Message Name: XXET_TP210_DATE_CHECK. at svv.oracle.apps.xxet.tp210.schema.server.FullmaktEOImpl.validateEntity(FullmaktEOImpl.java:124) at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1443) at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3768) at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1750) at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1995) at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:696) at svv.oracle.apps.xxet.tp210.fullmakt.server.FullmaktAMImpl.apply(FullmaktAMImpl.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:785) at svv.oracle.apps.xxet.tp210.fullmakt.webui.FullmaktInsCO.processFormRequest(FullmaktInsCO.java:114) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
When i make a change in a different text input field in the page and press Apply again, the correct message is displayed:
Error
Row 1 Error - Til dato must be greater than Fra dato
Press Apply one more time without making further changes the error displays again.
This is very strange behaviour, any idea someone ?
Regards
Steinar

Hi, and thanks!
It's the throw statment from above:
throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT, 
               getEntityDef().getFullName(),  // EO name
               getPrimaryKey(),  // EO PK
               "XXET",  // Message product short name
               "XXET_TP210_DATE_CHECK"); // Message name
Regards
Steinar

Similar Messages

  • SSRS dataset throws error when another stored procedure is called inside dataset stored procedure

    Hello;
    I am using Report Build 3.0, I have a simple report which gets data using dataset which is created from a Stored Procedure. I have another stored procedure which updates the data in the table which is used for the report. I want to get the live data on report everytime
    the report is run so that I call that stored procedure (sp_updatedata) inside my report dataset stored procedure and here where my report fails as it throws error while creating dataset.
    Here is sample:
    sp_updatedata (this only returns "Command(s) completed successfully"
    Create Proce sp_getReportData
    As
    Begin
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Select * from customers
    End
    If I remove this line it works.
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Thanks
    Essa Mughal

    Hi MESSA,
    According to your description, you create a dataset based on a stored procedure. In this procedure, it calls another procedure. Now it throws error when creating dataset. Right?
    In Reporting Services, when creating dataset, all the query or stored procedure will be executed in SSMS. So if the procedure can be executed in SSMS, it supposed to be working in SSRS. However, it has a limitation in SSRS. In a dataset, it can only return
    one result set.
    In this scenario, I don't think it's the issue of calling other procedure inside of procedure. Because we tested in our local environment, it works fine. I guess the sp_updatedata returns a result set, and the "select * from customers" returns
    another result set. This might be the reason cause the error.
    Reference:
    Query Design Tools in Report Designer SQL Server Data Tools (SSRS)
    Reporting Services Query Designers
    If you still have any question, please post the error message and the store procedure (sp_updatedata).
    Best Regards,
    Simon Hou

  • Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'

    Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'
    Word, and powerpoint application are working fine.  
    Environment :  Windows 7 64-bit, MS Office 2013 64-bit
    Steps to recreate
    (i)  Create new user account and add to any group ( do not log on using this
     account)
      (ii)  runas /user:<new user account>  <fullpath>\excel.exe
       it will ask password so enter on command prompt
    (iii)  open any excel document  and click File->Print
      (iv)  verify result  (it is failing) it pop ups below error
     Error:`Microsoft Excel
     No printers are installed. To install a printer click the File tab, and then click
     Print. Click No Printers Installed, and then click Add Printer. Follow the
     instructions in the Add Printer dialog box.                                                                                                               

    Sorry for late reply i was not at work
    I have a default set excel is still throwing error. Interestingly winword , powerpoint and publisher are working fine. I am able to print from all office applications except Excel.
     Probably excel behaves differently from other office applications.
     Probably it is a bug in excel
    Workaround : Log on to a system once using newly created account then runas excel using this account then print works fine.
    It means something in user profile should be configure to run excel print operation. Could you please somebody help what I need to configure in user profile that makes print operation success?

  • CF 8 CFPDF "Merged" document throws 131 Error when opened in Acrobat

    We are using CF 8 on Windows Server 2003 platform.
    Any CFPDF "Merged" documents are throwing 131 Errors when opened in Acrobat
    Tried re-saving the documents on local machine and still same problem. Tried opening in multiple versions of Acrobat, same problem.
    Individual documents created are opening without issue. It is Only when these documents are merged that this error occurs.
    We do not experience this behavior in our CF 10 environment.
    We are a Big, Slow moving enterprise here so not much chance of getting our CF 10 environments promoted to meaningful production use soon.
    Found virtually nothing in HelpX and nothing online of any value regarding this issue.
    Has anyone else experienced the issue noted in the title of this discussion?
    Has anyone a work around or solution?

    I am getting the same error even in Acrobat version 8.1.3.
    Additionally, I noticed that if we click on menu ‘Advanced->Sign&Certify->Preview Document’, then we get a notification as “This document is not PDF/SigQ compliant and may display inconsistently”. On clicking  ‘View report’ on that notification, the below dialog pops up. It has errors listed as:-
    Code 4000 : Unrecognized PDF content. The document contains PDF content or custom content not supported by the current version of Acrobat.
    Code 4002: PDF content contains erros.
    However, if we sign the PDF using default adobe signature functionality and reopen that PDF, the error does NOT come and the notification also says ‘This document is PDF/SigQ compliant’.
    Can anybody please suggest what could be missing in the custom sign that we apply? Is it because of any of the missing fonts or any other resources?
    Awaiting reply!
    Regards.

  • SPUtility.GetPrincipalsInGroup method throws Thread was being aborted error when SPGroup Name is passed

    Hello,
    I am getting 'Thread was being aborted - Unable to evaluate expression because
    the code is optimized or a native frame is on top of the call stack' error
    when I use 'SPUtility.GetPrincipalsInGroup' method.
    bool bReachedMaxCount = false;
    SPPrincipalInfo[] _spPrincInfoColl = SPUtility.GetPrincipalsInGroup(web, groupName, Int32.MaxValue - 1, out bReachedMaxCount);
    We have both SharePoint groups (SPGroup) & Active Directory groups in our site.
    I am checking if logged in user has access to the group name that I am passing here as 'groupName'.
    Code works without any error when I pass 'domain name' as 'groupName' e.g. (Domain\\usergroup) but the same throws error when I pass SharePoint groups (SPGroup) name.
    Both type of these groups have at least 'Read' permission on site.
    I have this code inside 'try-catch' block and hence I am able to catch that thread aborted error.
    What could be the reason for this error? I don't get any call stack and all other properties of exception object are either null or with garbage values.
    I am having SP2010 foundation, VS2012 and .Net4.5 installed on my machine.
    Kindly suggest on this. Thank you.
    Sagar S.

    I think the RunWithElevatedPrivilages is not working correctly. I believe that the new site and web objects need to be opened within elevatedprivilages to work. it looks like the way your code is working the SPsite and SPweb objects are getting opened before
    the RunWithElevatedPrivilages give this a try and see if your result changes.
    bool IsUserInGroup = false;
    try
    SPSecurity.RunWithElevatedPrivileges(() =>
    Guid siteId = SPContext.Current.Site.ID;
    Guid webId = SPContext.Current.Web.ID;
    using (SPSite newSite = new SPSite(siteId)) {
    using (SPWeb newWeb = newSite.OpenWeb(webId)){
    bool bReachedMaxCount = false;
    SPPrincipalInfo[] _spPrincInfoColl = SPUtility.GetPrincipalsInGroup(newWeb, "TestGroup", Int32.MaxValue - 1, out bReachedMaxCount);
    if (_spPrincInfoColl.Where(a => a.LoginName == username).Count() > 0)
    IsUserInGroup = true;
    }//close web
    }//close site
    catch (Exception ex)
    LogManager.LogMessage(ex.Message.ToString());
    Alex

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Webi report throwing error when executed

    HI Experts,
    While executing a Webi Report we are gettign following error when executing with more than one characteristics -
    A Database error occured. The database eror text is : The MDX Query select { [Measures].[4225B1TBMEMOYKZGDKLVINMAW] } ON COLUMNS FROM [ZMEPSC01/ZMEPSC01_QRY_0001]
    failed to execute with the error Unknown error.(WIS 10901).
    We tried changing the Universe -> Parameter -> Control -> Limit size of result set to -> unchecked it.
    But still the error remains. Can u put some light over it.
    Thanks.

    Hello ,
    Just Check with the BI the people they might change the the column name or some thing else in the bex Query that s way It is showing error.
    Refresh the universe and generate the report then check it.
    Thanks
    Santhosh V

  • Console throws errors when check servers as user in Monitor role

    Hi ,
    I am getting the following error when trying to Login to console as a user with monitor role and This is working normal if logged in as Administrator, i am using WebLogic Server 9.2 MP3 -
    ####<May 5, 2010 5:14:06 AM EDT> <Error> <netuix> <isdwlprdx07> <prod-prr_admin> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <readonly> <> <> <1273050846842> <BEA-423405> <An exception [weblogic.utils.AssertionError: ***** ASSERTION FAILED *****] was thrown while rendering the content at [null].
    com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:699)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:268)
    at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:107)
    at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:288)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:427)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:709)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:721)
    thanks in advance ,

    Hi
    There is one more error i have noticed :
    java.lang.SecurityException: Method 'getState' cannot be invoked without administrator access
         at weblogic.rmi.internal.AdminAccessOnlyServerRef.getWorkManager(AdminAccessOnlyServerRef.java:29)
         at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:307)
         at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:885)
         at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:1084)
         at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1001)
         at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:240)
         at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:893)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:446)
    can any body help ??

  • Compiling code throws undeclared errors when trying to view form in design mode.

    Let me start this off by admitting that I've committed sacrilege - I edited code inside of a windows forms InitializeComponent() function. I changed this (located in the beginning of the InitializeComponent() function where all UI elements are declared):
    this->image = gcnew OpenTK::GLControl();
    To this:
    OpenTK::Graphics::GraphicsMode^ temp = gcnew OpenTK::Graphics::GraphicsMode(ColorFormat(16, 16, 16, 16), 16, 0, 0, ColorFormat(16, 16, 16, 16), 3 , false);
    this->image = gcnew OpenTK::GLControl(temp)
    The result is that the code still compiles, but it gives the following errors when I try to view the code in design mode:
    The variable 'image' is either undeclared or was never assigned.
    "The variable 'temp' is either undeclared or was never assigned."
    The former can get eliminated by using two constructors, one with no parameters, followed by an immediate override of the image object with my actual constructor. But I can't seem to get rid of the second problem. Declaring the variable temp outside of the
    function didn't help, so I'm not sure if or how I can make this work. Any suggestions on how I can make the design mode parser accept my intrusions? I understand that I've done some evil things to make this happen, but I'd like to keep it more or less like
    this since the result is that I have a vsynced windows form.

    Hi MHoll4,
    It seems that it is not the correct forum for this issue.
    Since this issue is related to the WinForms app, I suggest you post this issue to the WinForm forums here:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Root.sh failed throws error when installing Oracle Grid Infrastructure 11.2

    Hi,
    root.sh failed with the following error when installing / configuring the oracle grid infrastructure version 11.2.0.1 for standalone on RHEL 6
    Now product-specific root actions will be performed.
    2011-10-10 11:46:55: Checking for super user privileges
    2011-10-10 11:46:55: User has super user privileges
    2011-10-10 11:46:55: Parsing the host name
    Using configuration parameter file: /apps/opt/oracle_infra/crs/install/crsconfig_params
    Creating trace directory
    LOCAL ADD MODE
    Creating OCR keys for user 'oracle', privgrp 'oinstall'..
    Operation successful.
    CRS-4664: Node vmhost1 successfully pinned.
    Adding daemon to inittab
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start: Inappropriate ioctl for device at /apps/opt/oracle_infra/crs/install/roothas.pl line 296.
    I followed the steps / solution provided in the ID 1069182.1. But no use.
    Are there any workaround?
    Thanks
    -KarthicK
    Edited by: user11984375 on Oct 10, 2011 7:06 AM

    Check the logfiles under $GRID_HOME/log/<node_name>/cssd/
    I had seen the same problem and the following resolved the problem for me.
    [root@rac1 ~]# rm -f /usr/tmp/.oracle/* /tmp/.oracle/* /var/tmp/.oracle/*
    [root@rac1 ~]# > $ORA_CRS_HOME/log/<node_name>/cssd/<node_name>.pid
    HTH,
    Raj Mareddi
    http://www.freeoraclehelp.com

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Error when Fetching CATs Data to BI

    Hi,
    I have created data source in R/3 System (Source System) for CATS data and extracting data Using function Module. Using transaction RSA3 it is fetching all the desired records in R/3 System.
    In BI System extracting Full Data and when monitoring it is throwing Error.
    Error 7 when sending an IDoc
    Error when opening an RFC connection    2
    Error when opening an RFC connection
    Errors in source system
    Function Module for fetching CATS Data
    FUNCTION ZLBTIME_GET_CATSREC.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  ZLSCATS OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    * Example: DataSource for table SFLIGHT
    *  TABLES: SFLIGHT.
    * Auxiliary Selection criteria structure
      DATA: L_S_SELECT TYPE SRSC_S_SELECT.
    * Maximum number of lines for DB table
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    * counter
              S_COUNTER_DATAPAKID LIKE SY-TABIX,
    * cursor
              S_CURSOR TYPE CURSOR.
    * Select ranges
    **  RANGES: L_R_CARRID  FOR SFLIGHT-CARRID,
    **          L_R_CONNID  FOR SFLIGHT-CONNID.
    * Initialization mode (first call by SAPI) or data transfer mode
    * (following calls) ?
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
    * Initialization: check input parameters
    *                 buffer input parameters
    *                 prepare data selection
    * Check DataSource validity
        CASE I_DSOURCE.
          WHEN 'ZLTIME_DS_3'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3). ENDIF.
    * this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    * Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
    * Fill field list table for an optimized select statement
    * (in case that there is no 1:1 relation between InfoSource fields
    * and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.                 "Initialization mode or data extraction ?
    * Data transfer: First Call      OPEN CURSOR + FETCH
    *                Following Calls FETCH only
    * First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    * Fill range tables BW will only pass down simple selection criteria
    * of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
    **      LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CARRID'.
    **        MOVE-CORRESPONDING L_S_SELECT TO L_R_CARRID.
    **        APPEND L_R_CARRID.
    **      ENDLOOP.
    **      LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CONNID'.
    **        MOVE-CORRESPONDING L_S_SELECT TO L_R_CONNID.
    **        APPEND L_R_CONNID.
    **      ENDLOOP.
    * Determine number of database records to be read per FETCH statement
    * from input parameter I_MAXSIZE. If there is a one to one relation
    * between DataSource table lines and database entries, this is trivial.
    * In other cases, it may be impossible and some estimated value has to
    * be determined.
    **      OPEN CURSOR WITH HOLD S_CURSOR FOR
    **      SELECT (S_S_IF-T_FIELDS) FROM SFLIGHT
    **                               WHERE CARRID  IN L_R_CARRID AND
    **                                     CONNID  IN L_R_CONNID.
            OPEN CURSOR WITH HOLD s_cursor FOR
    *        SELECT * FROM zlvctmbw.
            SELECT a~counter a~pernr a~workdate a~skostl a~lstar a~rproj a~awart a~kokrs a~meinh a~tcurr a~price
                   a~unit a~bukrs a~ersda a~erstm a~ernam a~laeda a~laetm a~status a~refcounter a~reason a~belnr
                   a~catshours a~act1 a~act2 a~task a~lang1 a~narr1 a~lang2 a~narr2 a~cmnt a~clst a~plchl
                   b~ltxa1 b~transfer b~hrkostl b~hrlstar b~hrcostasg b~statkeyfig b~catsquantity b~bemot
                   c~pspnr c~pspid
                   d~kunnr
            FROM   catsdb AS a
            LEFT OUTER JOIN catsco AS b ON a~counter = b~counter
            JOIN   prps AS p ON p~pspnr = a~rproj
            JOIN   proj AS c ON c~pspnr = p~psphi
            JOIN   zltproj AS d ON d~pspnr = c~pspnr.
        ENDIF.                             "First data package ?
    * Fetch records into interface table.
    *   named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.
    When fetching data using VIEW in source system it works fine.
    When testing for fetching data of SFLIGHT using function module ZRSAX_BIW_GET_DATA_SIMPLE
    made a copy of RSAX_BIW_GET_DATA_SIMPLE, it is working fine.
    Pls suggest the cause of error.
    Regards
    Vishal

    Hello Praveen,
    Connection is fine as I tried fetching data of SFLIGHT using standard template function module which works fine and in transaction sm58 I do not any data.
    Regards
    Vishal

  • Error when print/previewing joutnal report

    I am gettign the following error when trying to view a journal report PLEASE HELP!
    Can't open the log file
    Show Details:
    Error Reference Number: {CAC41EC9-7F12-46FA-A900-EB5E57E802D8}
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMActions.cpp;Line: 72;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMCESAction.cpp;Line: 28;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: Actions.cpp;Line: 385;Ver: 11.1.2.1.000.3082;

    Hi,
    How the issue was fixed, it would be great if you can provide the resolution steps.
    It seems i'm too getting the same issue, when i'm trying to open a HFM report in workspace the report prompts to select a member but when i'm clicking the prompt button then it is throwing the error.Error is as below
    Respond to prompts
    *[1033] Native:- 2147219967 error reference number {FF339D8B-E1CC-4E57-9D4A-C4EF051D76B6}*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: CHsvADMDriverACM2.cpp;Line:2500;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1491;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1245;Ver:11.1.1.3.500.3124*
    HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1203;Ver:11.1.1.3.500.3124*

  • Error when inserting or changing in a sorted table

    Hi Experts,
    When i am executing a webdynpro application it says Error when inserting or changing in a sorted table. Can any one help for this.
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_COMPONENTCONTROLLER~GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: WDDOMODIFYVIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
    Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
    Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    in ST22
    Object Definition
      DATA: lo_node                   TYPE REF TO if_wd_context_node,
            lo_node_info              TYPE REF TO if_wd_context_node_info,
            lo_element                TYPE REF TO if_wd_context_element.
    Additional Data declarations
      DATA: lv_key TYPE string.
    Get context node.
      lo_node = wd_context->get_child_node( name = 'DROPDOWNLISTS' ).
      lo_node_info = lo_node->get_node_info( ).
    Call method to fetch the categories.
      CALL METHOD cl_hap_wd_start_page_ui=>category_get_list
        EXPORTING
          add_on_application = add_on_application
        IMPORTING
          t_categories       = lt_categories.
    Append Default selection entry 'All'.
      lw_category-category_id = '00000000'.
      lw_category-category_name = 'All'.
      APPEND lw_category TO lt_categories.
    Sort table after appending the new entry.
      SORT lt_categories ASCENDING.
    Loop through the category list and populate key(category_id) value(category_name) pair for
      LOOP AT lt_categories INTO lw_category.
        lw_key_value-key = lw_category-category_id.
      625     lw_key_value-value = lw_category-category_name.
    >>>>>     APPEND lw_key_value TO lt_key_values.------>Here it throws an error
      627     CLEAR: lw_key_value, lw_category.
      628   ENDLOOP.
      629
      630 * Bind the category key-value pair to the context attribute.
      631   CALL METHOD lo_node_info->set_attribute_value_set
      632     EXPORTING
      633       name      = 'CATEGORY_LIST'
      634       value_set = lt_key_values.
      635
      636 * Make the entry 'All' as default selected.
      637   CALL METHOD lo_node->set_attribute
      638     EXPORTING
      639       value = '00000000'
      640       name  = 'CATEGORY_LIST'.
      641
      642 ENDMETHOD.
      643
      644 method GET_EMPLOYEES.
      645

    Hello Durga,
    from the error what I understood is lt_key_values is a sorted table and you are trying append a new line to it. Incase of sorted table you need to use the INSERT statement and not the APPEND statement.
    INSERT lw_key_value INTO table lt_key_values.
    BR, Saravanan

Maybe you are looking for

  • Books in iTunes do not show up in iBooks

    I recently had to restore my iPad because I was having problems with my wifi. When I restored it, about 70% of my books/pdf's did not transfer over onto my iPad. I checked "sync all books" and nothing. Oh, and my wifi is still acting up and keeps los

  • Iphoto won't email or export

    I choose my pictures click email, choose my options, it says "preparing photos for email", then nothing. No email opens with the attached pics. So I try to export the pictures and manually add them to an email. I chose file, export, choose jpeg forma

  • Dock won't show

    I have my dock on the "hide" setting, and when i scroll to the bottom of the screen, it jumps up. However, occasionally (and I think it might be related to the uptime of the computer - it might be getting tired) it just won't come up. Suddenly, I wil

  • Changing width of an element

    Hi I know it's a very simple solution but I know little bit javascript. so please help me, I want to change the width of <td> element using javascript or JQuery. I have the code like this, <table id="topemp"> <tr> <td id="empid" width="50" height="50

  • Initial Set up issue

    AFter downloading XI and running the entire set up program, when I open XI it still asks me if I want to purchase the product or continue the trial period.  IS this a problem with the installation or should I ignore this box?