Is Callable Object Defination in GP Changable?

Hi All,
    Once the callable object has been create, can the type of it be changable?
    I'd like to change a "Simple Input Form" callable object to a Webdynpro application callable object, is it possible?
Thanks,
YiNing

Hi,
You need to create the new CO separately.
Thanks,
Dipankar

Similar Messages

  • Error testing Web Dynpro Callable Object (GP Interface)

    With reference to thread:
    Interactive form as  Callable object error on testing the object.
    FYI, I'm running NW04s, EP 7.0 SPS 13, JDK 1.4.2_14, Unix OS
    Hi All,
    I have created a Web Dynpro App with a Adobe Form as the frontend. I have included the caf/eu/gp/api as a DC and implemented the IGPWebDynproCO interface. Next I created a Web Dynpro Callable object in GP and ran a test and received the following error:
    Result: Technical Exception
    Details: Could not create web dynpro callable object component
    Output Parameters
    Callable object implementation did not return  output parameters
    Can anyone help me resolve this? Do I have to make a manual entry in the HOST file? If so, what is that entry? Are there alternatives?
    Thanks
    Kunal.

    Hi,
    For creating WD callable object you need to add following three DC in your WD DC project.
    In the Web Dynpro Explorer of the Web Dynpro Perspective, expand the node DC MetaData -> DC Definition, and select Used DCs.
    a.      To create a DC dependency, open the context menu and choose Add Used DC.
      b.      Select Local Development  -> SAP-EU  -> caf/eu/gp/api/wd  -> DC MetaData  -> Public Parts  -> GPWebDynproCO. For Dependency Type, select Build Time, Design Time, and Run Time. Choose weak from the dropdown list.
      c.      Repeat the previous step to define a dependency to DCs SAP-EU-> caf/eu/gp/api (public part external) and SAP-JEE -> com.sap.security.api.sda (public part default).
    You need to do one more thing like bellow.
    Select your Web Dynpro project and open its context menu. Choose Properties.
    1. Choose Web Dynpro References -> Library References.
    2.  Add a reference for library caf/eu/gp/api.
    I think this will help you.
    Thanks
    Chandan

  • Exposing Web Services as Callable Objects

    Hello!
    I have SAP NetWeaver 04s SP7. How can I expose Web Services as Callable Objects?
    According to "Exposing Web Services as Callable Objects" (http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm), I should start with choosing type of CO "Service -> Web Service".
    Actually, I haven't this entry in CO type list!
    According to integrate Web Services with GP, this type appeared in SP8. What are the alternatives in SP7?
    "Background execution" and "External service" seem to be the best candidates...
    What is the best solution?
    Thanx in advance!

    Hello, Jan!
    I have SAP NWDS 7.0.07, and I cannot find there an option to create a CAF project. I can create Web service, EJB, Web DynPro, and something else - but not a CAF project. In documentation I did not find the connection points between NWDS and External Services, except some plug-ins.
    Maybe I've misunderstood you, sorry - I'm a newbie in SAP
    Actually, I've made a simple EJB, created a Web service from it, and deployed the WS to portal. Maybe, EJB instead of Web service can be somehow used in CAF?
    I've tried to create a CO of type Composite Application Service, but there was necessary to configure endpoint aliases. I've read the manual "Configuring Endpoint Aliases", but didn't succeed to make one for EJB remote call... I've defined the name, URL (http://<host_of_portal>:<portal_port>), user and pwd - but I've got an exception when tried to use the created alias:
    com.sap.caf.core.gp.servicelocator.exception.MetaModelBrowserException: Exception while trying to get InitialContext. at com.sap.caf.core.gp.servicelocator.CAFMetaModelBrowser.getAllApplications(CAFMetaModelBrowser.java:77) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.browseCAFCore(VSelect.java:305) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.onActionSelectEptAlias(VSelect.java:750) at com.sap.caf.core.gp.ui.backgroundco.admin.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:287) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    Maybe, the easiest way is to upgrade the versions of SAP and NWDS?
    Are there some manuals that could provide me some help about:
    1) creating CAS from the deployed Web service (from its creation in NWDS till its use in CAF, step-by-step)
    2) binding Web Dynpro apps and Web services, using CAF and GP.
    Or maybe I should attend SAP courses?
    I have SAP NetWeaver 04s SP7 and NWDS ver. 7.0.07.
    Sorry for the messy post, I did my best
    Message was edited by:
            Kirill Shepitko

  • 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

  • How to create callable object which implements GP interface

    Hi experts ,  
                        I am very new to GP . I want to create a simple process , in which employee send an request to HR and then HR approves it. for this I am using two process and two callable object . I can create simple WD java project , but how we can call it , and where can i define input and out put , I  dont know .
    I have also gone through a PDF which talks about this same thing but i dont know why its adding a dc in projeact and adding dependencies .
    <b>can anyone tell me what is mainly required to convert a simple wd java application to a callable wd java appliaction .</b>
    Thanks in advance
    Abhay

    Hi,
    There are only 2 zip files you need to extract.
    Location to Extract <b>gp_api_nw04s.zip</b>=>C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\eu\gp
    Location to Extract <b>gp_TopLevelDcs.zip</b>=>C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\SCs\sap.com\CAF\_comp\TopLevelDCs
    Very simple.
    Then in your DC project expand the tree of your previously created DC and
    navigate to DC MetaData->DC Definition ->Used DCs
    Right click on the node “Used DCs” and click on Add Used DC…
    Add both the api's separetely,
    Choose caf/eu/gp/api -> DC MetaData -> Public Parts -> external
    Choose caf/eu/gp/api/wd -> DC MetaData -> Public Parts  ->  GPWebDynproCO.
    For “Dependency Type” select  Build Time, Deploy Time, and Run Time for both.
    Finally ,
    Define Web Dynpro References for  your DC
    a. Right click on your DC b. Click Properties
    Select entry Web Dynpro References
    a. Select tab page Library References
    b. Choose Add
    c. Enter the reference cafeugp~api
    Now your project is ready for GP development.
    Hope it help you...
    Award points if it helps you...
    Regards,
    Nirmal Sivakumar G

  • Web Dynpro Callable Object : use of RFCs

    Hi All,
    I've to create a callable object using Web dynpro.
    In this web dynpro to display a table data populated by calling RFC and we need to select one row of the table and sent it as output parameter.
    My question is how we gonna set the getDescription Method in this case for creating the Callable Object?
    How we define the execute Method in the Interface Controller.
    Where I should bind the Model to Controller (Component Controller / Interface Controller)
    Can someone explain how we gonna use RFC in Web dynpro while calling it as Callable Object.
    Thanks
    Srikant

    Hi,
    You need to have the SCs for local development of Web Dynpro callable object.
    Refer the following documents for more details:
    <a href="/people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development with the APIs of CAF Guided Procedures: NWDI or Local Development?</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f7be53bb-0b01-0010-1c96-be3cb6799c1b">How to Get NW04s SP7 Guided Procedure APIs for Local Development</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
    Let me know if this solves your issue.
    Thanks,
    Dipankar

  • Order of execution of Callable objects in an ExecutorService

    what determines the order of execution of Callable objects in an ExecutorService ?
    here is my test code:
        ExecutorService exe = Executors.newCachedThreadPool();
        Set<Callable<String>> tasks = new HashSet<Callable<String>>();
        for (int i = 0; i < 10; i++) {
          Worker worker = new Worker(i);
          tasks.add(worker);
        List<Future<String>> results = exe.invokeAll(tasks);
        for(int i = 0; i < results.size(); i++) {
          Future f = (Future) results.get(i);
          String s = (String) f.get();
          System.out.println("__" + s);
    public class Worker implements Callable<String> {
      private int seqNumb = -111;
      public Worker(int i) {
        this.seqNumb = i;
      public String call() {
        double d = Math.random();
        int i = (int) (d * 10000);
        Thread.sleep(i);
        return (Integer.toString(i) + "___" + seqNumb);
    }i ran this code within NetBeans on one XP machine. and ran it from the command line on a different XP machine.
    the sequence is always:
    *6*
    *9*
    *4*
    *3*
    *8*
    *1*
    *0*
    *5*
    *2*
    *7*
    the sequence should be random because of the random wait???
    the sequence looks random. why does "6" come before "9"? why is "7" last?
    yet, the sequence is always the same.
    i can't understand the order of execution of the Callable objects.
    note:
    what i'm trying to do is implement my own version of the ExecutorService interface.
    so, its important to understand the above question?
    Edited by: kogose on Feb 9, 2009 6:53 PM

    jtahlborn wrote:
    ejp wrote:
    2. The order of execution is defined by the queue associated with the ExecutorService. Normally it is a FIFO, but one can imagine using a PriorityQueue, given some kind of priority implementation in the submitted tasks.just to be clear for others who may be reading this, the order of submission is controlled by the queue implementation (where submission is the movement of a Callable from a queue to a thread). once the Callables are passed to threads, their actual order of execution is undefined (where execution is the invocation of the "call" method).And not only that, but even if we knew that the order of execution were call1, call2, call3, that still doesn't tell us anything, since there's no synchronization here, and hence any thread can be swapped out at any time. Call1 could be entered, but then swapped out before it gets to print anything, etc.
    Bottom line: When you're dealing with multiple threads, unless you use synchronization, wait, notify(All), or higher level java.util.concurrent constructs, you have no ability to control or predict what executes when.

  • Callable object context question

    HI All.
    1)If i make web dynpro as a callable object then - i have 2 types of context - 1 is the web dynpro context as always and one is the calleble object context (GP Context)
    What is the difference between the two contexts?
    2)What is achieved when i map the webdynpro context attribute's value  to the attribute of GP Context -ie - what purpose does it serve?
    3)Whati if i do not set any attributes in the technical description of the GP Context
    Please help me in the above things
    Points assured for help

    Hi,
    1) By GP context I think you mean the input/ouput parameter of the GP CO context. These are defined in the getdescription() method of the Web Dynpro callable object which are exposed in GP as Callable object's parameters. In WDP there is no context node available as GP context. This is defined and operated by code using GP API.
    2) The GP context of a WDP CO is what available in GP design time from the callable object as input and output parameters. In the WDP application you may not have any physical context as GP context. Because anyway you have to write code to define, read and write the GP context in the getDescription(), execute() and complete() methods. So you may or may not keep a specific context node in WDP for the GP context. You can read any relevant context node of the WDP and populate the GP context by coding. So no question of mapping physically.
    3) if you don't set any attributes in the getDescription() method no input or output parameter will be available in GP from that callable object.
    Thanks,
    Dipankar

  • Web Services as Background Callable Objects?

    Hi everybody,
    is it possible to use an Web Service as an Background Callable Object? And if it is possible, how can I do it?
    For your background: If the Web Service throws an Exception, I want to handle it. My goal: The next step after finalizing the exception handler action will be the
    action (WebService) that reported the exception. Or is there any other possibility? 
    Thanks,
    Stefan

    Hi Stefan,
    For repeating the WS Call after the exception handler, you can use the "repeat" strategy. When defining the exception handler, you can choose between "continue" and "repeat".
    Check this page : <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/10a066e3650d19e10000000a114a6b/frameset.htm">Exception Handling in GP</a>
    For using Web Service as Callable Object, check this out! <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm">WS in GP</a>
    When specifying repeat, the action will be started again. If continue, the next action will be processed.
    Hope this helps,
    Best regards,
    David

  • Web Dynpro Views As Callable Objects in GP

    I would like to know how to setup a sequence web dynpro views off a common WD component as a callable object.  In particular, my GP will use View1, View2, .. View n all based on a common web dynpro DC and same single WD component.  How  should this be configured in GP that each View refers to the same WD instance?  Where is state stored in such a scenario?  Does the GP framework instantiated the WD component and maintain it for the entire lifecycle of the process?  Thanks.

    hi
    check out this link. Refer page 14
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9">Defining Several iViews based on one Web Dynpro application</a>
    Other link that can be helpful is
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814
    Thanks & Regards
    Harsimran

  • Background callable object :Error

    Hi,
    I created one background callable object in webdynpro,
    to be called from GP design time.
    I have done this using the tutorial :
    "Implementing Background callable object"
    Deployement finished successfully.
    But from GP design time, while creating callable object
    of type backround execution,  I selected,
    container type : library
    container : apibckg(deployed DC of type J2ee server
               library)
    implementation class name : the java class which implemented background callable object.
    But error in gp: is
    "Cannot find this class name"
    In webdynpro after building the project I got the warnings:
    Nov 3, 2006 11:57:13 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] WARNING: apibckg: built with warnings sap.com/apibckg(MyComponents) in variant "default" (1.406 sec)
    can any bdy help me
    thanks
    smitha

    Hi Smitha,
    You just need to repeat the steps described in the tutorial, i.e. define the references and create a class that implements the GP Background callable object interface.
    Don't forget to define the sub-type of the library in the .dcdef file.
         <component-type>
              <vendor>Your vendor</vendor>
              <type>Java</type>
              <sub-type>Library</sub-type>
         </component-type>
    Then add a new empty file named "build.vm" under the folder "cfg". Add the line "#BuildSecondaryLibrary()".
    Then build and deploy. It should be there.
    Regards,
    David

  • Upload File Callable Object (GP)

    Hello,
    I want to create a process where a user:
    1 - Fills in a form
    2 - Uploads a file using the "Upload file" callable object
    3 - Another user receives a workitem with the data from the form, and the file.
    I know I can use attachments, but I want to have an explicit "Upload FIle" step. If I don't, people will forget to upload the file....
    Problem is I can't seem to map the file, into the "Display Form" of step 3. Is it possible?

    Hi,
    For creating WD callable object you need to add following three DC in your WD DC project.
    In the Web Dynpro Explorer of the Web Dynpro Perspective, expand the node DC MetaData -> DC Definition, and select Used DCs.
    a.      To create a DC dependency, open the context menu and choose Add Used DC.
      b.      Select Local Development  -> SAP-EU  -> caf/eu/gp/api/wd  -> DC MetaData  -> Public Parts  -> GPWebDynproCO. For Dependency Type, select Build Time, Design Time, and Run Time. Choose weak from the dropdown list.
      c.      Repeat the previous step to define a dependency to DCs SAP-EU-> caf/eu/gp/api (public part external) and SAP-JEE -> com.sap.security.api.sda (public part default).
    You need to do one more thing like bellow.
    Select your Web Dynpro project and open its context menu. Choose Properties.
    1. Choose Web Dynpro References -> Library References.
    2.  Add a reference for library caf/eu/gp/api.
    I think this will help you.
    Thanks
    Chandan

  • GP callable object waiting for abap event

    Hello expertes,
    I'd like to develop a gp process which contains a callable objects which keeps the process instance waiting until an abap function module send something like an event.
    I don't want to put too much load on the machine and block expensive JCO ressources.
    Does anyone have an idea how to solve this?
    Thanks very much
    Stefan

    Hi Shanto Aloor,
    I tried assigning a default user(using initiation defined) to the process , also tried settting the processor as "initiator", but still not working..
    I have been searching for documentation on this issue , but I couldn´t find anything..
    Any other clue?
    Thanks in advance,
    Marco.

  • Re: Callable object for display

    Hi all,
    I would like to know how a can create a web dynpro component with GP interface so that i can set config (display mode or exceution mode) of CO in GP.
    after deploy the WDPro component , I had tried to create a CO in GP, but i can not set the configuration properties of the CO.(It is default to callable object for execution)
    And in the help of the NW Studio, it said some coding is needed.
    So could anyone give me some guide in doing so.
    Thanks In Advance
    David
    Edited by: David Tai on Jun 20, 2008 4:13 AM
    Edited by: David Tai on Jun 20, 2008 4:55 AM

    Thx for your reply first.
    However I had already have a look on this tutorial, no hints about how to work on CO that is for display.
    For example, in that tutorial when creating CO, there is a step for setting configuration initially, but after defining the input or output, that step disappear and the CO is automatically set as "callable object for execution"
    In GP, there is an example Time Off Process, in which at each action we can see a CO for execution and CO for display.
    So I would like to know how to implement it.
    Regards,
    David

  • GP: Info Callable Object working?

    Hi all,
    I have tried to implement an info CO in one of my processes. That Callable Object takes a string as input parameter and launches a search website to find the results. It worked well in the test environment in design time. But wenn I added that CO as Info Callable Object to an action of my process. It's not displayed in the runtime on the navigation bar at all, where it was supposed to be according to the RKT. I also set a category to it without any effect. And I have also tried to add the info CO to the Block and even the process level but neither way worked. Is that a possible bug?
    I'm using GP 7.0 with F37 milestone J2ee
    Another related question:
    I need a kind of summary at each of my process steps. My idea is to implement it as an info callable object. Now as I understood, it's possible to pass parameter values to info Callable Objects at runtime as well. Does such a parameter have to be available in GP-Context already or is it possible to get that parameter value from the displayed webdynpro DC at the same step? The idea is, I would like to have a webdynpro table displayed and have the info callable object show the detail of each table entries when I`m performing the selection. In other words, would it be possible to pass the selected item to the info callable object at runtime? My guess is that it's not possible, as I haven`t finished my Webdynpro step at the time I make the selection, so the parameter value of the selected table item is not yet available in the GP context. Are my considerations correct? 
    Most appreciated.
    Xiaopeng

    Hi Xiaopeng,
    Please make sure that you defined the correct run time view - otherwise the Info CO will not be displayed. You can find some documentation on that here: http://help.sap.com/saphelp_nw04s/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm and then CAF-GP:Business Expert Guide -> Process Modeling -> Info Callable Objects, there you find at the end of text the link to 'Defining Runtime Views'.
    The parameters for the Info Callable Object must be available already in the GP context so I believe it's too late if they are available at runtime first. However your idea is really clever.
    Regards,
      Jan

Maybe you are looking for

  • Safari doesn't startup; icon bounces once

    Hi, i have 4 accounts on the computer and Safari on my account won't startup. The icon just bounces once and then nothing. Tried re-downloading but that didn't solve it.

  • UIX- How to populate values from one view to the other- JDev10.1.2

    Hi, I have an enquiries table shown in a uix page. Once a user selects a particular enquiry, some of the details should be passed on to the Student Master table which is on a seperate UIX page. Could some one tell me how to achieve this.

  • Disable NIC on Host but enable in VM - Hyper-V Core 2012

    I have multiple NICs on my hyper-V Host. I am running a router/firewall as a VM on this host. This is my perimeter/border protection. The issue I am having is that one of the NICs on the Hyper-V host is dedicated to WAN connectivity for this VM. I wa

  • HOW can I apply the styling rules?

    now I use the styling ruls that defined in styles of database,but it not affect my map effect!why? thank you very much!

  • Compare programs for 2 systems ?

    Hi, is there a standard SAP functionality (program/tcode) that can compare the source code of a list of programs (optionally with related includes) on 2 different programs ? So a kind of remote comparison for multiple programs ? best regards, Hans