Issues of using same enhancement set for different components

Hi experts,
I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
Source Text Row: 10
Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
Thanks in advance.......................
Regards,
Prabahar

Hi Bharathy,
Thank you for the reply which helped me to come close to the solution.
I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
My first question is below.
I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
Best regards,
Prabahar

Similar Messages

  • How to use same RESULT SET for two different events

    hello friends,
    I need to use same result set for two different events. How to do it.
    here My code,
    private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
    // TODO add your handling code here:
    try
    String selstate,selitem;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
    selstate="select * from tab_places where state=?";
    PreparedStatement ps=con.prepareStatement(selstate);
    ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
    ResultSet rs=ps.executeQuery();
    if(rs.next())
    jTextField1.setText(rs.getString("place_ID"));
    jTextField2.setText(rs.getString("place_name"));
    jTextField3.setText(rs.getString("category"));
    byte[] ba;
    ba=rs.getBytes("image");
    ImageIcon ic = new ImageIcon(ba);
    jLabel6.setIcon(ic);
    in=true;
    catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
    catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
    Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }  how do i get dat resultset,
    help me out

    One post wasn't enough?
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
    db

  • Can we use same number range for different  fields

    can we use same number range for different  fields. how can we see the number range defined for a particular field

    Hai,
    Yes you can have same number range for different fields  by using the same domain to the data elements that are user to your two fields.
    To see the range:
    Go to SE11,Type table Name open it-->double click on the DataElement adjasent to the field name ,You will get Domian ,Double click on Domain You will get Domain.There See Value range option .Value range cam also be defined by Value Table which will also at the Doamin level.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • Can I use same result set for two queries?

    Hi,
    Can I use the same result set for two queries?
    For example:
    ResultSet rs = null;
    rs = ps.executeQuery(query1);
    while (rs.next()) {
    rs = ps.executeQuery(query2);
    while (rs.next()) {
    Is it OK to use? or Is there any preformance issues?
    Appreciate your help.
    Thanks in advance.
    Prasad Vagolu

    Sure. You have a variable of ResultSet type. First you create a ResultSet and assign it to that variable. Then later you create another ResultSet and assign it to that same variable. Assigning an object reference to a variable takes essentially no time, and at any rate it isn't any faster to assign it to a different variable. Also, no matter whether you use one variable or two, you are still creating two ResultSets.
    However, you really should be closing your ResultSets after you finish using them. That's nothing to do with the assigning-to-a-variable question.

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

  • Can i use same address pool for different remote access VPN tunnel groups and policy

    Hi all,
    i want to create a different remote access VPN profile in ASA. ihave one RA vpn already configured for some purpose.
    can i use the same ip address pool used for the existing one for the new tunnel-group (to avoid add rotuing on internal devices for new pool) and its a temporary requirement)
    thanks in advance
    Shnail

    Thanks Karsten..
    but still i can have filtering right? iam planning to create a new group policy and tunnelgroup and use the existing pool for new RA  and i have to do some filetring also. for the new RA i have to restrict access to a particualr server ,my existing RA have full access.
    so iam planning to create new local usernames for the new RA and new group policy with vpn-filter value access-list to apply for that user as below,  this will achive waht i need right??
    access-list 15 extended permit tcp any host 192.168.205.134 eq 80
    username test password password test
    username test attributes
    vpn-group-policy TEST
    vpn-filter value 15
    group-policy TEST internal
    group-policy TEST attributes
    dns-server value 192.168.200.16
    vpn-filter value 15
    vpn-tunnel-protocol IPSec
    address-pools value existing-pool
    tunnel-group RAVPN type ipsec-ra
    tunnel-group RAVPN general-attributes
    address-pool existing-pool
    default-group-policy TEST
    tunnel-group Payroll ipsec-attributes
    pre-shared-key xxx

  • Is it possible to use same sap script for different comp code with difflogo

    I have 3 company codes. I need to use same sap script to all  but each company code has different logo. I dnt want to go for 3 different sap script. Is it possible to change in coding
    like this
    If comp code = '100'
    print ' logo1'
    If comp code = '200'
    print ' logo2'
    If comp code = '300'
    print ' logo3'
    in same sapscript.If yes how ?

    Hi,
    Yes you can do it.
    In Sap Script use:-
    /: If Comp code='100'
       INCLUDE ZHEX-LOGO100 OBJECT TEXT ID ST LANGUAGE EN
    /:Elseif comp code = '200'
    INCLUDE ZHEX-LOGO200 OBJECT TEXT ID ST LANGUAGE EN
    /:Else
    INCLUDE ZHEX-LOGO300 OBJECT TEXT ID ST
    LANGUAGE EN
    /:Endif
    I hope this helps,
    Regards
    Raju Chitale

  • Using same camera setting for OpenGL

    Hey guys,
    I want make my scene animations using After Effects and then export keyframe data and use them directly in OpenGL. My question is regarding After Effects camera and coordinate system. How should I set view and projection matrices to have the same functionality as in AE.
    I can make RightHand or LeftHand projection, look-at, rotation, ... but with the same settings it isnt the same as in AE. I tried to make same scene in AE and OGL with same object sizes and positions but camera behaved different way. Like Fov isn the same. I used standard DirectX matrix formulas, tried to transpose or not before loading to OpenGL...
    Is AE using some custom transformation formulas or units? Is it right or left handed?
    Thanks for your reply!
    Kexik

    My wife and I also share a camera. We use the D50. The D50 allows you to create seperate folders on the camera. We use this when shooting to seperate our picture into two folders. The only problem with doing it this way is that when importing them it ignores the folders. I have been manually importing the pictures rather than letting it pull them from the camera to get around this though.
    I'm not sure if the D70 azllows this, but it may be an idea.

  • Can we change the enhancement set for a component

    Dear All
    I have a situation where in we need to change assign a different enhancement set to all our components which got enhanced.
    We can only have 1 enhancement set active for a client.
    Now in our case
    Say for client 300 we were using Enhancement Set E1.
    Our requirement is to create one more enhancment set E2 and assign it to client C1. We can do that.
    Do we we have a mechanism to move all development already done using E1 to E2?
    Please Help.
    Thanks
    Gaurav Sahai

    Hi Gaurav,
                   We create enhancement set in SM30, then assign it to client also there.
    After that, when we go to BSP_WD_CMPWB - by default we see the enhancement set assigned to the client. Now there are 2 things:
    1. to use different enhancement set for different users - you can implement badi component_loading to load different enhancement set depending on business requirement by writing code:
    RV_RESULT = <name of ENHANCEMENT_SET. >
      there is a default implementation in the system for reference.
    2. all enhanced views can be seen in transaction SM34, give name of view cluster as  BSPWDVC_CMP_EXT
       Select your enhancement set -> go to Enhancement Definitions (here you see components enhanced) -> select any -> go to Controller Subsitutes (here you see all view enhanced).
      You can try copying all these entries into another enhancement set. I am not sure if it will allow same entries in two different sets (if it doesn't you will have to delete from the other).
    I hope that resolves your query.
    Thanks,
    Rohit

  • Same rule set for two apply processes

    Hi!
    Can anyone tell me whether it is possible to use the same rule set and all rules in it for two apply processes? It would be easy for me to use such configuration, because sometimes I create LCRs myself, sometimes Oracle captures them. They're exactly the same.
    And second question - I tried the above configuration, but the apply process for user created LCRs aborts when it sees first message. Error is: "ORA-00600: internal error code, arguments: [knlcfpactx:any_knlso], [], [], [], [], [], [], []". Oracle MetaLink and Google know nothing about this error. I also don't know if it's somehow connected with these rule sets or is it a problem within my procedure which creates LCRs.
    Greetings

    I'm answering myself. Yes, it is possible, to use the same rule set for different processes. It is said in the documentation. It is also possible to use one rule in several rule sets according to documentation.
    And it seems that it has nothing to do with my ORA-00600 error.

  • Using same program-id in different RFC adapters

    Hi,
    I have the following question:
    Is it possible to use the same program-id in different RFC adapters for the same SAP backend?
    In gerneral, what are the naming-conventions or best practices for using program-ids for RFC adapters?
    Thanks for your answer!
    best regards,
    Hannes

    No,
    You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
    Although technically you can use but it gives you unpredictable behaviour based on connection pool.
    Regards,
    Satish

  • Can i use the same email address for different users?

    we are a small department with one email address, can i use the same email address for different users?

    No. Each user needs to have his unique ID.
    Mylenium

  • Problem in using the enhancement SAPLV01Z for batch no assignment

    Hi,
    i am using the enhancement SAPLV01Z for using the user defined batch number.
    In which i am allowing the system to generate the internal batch number if it is newly created batch for that particular material,site and MRP combination.For this i am using the function module EXIT_SAPLV01Z_001 and if the batch is already available in ztable suppress the internal batch number generation.
    And by using the function module exit EXIT_SAPLV01Z_002 i am copying the already available batch and passing to the variable new_charge in that function module.
    every thing is OK. But the prob is system checking the availability of the batch for combination of materila and site in batch master table MCHA and throwing an error saying that no batch is found,enter batch.
    Now i want to skip the checking of MCHA table if it is already there in my ztable.For that i am implemented the OSS Note 1035372 but it is not working.
    And one variable call_vb_create i need to pass X for that i need access key.
    Can any body have solution with out using the access key..
    Thanks and regards
    anil

    Sorry I hadn't seen this question.
    I got the same issue today and used EXIT_SAPMM07M_010. It works fine.
    This user exit fix the issue

  • Problem in using the enhancement SAPLV01Z for batch no assignement in MIGO

    Hi,
    i am using the enhancement SAPLV01Z for using the user defined batch number.
    In which i am allowing the system to generate the internal batch number if it is newly created batch for that particular material,site and MRP combination.For this i am using the function module EXIT_SAPLV01Z_001 and if the batch is already available in ztable suppress the internal batch number generation.
    And by using the function module exit EXIT_SAPLV01Z_002 i am copying the already available batch and passing to the variable new_charge in that function module.
    every thing is OK. But the prob is system checking the availability of the batch for combination of materila and site in batch master table MCHA and throwing an error saying that no batch is found,enter batch.
    Now i want to skip the checking of MCHA table if it is already there in my ztable.For that i am implemented the OSS Note 1035372 but it is not working.
    And one variable call_vb_create i need to pass X for that i need access key.
    Can any body have solution with out using the access key..
    Thanks and regards
    anil

    Sorry I hadn't seen this question.
    I got the same issue today and used EXIT_SAPMM07M_010. It works fine.
    This user exit fix the issue

  • Same preparedstatement object for different queries.. ?

    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    connection con.setAutoCommit(false);
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE DEPT SET MGRNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,mgrnum1);
    prepStmt.setString(2,deptnum1);
    prepStmt.addBatch();
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE EMP SET EMPNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,empno1);
    prepStmt.setString(2,deptnum2);
    prepStmt.addBatch();
    Whether we can take same preparedstatement object for different query..??Its not giving any error but its not updating all the records but only the last one...
    Any solution..

    kriti123 wrote:
    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    Ignore all of the above.
    You are using a batch.
    There is a specific idiom for that. You create the statement once and then keep calling the appropriate methods on it to load and then execute the batch, and check errors.
    When done you close it. If you need commit you are going to need to deal in blocks.
    If you have a large volume of data then database import tools are very likely to be substantially faster.

Maybe you are looking for

  • HP FQ834UT USB Universal Docking Station software won't work on my HP laptop with Windows 7 64 bit

    I am using Windows 7 and when i went to load software for my docking station, HP FQ834UT USB Universal Docking Station, it said it couldn't use the driver.   Is there a software upgrade to allow this driver to work on a HP laptop with Windows 7 64 bi

  • DDL for table & all its dependent objects

    Hi, I'm trying to perform online_redefinition of a table in Oracle 11g. After this the depedent objects like indexes & Primary Keys & Foreign Keys are missing. Can anyone help with a detailed step by step procedure to perform this online_redefinition

  • Pulling row numbers out of tables.

    I have been looking for different ways to pull row numbers from tables.  There appears to be two main methods, one of which works for me and the other that does not.  The first is: NameDataSet.Tables.Rows(0).Count This gives me the number of rows in

  • Adding buttons in null layout...

    Hi..., I am new to Java and I would like to know how null layout can be implemented in a frame and how to add buttons on in anull layout. Any help would be appreciated.

  • Adding Objects To a HashSet, overriding equals and hashCode

    Hi everyone, I'm trying to add objects to a HashSet, using a string identifier (an attribute of these objects) to determine if two objects are equal. I have a class 'IntExpEvent' class that overrides the equals and hashCode methods. public class IntE