[b]Strange Java.rmi.ServerError[/b]  (very Urgent)

I have a rmi application runninfg on one server (called 1), and web application accessing that application (running on JRUN 3.0) from onother server (called 2).
[ I am newly setting up this structure on another servers (fallback server).
Its working file in the existing servers (live server) ]
There is a perticular methode in a class for which i get the java.rmi.servererror nosuchmethodefound error. If i try any other methode it works fine. the erro only comes for that perticular methode.
I have check the class files (interface, implementation etc.) the methode is perfect and working on the other server.
There is no flow found in any code on any server (1 or 2).the code is perferct.
I can not fild the flaw so please help me its very urgent and criticle.
please help me on this

will the out of date interface or stub process other methodes and gives problem to perticular methode.
all other methodes in the class works fine its only that perticular methode gives me the problem.
I actualy recomplied every file and still the error is still there

Similar Messages

  • RemoteException: 111 java.rmi.ServerError: Error occurred in server thread

    Hi,
    I'm just new to the RMI field of JAVA. I'm trying to write a program that import the math.jar file in the server side. And the client end can invoke the methods of math.jar and get the value.
    I got the error messages as below:
    RemoteException: 111 java.rmi.ServerError: Error occurred in server thread; nested exception is:
         java.lang.NoClassDefFoundError: org/mathwhizz/Heron
    It can work well if I use source classes(*.class) directly instead of importing math.jar. The failure only happened when I try to make use of jar file. Thus I guess my setup and configuration should be ok. Is there anything I should be very careful if I try to run RMI and import a jar file in the program of server side ?
    Do I need to use JNLP and web start application in this issue?
    I'm appreciated for your responses...thanks...
    Sincerely,
    Brandon

    I've got a problem with rmi, when I launch my server, I have this error:
    Erreur du remote: java.rmi.ServerError: Error occurred in server thread; nested exception is:
    java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSetData
    Help me please
    Thank you

  • Java.rmi.ServerError: A error occurred the server; nested exception is:

    Hello Guys,
    I'm getting the following error when calling a method of a normally
    deployed facade session bean.
    java.rmi.ServerError: A error occurred the server; nested exception is:
    java.lang.AbstractMethodError
    It's very confusing, it sometimes appear and sometimes the method is
    invoked normally.
    Thanks in advance for ur help.
    Itani
    [att1.html]

    That error means your are not running xserver process. Or, your ssh connection is not set-up to forward X-11 data.

  • Java.rmi.servererror

    I am trying to acce ss a method on the client from the server.
    The method on the client is not accessible instead a exception is thrwon on the client
    java.rmi.ServerError Error occurred in Server Thread , nested exception is
    java.lang.AbstractMethodError

    I am trying to acce ss a method on the client from the
    server.
    What are you employing to achieve it? proxies or what?

  • Help urgently needed with Java RMI task.

    Hello All. Please I need help urgently with this task. I cant seem to be able to do this. Here is the task:
    There are m squares with side lengths a1, a2, ..., am and a rectangle with the height and width equal to h and w respectively. Find a subset of the squares, which must be placed within the rectangle in such a way that they do not overlap, and cover the maximum area of a rectangle.*
    Please all help me solve this task using Java RMI. I would be very grateful for your help. Thanks in advance.

    Here is my client.java.
    import compute.;*
    import java.lang.Math.;*
    import java.lang.Long;
    *public class Hypothesis implements Task {*
    private long start;
    private long end;
    private int number;
    private int count;
    public Hypothesis(long start, long end, int number,int
    *count) {*
    this.start = start;
    this.end = end;
    this.number = number;
    this.count = count;
    *public Object execute() {*
    return findSolution();
    *public String findSolution() {*
    long i,j,k,l,m=1,i_max,j_max,k_max,l_max,l_start;
    System.out.println(start);
    System.out.println(end);
    System.out.println(number);
    System.out.println(count);
    for(m=start+number;m<end;m+=count)
    i_max=(long)java.lang.Math.pow((double)(min(p5(m)-3)),0.2d)+1;
    for(i=i_max;i>0;i--)
    j_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-2)),0.2d)+1;
    if (j_max>i) j_max=i;
    for(j=j_max;j>0;j--)
    k_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-1)),0.2d)+1;
    if (k_max>j) k_max=j;
    for(k=k_max;k>0;k--)
    l_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-p5k))),0.2d)+1;
    if (l_max>k) l_max=k;
    if (l_max>2) l_start=l_max-2;
    else l_start=1;
    for(l=l_max;l>l_start-1;l--)
    if(p5(i)+p5(j)+p5(k)+p5(l)==p5(m))
    Long[] solution=new Long[5];
    solution[0]=i;
    solution[1]=j;
    solution[2]=k;
    solution[3]=l;
    solution[4]=m;
    *return "" solution[0]"^5+"*
    solution[1]"^5+"*
    solution[2]"^5+"*
    solution[3]"^5="*
    solution[4]"^5";*
    return null;
    *private long p5(long n){*
    return nn*n*n*n;*
    *private long min(long n){*
    return n>0?n:0;
    I just can't seem to get the whole thing work correctly on the server side. I need it to run from 1 client on atleast 3 servers. Please any explanations will be appreciated.

  • How to use a DropDownList in Java Swing.Its very very Urgent

    Hi Sir,
    Here i need to know how to do (or) create a dropdownlist by using Java Swing.I know that there is JMenuBar & JMenuItems without using that when i click a JButton for example the dropdownlist should come from the top to bottom.I have already posted this quesion once.And i found that it has been removed.So i hope that this time i will get a better answer.Pls.do provide the code as well sir.So that i will be very thankful to u.Since i am involved in a project which contains this
    feature.It is very very Urgent.So pls.do provide the code i will be waiting for the reply.
    Thanx,
    m.ananthu

    use JComboBox
    JComboBox liste = new JComboBox(new Object[]{"azerty","qwerty});the api documentation :
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComboBox.html
    the turotial on combobox :
    http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

  • 2 phase commit in java..!!!!!!!! VERY URGENT!!!!!!!!

    Hi,
    Can I implement 2 phase commit in a standalone java application ?
    I access multiple databases with different connection objects in a single class in a single transaction. But how do I implement the 2 phase commit manually in a java standalone application.
    Please note that I dont have any environment(like server, jndi etc.,) where i can deploy the datasources.
    So pls let me know whether i can implement distributed transactions in this scenario.
    This is very urgent.

    There are two ways:
    1. use an existing transaction monitor, either via an app server, or I think some, such as Tuxedo, can be used on their own, but even then you might need some elements of J2EE such as JNDI to use this. JBoss is a free app server that allows you to access its services, such as connection pooling and transaction monitoring, without having to rewrite your app as EJB or servlet based.
    2. write your own.

  • Urgent   Chatting RMI ( java.rmi.ConnectIOException)

    hello;
    I have a project cat in RMI in the network internet,le problem what the server doesn't communicate with the customer (the customer has a private address (local network) and the server has a public address (network internet)) message error:
    java.rmi.ConnectIOException: Exception creating connection to: 192.168.0.27; nested exception is:
    java.net.NoRouteToHostException: No routes to host
    how I can solve this problem (urgent)
    thank you

    There are only two ways that I am aware of to do this:
    1. The customer must deploy a port-forwarding device such as a NAT device, and the client must do -Djava.rmi.server.hostname= the public IP address of the NAT device prior to exporting its callback. The client must also export on a fixed port number, and the NAT device must be configured to forward this port number as appropriate.
    2. Buy and deploy my RMI Proxy product at the client: http://www.rmiproxy.com
    EJP

  • How to pass data from SAP to JAVA ( very urgent )

    Hi Experts,
    I have worked in ABAP, but now I joined to a new company. Here in my project requirement is as below:
    1. Need to transfer data ( account information ) from SCRM to SAP ( Business partner) using JCO.
    2. Need to transfer material information from SAP to SCRM through JCO.
    for 1st one I got solution in java and JSP , but for 2nd requirement I am unable to get. Can u please help me in this. How to do this and if any code required for this can u send me to me. 
    Very urgent , please help me.
    Thanks in advance,
    HP.

    Hi,
    Follow the below link..
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=crm+jco%27s&cat=sdn_all&start=11
    Award Points If Useful...

  • Very Strange java.lang.NoClassDefFoundError. Class exists in classpath

    Dear Forum:
    Occasionally, I run into strange java.lang.NoClassDefFoundErrors.
    Here is an example: I have two different classes Class1.class and Class2.class in different jars. Both use a common class: AppContext in third jar file.
    If Class1 tries to use AppContext, it works just fine. However, if Class1 instantiates Class2 and Class2 tries to use AppContext, you get the nasty java.lang.NoClassDefFoundError, in the same thread.
    After a struggle and trying out different orders in class / library paths, the error goes away. However, I do want to know what is the better way to understand and resolve this issue?
    Here is a sample code, for illustration purposes only:
    File:Class1.java_
    Public class Class1
         Public Class1 ()
    AppContext.getLogger().logDebug(�test1�);
    //the above line works just fine.
    try
    Class2 something = new Class2();
    catch(Error ex)
         //here we get a java.lang.NoClassDefFoundError for AppContext, which works just fine from Class1.java
         ex.printstackTrace();
    File:Class2.java:_
    Public class Class2
    Public Class2()
    AppContext.getLogger().logDebug("test2");
    }

    I think I have answer to this mystery.
    This was an issue with the jdeveloper, where the jar file throwing the class not found exception was loaded by a different classloader and the jar file which could find the class was loaded by another classloader.
    I forgot to mention that this was a j2ee application being run by the internal j2ee server of Jdeveloper.

  • Doubt in setting values-- very urgent - please!

    hai,
    i am creating a java bean ..
    public void setTitle_cont(String proj_title_cont[])
         for(int i=0;i<3;i=i+1)
         this.proj_title_cont[i] = proj_title_cont;
    public String getTitle_cont()
    {//error come here - says "missing return statement"
         for(int i=0;i<3;i=i+1)
         return proj_title_cont[i];
    setTitle_cont() is working fine..but getTitle_cont() shows error...
    can anyone please help out..its very urgent..
    thanx in advance
    regards
    koel

    Your code looks strange, it contains some errors. First of all, what does your set...() method do? You have a for-loop that does the same thing 3 times. Your get...() method has a return inside a for-loop. That makes no sense; the method will return at the first iteration.
    What is the type of the member variable proj_title_cont? Is it a strring array (String[]) or a single string (String)?
    You probably wanted to do something like this:
    // member variable
    private String[] proj_title_cont;
    public void setTitle_cont(String[] proj_title_cont)
      this.proj_title_cont = proj.title.cont;
    public String[] getTitle_cont()
      return this.proj_title.cont;
    }Jesper

  • Java.rmi.MarshalException: error marshalling return;

    Hi All,
    I'm getting the above error whilst performing a query. My set up is,
    Kodo 3.1.5
    Weblogic 8.1
    I have created some classes using the reverse mapping from Sybase,
    enhanced them and uploaded them to my server. I have then attempted to
    retrieve the data via an EJB. However I get NotSerializableExceptions
    whilst doing so.
    I am attempting to return a Collection of enhanced objects, but even a
    single enhanced object throws that error
    I think it may be something to do with my package.jdo or something else.
    Can anyone help?
    My package.jdo looks like this,
    <?xml version="1.0" encoding="UTF-8"?>
    <jdo>
    <package name="com.lehman.clientseg.data">
    <class name="AuditRecord" objectid-class="AuditRecordId"/>
    <class name="Btb" objectid-class="BtbId"/>
    <class name="CashActivity" objectid-class="CashActivityId"/>
    <class name="CashBulk" objectid-class="CashBulkId"/>
    <class name="CcyTypeIndicator" objectid-class="CcyTypeIndicatorId">
    <field name="descn">
    <extension vendor-name="kodo" key="jdbc-size" value="-1"/>
    </field>
    </class>
    <class name="Counterparty" objectid-class="CounterpartyId"/>
    <class name="Currency" objectid-class="CurrencyId"/>
    <class name="DealType" objectid-class="DealTypeId"/>
    <class name="DeliveryInstruction"
    objectid-class="DeliveryInstructionId"/>
    <class name="Entity" objectid-class="EntityId"/>
    <class name="MonitoredEvent" objectid-class="MonitoredEventId"/>
    <class name="PaymentType" objectid-class="PaymentTypeId"/>
    <class name="Sequence" objectid-class="SequenceId"/>
    <class name="SettlementMode" objectid-class="SettlementModeId"/>
    </package>
    </jdo>
    and here is the stack trace,
    java.rmi.MarshalException: error marshalling return; nested exception is:
    java.io.NotSerializableException: com.lehman.clientseg.data.Entity
    at
    weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    at
    com.lehman.clientseg.server.ejb.JDOBean_1a5ozo_EOImpl_812_WLStub.getAllEntities(Unknown
    Source)
    at com.lehman.clientseg.BeanTest.<init>(BeanTest.java:49)
    at com.lehman.clientseg.BeanTest.main(BeanTest.java:62)
    Caused by: java.io.NotSerializableException:
    com.lehman.clientseg.data.Entity
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    at java.util.LinkedList.writeObject(LinkedList.java:681)
    at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:795)
    at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    at
    weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:116)
    at
    weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:93)
    at
    com.lehman.clientseg.server.ejb.JDOBean_1a5ozo_EOImpl_WLSkel.invoke(Unknown
    Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
    at
    weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    Abe White wrote:
    Looks like you're trying to serialize a class that's not serializable,
    probably by returning it (or a class that has a relation to it) from an EJB.Very strange. My classes where autogenerated using the reverse mapping
    tool and weren't serializable. I'm sure I once did make them serializable
    and I got more error messages. I just tried again and everything was fine.
    Hmmm... Must be going mad.
    Cheers,
    Stevie :)

  • Help needed for CORBA over Http through proxy server[Very Urgent]

    Hi Friendz,
    I am new to J2EE. Right now I am learning RMI, Corba now.
    In RMI, to pass through Http to bypass firewall or through proxy sever, we can use either Http to port or Http to CGI/Servlet i.e., Http tunneling.
    In the same, I am running a simple corba application, i want my corba application to pass through my proxy server using http which is configured to address 127.0.0.1 and port 8118.
    How to pass my corba application through proxy server. please help me and it is very urgent.
    Is it possible or not, please let me know some comments about this topic
    Thanks in advance Friends for your help

    This is so extremely urgent that it needs to be asked multiple times.
    http://forum.java.sun.com/thread.jspa?threadID=762950

  • SessionEJBClient problem...(ClusterableRemoteRef)..very urgent

    Hi all,
    I am working with weblogic 6.1sp1.. while accessing EntityHome
    through session bean,i am not getting following Exception
    (ClusterableRemoteRef)while runing the sessionClient.. any body can pl
    help me very urgently..
    Thanks in advance
    Chandu([email protected], [email protected])
    Exception:
    ClusterableRemoteRef(192.168.10.6 [192.168.10.6])/286
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    at ejb.LoginSessionBean.LoginBean.class$(LoginBean.java:17)
    at ejb.LoginSessionBean.LoginBean.checkName(LoginBean.java:65)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl.checkName(LoginBean_4p68pl_EOImpl.java:36)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl_WLSkel.invoke(Unknown
    Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    Start server side stack trace:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    at ejb.LoginSessionBean.LoginBean.class$(LoginBean.java:17)
    at ejb.LoginSessionBean.LoginBean.checkName(LoginBean.java:65)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl.checkName(LoginBean_4p68pl_EOImpl.java:36)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl_WLSkel.invoke(Unknown
    Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace....

    Hi woollen,
    Thanks for reply.. myi application's packaging is correct only..
    package ejb.DataEntityBean and other one is..
    package ejb.LoginSessionBean
    I deployed two ejbs and tested entity bean with java client.But when i called entity ejb in
    the session ejb that time i am facing this problem..
    thanks in advance
    chandu
    Rob Woollen wrote:
    You're getting a NoClassDefFoundError. That would generally indicate that you're
    application's packaging is not correct.
    First, I would recommend removing any application classes from the server's class path.
    Then, I would package your application as an EAR file. If you're still having problems,
    you'll need to show us how you've packaged your application.
    -- Rob
    softstar wrote:
    Hi all,
    I am working with weblogic 6.1sp1.. while accessing EntityHome
    through session bean,i am not getting following Exception
    (ClusterableRemoteRef)while runing the sessionClient.. any body can pl
    help me very urgently..
    Thanks in advance
    Chandu([email protected], [email protected])
    Exception:
    ClusterableRemoteRef(192.168.10.6 [192.168.10.6])/286
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    at ejb.LoginSessionBean.LoginBean.class$(LoginBean.java:17)
    at ejb.LoginSessionBean.LoginBean.checkName(LoginBean.java:65)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl.checkName(LoginBean_4p68pl_EOImpl.java:36)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl_WLSkel.invoke(Unknown
    Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    ; nested exception is:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    Start server side stack trace:
    java.lang.NoClassDefFoundError: ejb.DataEntityBean.DataHome
    at ejb.LoginSessionBean.LoginBean.class$(LoginBean.java:17)
    at ejb.LoginSessionBean.LoginBean.checkName(LoginBean.java:65)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl.checkName(LoginBean_4p68pl_EOImpl.java:36)
    at
    ejb.LoginSessionBean.LoginBean_4p68pl_EOImpl_WLSkel.invoke(Unknown
    Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace....

  • Update Routine ... Help me Please--VERY URGENT

    Hi All ,
    I Moving data from Cube to ODS . Let me explain abt the records in the cube .
    There are 6 key figures in the cube as well as dimensions, UNIQKEY TRANSACTION is One Dimension and ARTICLE is another dimension which is having an Navigational attribute called CORE ELEMENT.
    I am showing the data with those two dimension and the key figures which are to be used in the routine.
    Charc----
    Key Figures
    UNIQKEY-ARTICLE-Coreelement--
    billqty     
    in base unit
    A00N----1006330--1--
    10.5
    A00M -
    1006320----2--
    2.5
    A00P-----1006330--1--
    10.5  
    A00P-----1006320--2--
    2.5
    A00Q-----1006320--2--
    2.5
    A00Q-----1006340--3--
    10.5
    Now Lets see what the core element numbers mean,
    core element 1 means -- fuel .
    Core elemnet other 1 -- food .   
    I need to move these data into ODS Which will have an extra field called No of items in the transaction --ITEMS.For this i need to write  a routine .
    The Logic is ...
    1.if Materail is of type 1(Means if the core element - 1)
    I need to Populate the No of items in tnx = 1 .--ITEMS.
    2.If Material is of type(Means if the core element)2or 3 I need to populate the billing quantity to the no of transcations.--ITEMS
    3. If the Uniqkey tanscation contains two line items as  suppose that you have 20 litres of fuel and 2 cans of coke, then No of Items in the transaction should be 3 and Billing Quantity in BUoM 22
    billing quantity in BUoM = 20 litres for the first line item and 2 for the second line item...
    then as the first line item is fuel, field No OF Items in the Transcation should be 1 (replacing the 20) + 2 = 3
    so the final result in the ODS should be billing quantity in BUoM = 22 and The Items in the Transcation= 3
    So the ODS Data should look like this.
    UNIQKEY--billqty--
    ITEMS
    in base unit 
    A00N--10.5--
    1
    A00M--2.5--
    2.5
    A00P--13--
    3.5
    A00Q--13--
    12.5  
    NOTE : IN the ODS only the UNIQKEY IS THE KEY FIELD and the rest are DATA FIELDS.
    I Posted this one before also. But didnt get proper responses.
    I am Pasting the piece of code which I have written . This code will work for the first two records in the cube , But it is failing for the UNIQKEY Transcation having Line items.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /BI0/PMATERIAL.
    DATA: TITEMS LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS,
           CORE_ELEMENT like /BI0/PMATERIAL-RPA_WGH1.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS8ZPOCTUS04
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    check not COMM_STRUCTURE-material is initial.
      select SINGLE RPA_WGH1
            INTO CORE_ELEMENT
            from /BI0/PMATERIAL
            where
            material = COMM_STRUCTURE-material
            and  OBJVERS <>'D'.
       IF CORE_ELEMENT EQ '1'.
       TITEMS = '1'.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input         = titems
          IMPORTING
            OUTPUT        = titems
       ELSE.
       TITEMS = COMM_STRUCTURE-BILL_QTY.
       ENDIF.
    result value of the routine
      RESULT = TITEMS..
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    PLease give me ideas on how to acheive this . As I am not Aware of ABAP very well.. PLease try to give me the code. I hope one of you may got the same requirement before.
    Its very urgent and I need to deliver it today itself.
    Thanks in advance , you can mail me to [email protected]. If anybody intersted to discuss this Issue they can reach at +91 9845922955.

    Hi ,
    While I am moving the data from cube to ods . I need to create the update rules with cube -- 8cube . WHen i am doing this the billqty is a key figure in cube so that is not a problem but the ITEMS is not there in the cube ,SO for that I need to write a routine to populate that one.
    Its strange but the user what to analyse with the UNIQKEY transaction. And these objects will be added as navigational attributes to the Characteristic. as it acts as another dimension.
    He wants to laod these from ODS to Master data -Characteristic.
    to say for each transcation hpw many items are getting sold.
    Message was edited by: Nagarjuna Reddy
    ONce again thanks for the qucik replies
    Message was edited by: Nagarjuna Reddy

Maybe you are looking for