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

Similar Messages

  • 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

  • WebDynpro Application as callable object in GP?

    Hello,
      I have created a WebDynpro application in NetWeaver Studio.I have to create a callable object of this application in GP.
      This application is available in GP.I create a callable object of it, with an action, block process for this single object.(Since i cant test this callable object).
      Once i generate url and acess it, it generates an error in browser saying:
    "The page builder required to display this application UI inside the portal environment is not available".
    Kindly help me solve this issue.
    Thanks,
    Sharath

    Andre,
    Thanks a lot for your how to guide.. it's really good!.. I've followed all your steps and I've created my WD DC. Everything works fine, the build is correctly made, but when I deploy the application the following error is getting throw:
    Deployment aborted
    URL to deploy : file:/C:/DOCUME1/MARIAM1/LOCALS1/Temp/temp62306bcp.compa001de.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/MARIAM1/LOCALS1/Temp/temp62306bcp.compa001de.ear
    Aborted: development component 'pa001de'/'bcp.com'/'local'/'20070606173629'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Cannot deploy application bcp.com/pa001de.. Reason: Clusterwide exception: Failed to deploy application bcp.com/pa001de. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application bcp.com/pa001de. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine? (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    I think that the referenced components are not at the J2EE, but how can I check this or what do you think can be happening??
    Regards and thanks a lot to all!
    María Margarita Monteverde

  • 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

  • I want to integrate to WebDynpro applications using callable object

    Hi i created Dc and i want to add one  Dcs using Add Used Dcs in that cau/eu/gp/api was nto found what should i do please suggest

    Hi,
    Refer this
    http://help.sap.com/saphelp_nwce10/helpdata/en/b2/06ae42848bb211e10000000a155106/content.htm
    That will be present in GP CORE

  • Implementing and Exposing a Web Dynpro as a Callable Object

    Hi All,
    I am new to guided procedures.I am trying to implement and expose webdynpro as a callable object in CE7.1.In the library i found the following steps
    In the Component Properties view of the component, open the Dependencies tab page and add the following DCs:
    1)GP-CORE  ® caf/eu/gp/api/wd (public part GPWebDynproCO) 
    2)GP-CORE  ® caf/eu/gp/api (public part external)
    3)ENGFACADE  ® engine.security.facade (public part default)
    Choose Next and make sure that Design Time and Run Time are selected for each DC, and Build Time is selected for each of the public parts listed above.
    But i could not find ENGFACADE  ® engine.security.facade (public part default)
    Can anyone please help me.
    Regards,
    Sudhir

    Hi sudheer,
    For this we need NWDI otherwise  for NWDS sp7, we need to add caf/eu/gp/api files and toplevel dc's  externally.
    Have you added them or not .(First you try to bring those API files to your local development and then you need to add them to your DC).
    After that we need to select them for the development component >DC Meta data> used dc's .Here  select
    1)caf/eu/gp/api>Dc metadata>Public parts-->external
    and
    2)caf/eu/gp/api/wd
    3)From Local development>SAP_JEE>com.sap.security>api>sda
    Along with this you need to select the dependency type.
    Once you added API you'll be able to see those under used dc's and check their properties.There whatever dependency's you've selected , they  should be enabled  TRUE. Otherwise try to edit the used dc's by Right clicking on it and edit Used Dc's properties and make those dependency's like design time,build time and runtime as true.
    Make sure that you've added caf/eu/gp/api under library references.(DC properties>WebDynpro references>Library references-->add here and apply them.
    Please follow these steps and try to deploy your WD application.I hope you'll be able do it.
    Regards,
    Sitara

  • Problem to execute a Callable Object (SAP R/3 transaction)  in UWL

    Hi,
    I have developed a callable object which calls a SAP R/3 transaction. It runs perfectly in design time , when I run it in UWL I am getting the Error “"An error occurred while displaying the callable object, which uses the page builder. Check that the page builder is installed, and the transaction iView is available “.
    Please let me know your thoughts and suggestions.
    Regards
    Wesley Solomon

    Hi Wesley
    According to me, it is because of some missing package that this problem is encountered coz even i have faced this problem w.r.t the UWL and then i imported the required packages and it worked.
    Regards
    Navneet

  • Can't add GP Component Interfaces to WebDynpro Callable Object

    Hi, I've just installed the IDE for Composition Environment 7.1 SP3 and I'm following the tutorial to create a WebDynpro Callable Object for a Guided Procedures that I'm working for a demo. It seems that there is something wrong with my NWDS, 'cause once I add the the required DCs dependencies to my project for caf/eu/gp/api and caf/eu/gp/api/wd and mark them for Design time, I cant add the to any new component as implemented component interfaces 'cause the list for adding them is empty. I really don't understand why this is happening, 'cause that's the way the tutorial explains it to work. I've already try to reinstall the NWDS, without success. Has any of you face the same problem?
    Thanks for you answer.

    Hi,
    You should not create Design Time dependency. It is not required.
    Ensure only that you have created a Build Time dependency on the public of "caf/eu/gp/api and caf/eu/gp/api/wd".
    After creation of dependency ensure that you have build WD DC.
    Check if it works now ?
    Regards,
    Ashwani Kr Sharma

  • 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.

  • 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

  • ABAP Webdynpro as callable object to connect MDM Server

    Hi All
    if we want create MDM workflows in portal thru GP then we need to create the callable object initially which will integrate the MDM system thru MDM Apis
    suppose if we choose the option of taking the ABAP webdynpro as callable object then what is the development efforts/Steps to involve for creating the callable objects.
    i hope that we can use the ABAP wendynpro thru MDM ABAP APIs where we can integrate MDM data in ABAP webdynpro application.
    can you please list out what is the Aims from enduser level  and development level.
    Please more details on this??
    Regards
    Suresh babu

    Hi All
    if we want create MDM workflows in portal thru GP then we need to create the callable object initially which will integrate the MDM system thru MDM Apis
    suppose if we choose the option of taking the ABAP webdynpro as callable object then what is the development efforts/Steps to involve for creating the callable objects.
    i hope that we can use the ABAP wendynpro thru MDM ABAP APIs where we can integrate MDM data in ABAP webdynpro application.
    can you please list out what is the Aims from enduser level  and development level.
    Please more details on this??
    Regards
    Suresh babu

  • GP - WD Java: Cannot read callable object description from component

    Hi,
    i use Guided Procedures and therefore i will generate a WebDynproJ Callable Object inside the GP.
    When i try to intergate it into Design-Time i get follwoing error after i picked the WebDynpro Component:
    Cannot read callable object description from component: type com.sap.caf.gp.quotcreate.model.bapi_quotation_createfromdata2.types.Vbeln_Va could not be loaded: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
    Well because i could import the Model into the WD Component in NWDS with the given JCo i have no clue why this error is now popping up.
    Does someone have some experience with this phenomenon?!
    I also wanted to check the JCo's in Content Admin but even though i am an Admin (i am sure of this) i have no rights to enter this part. Also the SLD is properly configured!
    br

    Hi Fritz,
    how did you resolve the problem?  thanks a lot!
    Nicola

  • Connect webdynpro callable object with ms sql server 2000

    Hi all
    how connect webdynpro callable object with ms sql server 2000?
    How can I register on the portal as an additional connection?
    thank you very much!

    Thanks for your answers, Now I have the following problem, to develop this code:
    try {
              InitialContext iC = new InitialContext();
              DataSource dataSource = (DataSource)iC.lookup("jdbc/ConnectionAlias");
              Connection con = dataSource.getConnection();
              java.sql.Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("select * from ejemplo");
              while (rs.next()){
                   com.sap.test.sql.testsql.wdp.IPrivateTestIViewView.IDatosElement
                                                             DatosElement =
                                                             wdContext.nodeDatos()
                                                             .createDatosElement();
                   DatosElement.setId(rs.getString("id"));
                   DatosElement.setNom(rs.getString("nom"));
                   DatosElement.setNum(rs.getInt("num"));
         }catch (SQLException e) {
              wdContext.currentContextElement().setB(e.getMessage());
         }catch (Exception e){
              wdContext.currentContextElement().setB(e.getMessage());
    and shows me the following exception
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    the data that you place in the visual administrator were:
    Drivers: com.sap.aii.af.jmsproviderlib (msutil.jar , mssqlserver.jar , msbase.jar)
    DataSources: sap.com/JDBCConnector_MyDatasource.xml
                   Name: MyDatasource
                   Alias: ConnectionAlias
                   DriverName: com.sap.aii.af.jmsproviderlib
                   JDBC Version: 1.x
                   Driver Class: com.microsoft.jdbc.sqlserver.SQLServerDriver
                   Database URL: jdbc:microsoft:sqlserver://181.42.101.219:1433;DatabaseName=test
                   User: sa
                   Password: abcd1234
    did not know the cause of the problem
    thanks!

  • Callable Object for Webdynpro Application

    Hello,
    I have  a Webdynpro for Java Application where I am importing a model from R/3 and displaying certain records......and want to include it in GP Framework....so which is the Callable Object I should use.....i tried using Webdynpro application type but it gives me the error at runtime while execution as :
    Application error occurred during request processing.
      Details:   com.sap.tc.webdynpro.services.sal.core.DispatcherException: Failed to start deployable object sap.com/home~<webdynpro component name>
    Any help would be highly appreciated.
    Regards,
    Anil

    Hi Anil,
               I am also facing a similar problem . Can you please guide how to solve it.
    Thanks and Regards,
    Anurag

  • Theme in WebDynpro java callable object

    Hi Experts,
    I have created a portal theme and deployed on the server.
    Now i want to use this portal theme in my WebDynpro java callable object.
    I know how to use themes in WebDynpro application, set the theme in Exit plug of component interface view.
    However in WebDynpro java callable object how do i achieve this?
    here should i use WebDynproCOInterfaceView to set the desired theme to the callable object ?
    or should i set the theme in my Componet's interface view?
    i tried in both but its not working, i can still see the default theme.
    Am i missing anything here?
    Ashish

    Hi Guys,
    Any idea on this one?
    Has anyone done this? are there any SAP Note for this?
    Regards,
    Ashish

Maybe you are looking for