Development component for UME usage in WebDynpro

Hi,
We develop several WebDynpros using the UserMappingService. Those WebDynpros are checked into the NWDI. Local builds are fine since we copied the relevant jar files into the project and referenced them in the classpath.
Builds in the NWDI fail because there the jar files for UME (com.sap.portal.usermapping.jar, com.sap.portal.usermappingapi.jar) are missing. Is there a development component we can reference so that the build infrastructure is able to find the jar files when trying to build the project?
Or am i supposed to put those jars into a library development component? This would us make prone to changes in the API since we keep our servers and developer machines at the same SPS.
kind regards
     Dirk
PS: we use EP 6 SPS 18 and NWDS 2.0.18 for development and production.

Hi,
If u r using DC for ur development then the jar file should not be added in the build path because it will be removed at build time.
For adding ur libraries u should be using an external library component. Expose this library file as public part. This is only a buildable component.
For deploying this library in the server u should create a new J2EE library component and in this used DC add the exposed public part. Deploy this application.
Finally in the Main component used DC add the External library component and in the references of ur project give the j2ee library component.
For reference see valery's blog
<a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro External Jars in DC</a>
- Hope it helps,
Nagarajan.

Similar Messages

  • Development Component for Quota overview

    Hello,
    I have to modify the Quota Overview/Time Accounts service for ESS. I have imported the Development Configuration on Developer Workplace, but I am unable to find the DC for this service.
    Any help would be highly appreciated.

    Thanks for the reply.
    I found the DC for Quota overview.I want to change the name of the column header from Entitlement Type to Allotment ,Please let me know what's the right way to do it ?
    Any help would be highly appreciated./

  • Webdynpro Development Component Callable Object Escalation

    Hi,
    In gp sequential block workflow  using webdynpro development component callable objects  When the initiator intiates a workflow ,it is assigned to the first approver.Now if the approver does not take any action within 2 days i want to escalate the task to the second approver.How can i do this escalation?
    There is a standard parameter call <b>due date</b>...in action.How can I set this value dynamically from my application..
    During escalation , the next approver has to be taken by executing an rfc in the background
    Please help....
    Thanks,
    Shamila

    Hi,
    You can define a CAF Core application service (implemented in the CAF Core layer) or a background CO (implemented by a J2EE class interface) which can call a RFC to get the next approver and return the next approver's user id as an output parameter. You can use dynamic user assignment in the next action (approval), by selecting the processor as "Filled From Context Parameter" (at the Roles tab in block level) and select the user id output parameter of the background CO/CAF app service CO.
    You can get more details on different types of CO at the CAF Tutorial Center @SDN
    Thanks,
    Dipankar

  • Importing Java Bean Model in Webdynpro Development Component

    Hi All,
    Is there any simple tutorial, example  to import java bean model in webdynpro development component.
    I am using NWDS 7.0 SP14 and WAS 7.0.
    it really helps if you can  provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
    what are the steps to be followed with precautions
    Thanks in Advance,
    Murali

    Hi,
    [Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
    [Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    you will get more if you search in the forum.
    more help on EJB's
    Re: Help needed in EJB
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    PradeeP

  • Importing Development Component - Webdynpro and Guided Procedures

    Hi All,
    I created a development component project of type  "Webdynpro". I created callable Object in guided procedures and the Process is working fine. I want to import the same project into another Nwds (another workspace).
    I tried the following steps.
    1. File - import - Multiple Existing project into workspace.
    2. Imported the DC.
    I have already added all the Gp jarfiles. But after importing, and rebuilding the project, it gives me only webdynpro and components,views.. It is not showing me as a normal webdynpro project. It is not showing me the GP Api's, the "USED DC's". which i created in the other project.
    When i am creating a new project, it is working fine.Can anyone please help me in resolving this issue? How can i import a DC (gp) into webdynpro?
    Thanx and Regards,
    Divya

    Hi,
    Take a look at this [thread|/thread/119966 [original link is broken];
    Dick.

  • No prefix found for development component

    Hello all,
    I do not fully understand the concept of Namespace prefixes.
    I have created a "Development Component Name" "innobis.de/test" and a "Design Time Package" with value "de.innobis.test" in the SLD.
    I imported the Development Configuration from the NWDI and created a new CAF DevelopmentComponent. There is no possibility to choose any namespace-prefix.
    When trying to "checkin" the initial activity which contains the newly created DC, the following error is thrown:
    FAILED: No prefix found for development component "asdgsdg/dictionary".
    Appropriate development component prefix should be configured in SLD
    (Restart IDE after reconfiguring SLD).;
    No prefix found for development component "asdgsdg/ejbmodule".
    Appropriate development component prefix should be configured in SLD
    (Restart IDE after reconfiguring SLD).;
    No prefix found for development component "asdgsdg/ear".
    Appropriate development component prefix should be configured in SLD
    (Restart IDE after reconfiguring SLD).
    No prefix found for development component "asdgsdg/permissions".
    Appropriate development component prefix should be configured in SLD
    (Restart IDE after reconfiguring SLD).;
    No prefix found for development component "asdgsdg/metadata".
    Appropriate development component prefix should be configured in SLD
    (Restart IDE after reconfiguring SLD).  initial
    Any idea? Help very much appreciated.
    Thanks,
    Kai
    (NWDI 7.0, NWDS 7.1 SP07, NW CE 7.1 EHP1 System)

    Kai,
    check this link on name prefixes
    http://help.sap.com/saphelp_nw70/helpdata/EN/df/2761930dd9b74a85198f9e48850046/frameset.htm
    Thanks
    Bala Duvvuri

  • Webdynpro Development Component project error

    Hi All,
    I am trying to use a DC1(Development Component) in another DC2 component, but when i am trying to deploy and run the application of DC2, which use the DC1 component.  It is giving error like below.
       java.lang.UnsupportedClassVersionError: com/hp/dc1/wdp/InternalDc1Comp1 (Unsupported major.minor version 49.0)
    Can anybody help me in solve out this.
    Thanks in advance,
    Ravi

    Hi Ravi,
         This problem is not with the DC you are creating. This exception can occur when the source is compiled on one version of JDK that is not supported by JDK attemting to run it. In your case your DC was built targeting only JDK 1.5, but the Portal server JDK might be 1.4 or different then JDK 1.5.
    You can check the JDK version of the server and if its other than JDK 1.5 then installed the same version on your machine to compile the code.
    Hope this will resolve your problem.
    Regards,
    Nikhil

  • Error while creating the development component project

    Hello
    i tried to create development component project through NWDS which is expected to be used as CallableObject but it gave following exception
    Plugin name: Web Dynpro Archive Builder
    Plugin ID: com.sap.ide.webdynpro.archivebuilder
    Class: com.sap.ide.webdynpro.archivebuilder.project.WebDynproDevelopmentComponentProjectWizard
    Method: createProject(String, IPath, IProgressMonitor)
    Message: Invalid project description.
    Exception: org.eclipse.core.internal.resources.ResourceException: Invalid project description in plugin name
    I am using NWDS 7 version and using J2EE engine of NetWeaver 2004s server.
    Thanks in advance.
    Regards
    Rajeev

    Hi
    sorry for that
    see the below link ,it will be helpful for u.
    Re: development component
    Regards
    Hazrath

  • Error while building development component project

    Hi all,
    I have created one webdynpro application in which i am importing javabean model using jars in my build path.I am able to execute that application successfully but when i try to import that application in a new development component project, i am getting errors in my bean class (IPrivateBeanclassname) for some getter setter methods saying the method is not defined....
    I have put the same jar in its build path also.
    Can somebody please help...
    Thanks,
    Mayuri

    Hi,
    I am importing the application as follows:
    1) I have developed a web dynpro project. This project has a jar file for getting the java classes. The web dynpro application works fine.
    2) I imported this application into a Development Component Project. Here it fails to recognize the jar file that is required. Even if I put the jar file in its build path, while building, the jar file gets removed.It says java build path errors.
    Please help!
    Thanks,
    Mayuri

  • Using JPA Entity-Objects defined in other EJB-Development Component

    Hello Community,
    I'm working on a Java-Application on NW CE 7.1, using JEE5 Beans in the Business-Logic-Layer and WebDynpro/Java in the UI-Layer.
    I designed a Bean for working with data, stored in a database-table of the system-database.
    For that addtionally i created a class, representing the Entity-Object, in the same Development-Component of Type EJB 3.0.
    It looks like this:
    @NamedQueries ({
         @NamedQuery (name="findAllSdCust", query="SELECT c from SdCust c ORDER BY c.kdnr"),
         @NamedQuery (name="findSdCustByKdnr", query="SELECT c from SdCust c WHERE c.kdnr = :kdnr"),
         @NamedQuery (name="findSdCustByIlnnr", query="SELECT c from SdCust c WHERE c.ilnnr = :ilnnr")
    @Entity
    @Table(name="ZKALL_SD_CUST")
    public class SdCust implements Serializable {
         @Id
         @TableGenerator (name="idGenerator", table="ZKALL_ID_GEN", pkColumnName="GEN_KEY", valueColumnName="GEN_VALUE", initialValue=100)
         @GeneratedValue (strategy=GenerationType.TABLE, generator="idGenerator")
         private long id;
         private String name;
         private String lname;
         private String kdnr;
         private String ilnnr;
         private long connid;
         private long cnt;
         @Version
         private long version;
          Constructor, Getter and Setter methods follow here
    The corresponding bean looks like this
    @Stateless(name="SdCustBean")
    public class SdCustBean implements SdCustLocal {
         @PersistenceContext (unitName="xyz")
         private EntityManager em;
         public SdCust getSdCustByKdnr (String kdnr)
              SdCust result = new SdCust();
              // List<Manufacturer> resultList = new ArrayList<Manufacturer>();
              Query  myQuery = em.createNamedQuery("findSdCustByKdnr");
              myQuery.setParameter("kdnr", kdnr);
              result = (SdCust) myQuery.getSingleResult();
              return result;
         public void setEM (EntityManager iem)
              em = iem;
           // other methods .....
    After that i created a new Development-Component of Enterprise Application-Type and added above DC to this EAR-DC. I also supplied the nessecary descriptor-files/Enries in EJB-DC and EAR-DC.
    When now using this bean from WebDynpro with the Web-Dypro EJB-Model-Import everything works fine.
    The bean returns the desired object(s).
    But now i created a new DC of type EBJ 3.0
    This DC contains a Message Driven Bean. That MDB is a Job-Bean which i want to schedule. That  Bean uses JRA to connect to an SAP-Abap-System to read some Data and should use JPA to insert/upate/delete the read data in the Database. This should work as a simple replication for my application.
    I assigned that EJB-DC containing the MDB to a new EAR-DC together with job-definition-xml and the neccessary entries in deployment-descriptors.
    After deploying i see the corresponding job-defition in the NW scheduler using the administrator-views.
    I'm also able to schedule the job and it executes fine. Connecting to SAP-Abap System also works fine using JRA.
    But JPA does not work!!!!!
    I created an dependency from my EAR-DC containing the Job EJB-DC and to the EJB-DC containing the Entity-Class.
    I tried three diferent things to get i running, but all of them failed.
    1.)
    The part  looks like:
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
      @EJB SdCustBean mybean;
       public void onJob(JobContext ctx) throws Exception {
            SdCust sdCust = mybean.getSdCustByKdnr (mykdnr);
    Compiles fine. But this fails because the Data is stored in the system-database. The exception says, that i have to use a datasource which supports 2-Phase commit. I know, that i could possibly solve this problem by annotation the Method getSdCustByKdnr with the Annotation for the Transaction-Manager to use REQUIRES_NEW Transaction. But i dont want to generally annotate my methods this way.
    2.)
    This part looks like this
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
    @PersistenceContext (unitName="xyz")
    private EntityManager em;
       public void onJob(JobContext ctx) throws Exception {
         SdCust cust = new SdCust();
         Query  myQuery = em.createQuery("SELECT c from SdCust c WHERE c.kdnr = :kdnr");
         myQuery.setParameter("kdnr", dbkdnr);
         cust = (SdCust) myQuery.getSingleResult();
    This also results in a runtime-exception because the entity-Manager cant resolve SdCust from the Query as an Object. The Exception is:
    java.lang.IllegalArgumentException: line 1: Abstract Schema Type 'SdCust' doesn't exist
    SELECT c from SdCust c WHERE c.kdnr = :kdnr
    3.) and last try so far:
    public class MasterDataReplicateJobBean extends MDBJobImplementation implements MessageListener
    @PersistenceContext (unitName="xyz")
    private EntityManager em;
       public void onJob(JobContext ctx) throws Exception {
         SdCustBean custBean = new SdCustBean();
         custBean.setEM(em);
         SdCust cust = custBean.getSdCustByKdnr(kdnr);
    In this example i use the Bean from the beginning not as a bean itself but as a normal class. that class has an addtional Method setEM to set the Entity-Manager (which is injected when using the class as a bean)
    In that way i got the exception, that the named Query "findSdCustByKdnr" cannot be found by the entity-manager.
    It seems to me, that i can access the class, but that all annotations belonging to JPA for that class are not recognized.
    Does anybody can give me a hint to solve this problem? Did i forgot something important?
    best regards
    matthias hayk
    Edited by: Matthias Hayk on Feb 5, 2009 9:38 AM

    I was already on wright trace.
    My class "SdCust" was not recognized by the Entity-Manager as an Entity-Class.
    This relies on the storage of the entity-class and where the Entity-Manager looks for entity-classes.
    By default it seems to look for all classes in the same jar file. thats the reason why everything works fine when the using bean and the entity-class are in the same project.
    In my last case, the using bean is in another  development-component and so also in anohter jar file. in this case the entity-manager must be told where to find entity-classes.
    this is done in the persistence.xml file.
    i added the line
    <jar-file>xxx.yyy.com~mdata_beans.jar</jar-file>
    underneath the <persistence-unit>-tag.
    This works.
    regards
    Matthias Hayk

  • Requirement to maintain select-options for multiple fileds in webdynpro aba

    Hello Gurus,
    We have a requirement to maintain select-options for multiple fileds in webdynpro abap.
    now we are able to create select-options for a single field using wdr_select_options componet usage.
    how can we achive this select-options feature for multiple fields.
    Could anyone please suggest solutions?
    and if possible send me the sample code for this requirement.
    Thanks in Advance for your replies.
    Regards,
    Shyam

    Hi,
    Nothing different for more fields, same. some declaration changes.
    For example code i am using.. in WDDOINIT method.
    TYPES:
        fiscal_year TYPE RANGE OF GJAHR,
        S_KUNNR TYPE RANGE OF J_3RS_KUNNR,
        S_VKORG TYPE RANGE OF VKORG_RAN,
        status type PVWTY-RETPA,
        ty_r_date TYPE RANGE OF s_date,
        ty_s_date TYPE LINE OF ty_r_date.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
      DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_cmp_sel_opt( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * Reference variable used instantiate the select-options component
      DATA
        lr_cmp_usage TYPE REF TO if_wd_component_usage.
    * Variables used to create the select-options fields and
    * define its initial values
      DATA:
        lr_field TYPE REF TO data,
        ls_date  TYPE ty_s_date.
      FIELD-SYMBOLS:
        <fs_field> TYPE ANY,
        <fs_range> TYPE INDEX TABLE.
    * Instantiate the select-options component
      lr_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lo_interfacecontroller =   wd_this->wd_cpifc_cmp_sel_opt( ).
    wd_this->m_sel_opt = lo_interfacecontroller->init_selection_screen( ).
    data : vhelp type wdy_md_value_help_mode_enum .
    * Sets the helper reference
      wd_this->m_sel_opt1 = wd_this->wd_cpifc_cmp_sel_opt( ).
      wd_this->m_helper  = wd_this->m_sel_opt1->init_selection_screen( ).
    * Hide the standard select-options components.
      wd_this->m_helper->set_global_options(
        i_display_btn_cancel = abap_false
        i_display_btn_check  = abap_false
        i_display_btn_reset  = abap_false
        i_display_btn_execute  = abap_false
      lr_field = wd_this->m_helper->create_range_table( `KUNNR` ).
      wd_this->m_helper->add_selection_field(
        i_id           = `KUNNR`
        I_DESCRIPTION  = 'Customer Code'
    *    i_within_block = `BL01`
        it_result      = lr_field ).
      FREE lr_field.
      lr_field = wd_this->m_helper->create_range_table( `VKORG` ).
      wd_this->m_helper->add_selection_field(
        i_id           = `VKORG`
        I_DESCRIPTION  = 'Sales Organization'
    *    i_within_block = `BL01`
        it_result      = lr_field ).
      FREE lr_field.
    Go through this..
    http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages
    Cheers,
    Kris.

  • Comparison between WebDynpro for ABAP vs. WebDynpro for Java ??

    Hi,
       Can someone tell me when should we go for WebDynpro for ABAP and when WebDynpro for Java. Is there any link where SAP recommends the one for the other.
    Thanks in advance
    Regards
    Mukesh

    Hi Mukesh,
    Both are having its own strengths!! )
    I think it all depends on your project requirement and the availabel resources.
    If the developer is good in OOPs ABAP then he must go for Web Dynpro ABAP. But if anyone is good in JAVA then that person should go for Web Dynpro JAVA.
    *In Short almost all Features supported in webdynpro ABAP are also Possible in webdynpro Java.
    1] Webdynpro Java
    Supports,
    webservice
    RFC Models
    Accessing Portal information in Java
    Easy sending E-mail
    Strictly follows MVC architecture which seperate Business logic and Process flow.
    Webdynpro Java is webbased programming model to develop SAP Applications.
    Easy to learn
    Easy to integrate in Enter prise portals.
    Dynanamic Programming
    *Easy access to R/3 Via RFC technology (Models)
    2] Web Dynpro ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    Hope this helps and solve your Problem
    Cheers,
    Darshna.

  • SAP EU software component for Web Dynpro SP9

    Hi all,
    I've followed the tutorial on how to create a Web Dynpro Callable object and couldn't go further because I couldn't find the libraries needed in the Local DC (caf/eu/gp/api/wd) api's.
    I've found the Blog from Andre Truong on how to retrieve this API's in your Local Development Component projects (SP7).
    /people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development
    Unfortunally this is only working for SP7 (And maybe SP8) but not for SP9.
    In the blog Andre mentioned that this problem might be resolved with SP9 because the API's come as default with the IDE.
    This appears not to be the case for me.
    Does anyone know how to resolve this problem?
    PS I also read the following thread and the reply from Tomas Kuba but that seems to be a difficult and dirty way to do it?
    Re: Guided procedures & WebDynpro (SAP-EU software component)
    Thanks in advance!

    Ok, seems to work just fine for SP 9 also.
    Only the folders eu and gp don't excists. Just create them and extract the zip files.
    Great blog thanks!
    Message was edited by:
            B. van Prooijen

  • Copying a project into development component project

    hiii,
    I have a webdynpro project called DP_OrderEntry developed in NWDS 7.0.9. I need to copy it into development component dc_OrderEntry in NWDS 7.0.14.
    Can anyone tellme the steps for doing it?
    Can any error can crop up due to the difference in the versions?
    Regards,
    parama laha.

    hii,
    the project is imported but I am getting an error:
    Error               The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.security.api.IUser. Fix the classpath then try rebuilding this project.     LocalDevelopmentdc_oentrlntinfotech.com
    Is this because the project i copied from was on NWDS 7.0.9 and currently this project is on NWDS 7.0.14 ??
    I have already done 'repair project structure and classpath'
    How to eradicate dis error??

  • Global object visible for all sessions in WebDynpro application

    Hello everybody,
    in a normal java web application you have the possibility
    to put an object into the servlet context.
    This object is visible for all sessions(e.g. some configurations or global settings for the
    web application).
    Now my question:
    Is there a possibility in a WebDynpro application to put such an object into a "global context" visible for all sessions?
    So I am looking for a container in WebDynpro which has
    the same behaviour like the servlet context in a web application.
    Thank you for your ideas an suggestions.
    Greetings
    Anton

    Hi Anton,
    To make an Variable Global ,you have define variable at various levels based on Usage.
    1)Ex: If you want to define Variable between two different Components . when A component is embedded into B Component then you have to define at Component Interface level and Mapping has to be Defined.
    2) If you want to make Variable to be used within the component among the Iviews ,then you can define at Component Controller or Custom Controller and Mapping has to be defined at Iview Level.
    3) If you want to use Variable between two Webdynpro Iviews then you have define the eventing mechanism to pass the values among the EP Webdynpro Iviews.
    Hope this answer helps you.
    Thanks
    Madhan

Maybe you are looking for

  • How do you set the y-intercept to 0 for a trendline? HELP PLEASE!!

    So I created my xy scatter plot and have the trendline and I need to know how to set the y-intercept as zero to get the slope to be the average solution of my equation but I don't know how to do this. Help PlEASE!

  • Not able to start s10-3 Lenevo Laptop

    I tried upgrading my RAM, and inserted the spare DDR3 2 GB ram into the memory slot of Lenevo S10-3 laptop, but unfortunaly after doing this my laptop is not booting up at all. I tried re-inserting the old memory but still the laptop is not starting

  • Having multiple Stored procedure in a single Business Service in OSB

    Hi, Please let me know is it possible to have multiple Stored Procedure inside one business service in OSB. Regards, Abdul

  • Difference in deposit date and first application date

    We are building an analytical application off of the EBS AR Module. I have noticed a number of records that have a deposit date on the receipt that is at least 2 weeks before the first receivable_application record (even Unapplied transaction). Could

  • MBP retina screen flicker black?

    Hello, after doing so much research and feels like getting no answer I decided to post on this forum, I hope I will get any answer so I own a new MBP retina 15", it just came last week and I just start really using it yesterday. When I was working wi