Problem refactor classes residing in different development components?

Hi!
In dc1 defined class "ClassExample" added to public part.
When in dc2 apply refactoring for "ClassExample" to "ClassExampleNew" issue error message - Method to be renamed is binary.
Support nwds refactoring classes defined in different dc?
Wbr, Ivan.

Hi Pooja,
thank you very much for your response. But - the problem lies in custom portal development component. When I want to use some custom portal service in my web dynpro, I should write into sharing reference "PORTAL:vendor.com/MyAmazingService". MyAmazing service is name of development domponent (PAR type) deployed on portal before.
No problem here - problem begins in developing this  custom portal service as development component. When I want to build my portal service as DC, there is problem of used libraries. It's not the same as classpath in NWDS (it would be nice if it will be connected, but it isn't). The classpath for DC build is generated from "used DC's" and that's the problem - how to add KM or RF classes as "used DC"? Where can I found them?
I'm asking for correct design and component architecture - maybe my current attitude is wrong. Every example and tutorial works only with "create new project by this way..." "your first sample..." but some turorial for component architecture, making some reusable applications etc... I didn't found any.
This helped me a little bit, but I want more:
/people/chris.whealy/blog/2006/01/13/when-creating-a-java-web-dynpro-application-dont-use-the-project-type-quotweb-dynpro-projectquot
A bit of (impractical) scripting for Web Dynpro
Thanks,
Martin

Similar Messages

  • Management of Beanu00B4s Relationships in Development Components

    Hi,
    I´m developing a project where I need to use DC for reutilization. I have already created two DC, one DC that contain an entity bean call Improvement and other DC that contain an entity bean call LongText that has the Improvement primary key like a foreign key. So, I need to establish an one to many relationships between the entity beans that are in different development components, but I created the LongText public parts and I did add them to the Improvement Used DCs, and I did create the relationship between the two of them in the ejb-jar.xml of the Improvement DC because I need it to be unidirectional, but doesn´t appear for add the relationship in the persistent.xml.
    I´m using the SAP Developer Studio 2.0 SP13.
    If someone know what can be the error, I will we grateful.
    Regards

    Hi Experts,
    Could you please reply any one.
    Thanks in advance.
    Regards,
    Jyothi

  • How can i look up a EJB residing in different machine from client side?

    hai ,
    How can i look up a EJB residing in different machine from client side?
    this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
    package com.parx.lms.lmsdelegate;
    import com.parx.lms.exception.LMSException;
    import javax.naming.Context;
    import javax .ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    import com.parx.lms.controller.*;
    import com.parx.lms.vo.UserVo;
    import com.parx.lms.exception.BusinessException;
    import java.util.Hashtable;
    import java.lang.*;
    public class LmsDelegate{
    private final static String JNDI_NAME="LmsBean";
    private static String url="http://localhost:4848";
    public static Lms lms = null;
    public void getController() throws CreateException,
    NamingException,RemoteException{
    if(lms == null){
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    public void addUserDelegate(UserVo vo) throws BusinessException{
    try{
    getController();
    System.out.println("Before calling the addUser of Session");
    lms.addUser(vo);
    }catch(CreateException e){
    System.out.println("Create Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(NamingException e){
    System.out.println("Naming Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    catch(RemoteException e){
    System.out.println("Remote Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(LMSException e){
    System.out.println("duplicate user name--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    pls help me..........

    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
    Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
    private static String url="http://localhost:4848
    Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine.

  • Import and Export of Webdyn pro development components

    Hi
    I am having a problem in importing a development component.
    When a component has to be transfered from one NWDS to another NWDS i generally export the development component as a zip file. How do i import the Zip file into other NWDS. I tried the import option but the import is not proper.
    Any other way of exporting and importing development components ?
    Regards
    NagaKishore

    Hi Karin,
    I faced a similar problem some time back. I unzipped the project and then imported it. But what i found is that in the webdynpro explorer i could not find the nodes for Public parts and so which are specific to DC projects.
    Regards
    Sidharth

  • Eventing between 2 Local Development components possible ?

    Hello,
      I have 2 Local DCs named 'Main' and 'Search'. As the name suggests, Main embeds Search in the "Used Web Dynpro components" and passes (via context mapping) a search parameter to Search. Search will appear as a popup window and display the table results if a match or several matches are found. User then have the option of selecting the one of the result from the table or cancel the search.
      Everything works fine till I am trying to fire an event from Search to call the handler in Main. It seems that Search is not able to 'see' the handler that i have created in Main and is not able to close the popup search window.
      The tutorial "Dialog Boxes in Web Dynpro Applications" demonstrates how to do eventing within the same component but I will like to know how can I do the above between 2 different Local Development components. Does anyone have a solution or idea to this ? Thank you very much.
    from
    Kwok Wei

    Hi,
    I think with that search parameter you can also pass on an extra parameter say <b>win</b> of type <b>IWDWindow</b> containing the reference of the window created in the main view.
    In the popup window on action close of the window, instead of calling the handler you can directly give
    win.close();
    win.destroy();
    regards,
    Mahesh K.

  • Any factors that Development Components cannot be imported?

    Dear all experts,
    I am new to Webdynpro development.  I have tried to open a webdynpro program developed by other developer before.
    1. Copy the source code under my documents and settings, e.g. d:\Documents and Settings\xxx\.dtc\LocalDevelopment\DCs\com.xxx.xxx
    2. Select File > Import and then select Development Components and logon my account to server.  Supposing the component would be appeared under Local as usual.  However, this time, I cannot see the component imported.
    May I know do you have any idea for about?  Thank you very much!
    Best regards,
    Anne

    Hi,
    You can export the DC present in the developer system and then import that .sca file into your System.
    Then refresh the Developement Component.
    Now right click the DCs available and select Create Project if it is available.
    In the next step right click on the DC and select sync Used DCs.
    Then Build and Deploy the DCs.
    If you have any problem (errors) while Syncing or Building check the error log for Missing DCs.
    For any guidance on importing and exporting the Development Component follow this link.
    /people/srinivasan.subbiah/blog/2008/03/21/team-oriented-development-without-remote-nwdi-in-ce-71
    Note: The Developement Configuration package should be same in both the systems.
    Regards,
    Gayathri.

  • Class for Purchase order item components and Production order components

    I'm looking for a some classes.   I'm very new to objects, so I could be searching for them incorrectly.
    The first class I'm looking for is a purchase order class that contains the item components.  I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM.  I couldn't find components as a part of either of the classes.
    The second one I'm looking for is not as critical.  It is for the components for a production order.   I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order.  However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
    Any help that you could give would be greatly appreciated.
    Thank you!
    Michelle

    Hello Michelle
    I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
    *& Report  ZUS_SDN_OO_READ_PO
    *& Thread: Class for Purchase order item components and Production order components
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
    "& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
    REPORT  zus_sdn_oo_read_po.
    TYPE-POOLS: abap, mmpur.
    PARAMETER:
      p_ebeln   TYPE ebeln  DEFAULT '3000000045'.
    DATA: gs_document    TYPE mepo_document,
          go_po          TYPE REF TO cl_po_header_handle_mm,
          gs_header      TYPE mepoheader,
          gd_tcode       TYPE sy-tcode,
          gd_result      TYPE mmpur_bool.
    data: gt_items       type PURCHASE_ORDER_ITEMS,
          gs_itm         type PURCHASE_ORDER_ITEM,
          gs_item        type mepoitem.
    START-OF-SELECTION.
    *  prepare creation of PO instance
      gs_document-doc_type    = 'F'.
      gs_document-process     = mmpur_po_process.
      gs_document-trtyp       = 'A'.  " anz.  => display
      gs_document-doc_key(10) = p_ebeln.
    *  object creation and initialization
    **  l_ebeln = purchaseorder.
      CREATE OBJECT go_po.
      CALL METHOD go_po->po_initialize( im_document = gs_document ).
      CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
      CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
    *  read purchase order from database
      gd_tcode = 'ME23N'.
      CALL METHOD go_po->po_read
        EXPORTING
          im_tcode     = gd_tcode
          im_trtyp     = gs_document-trtyp
          im_aktyp     = gs_document-trtyp
          im_po_number = p_ebeln
          im_document  = gs_document
        IMPORTING
          ex_result    = gd_result.
    *  there was a problem in reading the PO
      IF ( gd_result EQ mmpur_no ).
    **    l_messages = l_handler->get_list_for_bapi( ).
    **    PERFORM return TABLES l_messages return
    **                          poitem poschedule poaccount.
    **    CALL METHOD l_po->po_close( ).
      ELSE.
        gs_header = go_po->if_purchase_order_mm~get_data( ).
        WRITE: / gs_header-ebeln,
                 gs_header-bukrs,
                 gs_header-bsart,
                 gs_header-lifnr.
      ENDIF.
      gt_items = go_po->if_purchase_order_mm~get_items( ).
      LOOP AT gt_items INTO gs_itm.
        gs_item = gs_itm-item->get_data( ).
        write: / gs_item-ebelp,
                 gs_item-matnr,
                 gs_item-menge.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • Line Item text diplay for different wage components

    Hi Experts,
    My Client wants the exact narration (Monthwise) in line item text for the salary components which are posted to accounts. If I am using FB03 then the system is allowing me to maintain it manually, but it's not possible for headwise different salary components for 20,000 employees (Which is the manpower strength of the client) is there any other workaround for it? Is it possible that the monthwise narration will float for the wage components through the respective module?
    Please help in this regards.

    Hi Experts,
    My Client wants the exact narration (Monthwise) in line item text for the salary components which are posted to accounts. If I am using FB03 then the system is allowing me to maintain it manually, but it's not possible for headwise different salary components for 20,000 employees (Which is the manpower strength of the client) is there any other workaround for it? Is it possible that the monthwise narration will float for the wage components through the respective module?
    Please help in this regards.

  • Vis that reside in different location but have a same name und different funktion

    Can i use in LabView 5.01 Vis that reside in different location but have a same name und different funktion?
    How? I don´t wand to rename the VIs.

    Sorry, you can't have homonymous VIs simultaneously in memory. You'll have to rename one of them.
    LabVIEW, C'est LabVIEW

  • Problem with system settings for different project.

    Hello, I have something that pauses me a lot of problems. I work on different editing projects with deferent externe Hard Disc. I have 3 of those but on each one I have the video and sound and render...importation for one specific project. The thing is that I want that FC automatically changes the setting to where make the saves and import the new material (video cassettes...). It means if I open a project in disc 1 and import video it does not put it in disc 2 just, disc on witch I worked juste before on an other project. I'll have a lot of off media problems and risks of loosing things...
    What can I do ?
    Thanks for reading !
    Message was edited by: Napoléon23

    YOu have to manually reset the Scratch Disk for each project you open. There is no automated way to do this in FCP at this time.
    Shane

  • How to instantiate a class from a different package?

    I am trying to instatiate a class in a package: a.b.c from another class in a different package: d.e.f
    How could I do so?
    I've already been trying many things but didn't manage to get it to work...

    Did you include both jar files in your classpath? Use
    the -cp option of the java interpreter to specify your
    classpath.Well, I tried adding the jar file to the classpath, without any success...
    String path = getClass().getProtectionDomain().getCodeSource().getLocation().toString();
                   String finpath = "";
                   for(int i=6;i<path.length();i++)
                        finpath = finpath+path.charAt(i);
                   System.setProperty("java.class.path",System.getProperty("java.class.path")+";"+finpath+"mm.mysql-2.0.14-bin.jar/");That's what I did and it didn't work...
    If you "unpack" the jars see if there is the correct
    packages-folders symmetry...Yes, the classes are in the package-folders they should be in..

  • Invoke a method in one class from a different class

    I am working on a much larger project, but to keep this simple, I wrote out a little test that would convey the over all theory of the program.
    What I am doing is starting out with a 2 JFrames and a Class. When the program is launched, the first JFrame opens. In this JFrame is a label and a button. When the button is clicked, the second JFrame opens. This JFrame has a textField and a button. The user puts the text in the textField and presses the button. When the button is pushed, I want the text that was just put in the textField, to be displayed in the first JFrame's label. I am trying to invoke a method in the first JFrame from the second, but nothing happens. I have also tried making the Class extend from JFrame1 and invoke it from there, but no luck. So, how do I invoke a method in a class from a different class?
    JFrame1 (I omitted the layout part. I made this in Netbeans so its pretty long)
    public class NewJFrame1 extends javax.swing.JFrame {
         private NewClass1 nC = new NewClass1();
         /** Creates new form NewJFrame1 */
         public NewJFrame1() {
              initComponents();
              jLabel1.setText("Chuck");
         public void setLabels()
              jLabel1.setText(nC.getName());
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                                  
         NewJFrame2 j2 = new NewJFrame2();
         j2.setVisible(true);The class
    public class NewClass1 {
         public static String name;
         public NewClass1()
         public NewClass1(String n)
              name = n;
         public String getName()
              return name;
         public void setName(String n)
              name = n;
    }The second jFrame
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                                  
         NewClass1 nC = new NewClass1();
         NewJFrame1 nF = new NewJFrame1();     
         nC.setName(jTextField1.getText());
         nF.setLabels();
         System.out.println(nC.getName());At this point I am begging for help. I have been trying for days to figure this out, and I just feel like I am not getting anywhere.
    Thanks

    So, how do I invoke a method in a class from a different class?Demo:
    public class Main {
        public static void main(String [] args) {
         Test1 t1 = new Test1();
         Test2 t2 = new Test2();
         int i = t1.method1();
         String s = t2.method2(i);
         System.out.println(s);
    class Test1 {
        public int method1() {
         return 10;
    class Test2 {
        public String method2(int i) {
         if (i == 10)
             return "ten";
         else
             return "nothing";
    }Output is "ten".
    Edited by: newark on May 28, 2008 10:55 AM

  • How to use common resource bundle across all the development components ?

    Hi,
    I am working on SAP NetWeaver Developer Studio - JAVA
    How to use common resource bundle across all the development components ?
    Description :
    I have a requirement of creating a resource bundle (resource.properties) and use that common resource bundle in all the development components.
    Can we create a  development component (war and ear both) and create only resource.properties in this development component( DC ) and create the dependency of the same DC  in all the other DCs ?
    Thanks,
    Neha

    Hello Neha 
    This question is more NWDS related.
    You may have a better chance of someone answering the thread under
    SAP Netweaver -> SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI) forum
    Thanks
    Kenny

  • Backward Navigation in development components

    Hi folks
    According to my scenario, i have 3 DC's named A, B, C.
    A is master DC and is using B as used DC's in metadata . where B is using DC C. So there is linear dependency between them.
    Now my requirement is to navigate from A to C through B.and vice versa.
    Default inbound interface plugs of B and C are used to navigate forward by A and B respectively.
    Now direct backward navigation is possible up to second level through Out Plug of Interface Controllers i.e from B to A and C to B respectively.
    My Requirement is backward navigation from C to A without creating cyclic dependency and using dc C in dc A.
    I have more than 3 development components which have to navigate back to dc A.
    Thanks in anticipation,
    Mandeep Virk

    Hi Naga
    This is a good piece of information but regarding navigation nothing is provided.
    Here author is using ViewContainerUiElement in consumer for other components which i can not use because i have buttons in views on action of which i am preforming some methods and passing context values to other components.
    If i use ViewContainerUiElement still i have to navigate using plugout of interface controllers. i can not directly navigate directly coz it will not pass the context to next component.
    Any idea
    Mandeep Virk

  • Active and inactive development Components

    Hi,
    What are active and inactive development Components ?
    Thanks,
    sowmya

    Hi,
       Basically in the Development Configuration you will be able to see 2 types of development component.
    1)Active
    2)Inactive
    Whenever user needs to change any coding or development then he needs to do this in the inactive DC.
    After check in the activity it will sync with the Active DC.So that means the Active DC is contained data after the check in activity.Both are sync.We are not able to do any changes in active DC.
    This is the restriction by sap
    Thanks
    Kanai

Maybe you are looking for

  • Date enable and disable in tabular form

    Hi All, i have date column in tabular form. when date column contain null value then it is enable to insert date. if it is not null then disable to insert date. how to achieve it. Please give me suggestion. Thanks, Prashant

  • Safari not running after ios8 update for ipad

    I updated my Ipad with Retina display with ios8 lately and noticed that safari is not running after update. whenever i try to open it it just pop open and close immediately and automatically. There was no problem of this kind before the update. Any s

  • Playing AVI movie files??

    Help. I have 3 Macs: G4 Flat Panel, Imac G5- which play AVI movie files just fine. Mac Mini (specs below) which does not. Been at it for hours. The two older ones are non-intel, the mini is intel, this is the only difference I can see. I have the sam

  • Consumer Group/Resource Plan to use only one instance of a RAC

    What would be the way to create a Consumer Group/Resource Plan to use only one instance of a RAC? I have 10.1.0.5 database running on 10.1.0.5 RAC. Thanks,

  • Permissions on dimension levels possible

    I have i dimension with the hierarchy, say Total Countries Regions Cities Shops This dimension is also in the presentation layer, so the users can drill down to the finer levels. For certain users i wan't to restrict the possibility of drilling to re