Background callable object for BAPI

Hi Everyone,
I have a requirement wherein a BAPI call should be an intermediate action in a GP process.
I need to fill in some fields in an interactive form which is in the preceding action, the fields on being mapped to bapi input will be passed on to this bapi, after the bapi call a notification (third action) will be sent out to all process contributors . All these three actions are done by the same role. I am able to use BAPI external service CO successfully when its the beginner action in any process. But on being an intermediate action it doesnt execute. I am new to GP and I dont know of any alternative methods.
Experts plz guide.
Thanks,
Lisha

Hi Lisha,
please refer to the following link:
[Tasks|http://help.sap.com/saphelp_nwce10/helpdata/en/71/f0944279c0c66ae10000000a155106/content.htm]
following the sublink:
[Integrating offline and form based activities|http://help.sap.com/saphelp_nwce10/helpdata/en/44/d44bea51103ee1e10000000a114a6b/content.htm]
You should focus on the topic "Creating and configuring forms" in special:
"Building a Form Context"
"Dynamic Forms".
Please be aware that in NetWeaver 7.0 (2004s up to SP13) the CO Composite Form were called CO Interactive Form. But basically the functionality "Building a form Context" remained the same, although named a bit different.
As I don't know which SPS you are working with and whether it is NetWeaver 7.0 or CE, please come back to me if you need further explanations.
Hope this will help to proceed your work.
Kind regards
Berndt

Similar Messages

  • 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

  • "cannot find this class" erro while creating Background Callable Object.

    Hi All,
    I am facing "cannot find this class" while creating Background Callable Object.
    I followed the following document for Creating Background Callable Object.
    [Creating Callable Objects for Background Execution|http://help.sap.com/saphelp_nwce10/helpdata/en/53/cde385301f4aa3b8e77a92cd46bff3/frameset.htm]
    After giving the fully qualified java class name in the Implementation Class Name when i press next i am getting the error.
    Please suggets me in solving this issue.
    Regards,
    S.V.Satish Kumar
    Edited by: Sathish Kumar SV on Apr 4, 2009 10:34 AM

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Implementing and Exposing a Background Callable Object

    Hi,
    I am following tutorial "Implementing and Exposing a Background Callable Object" of NWDS 7.1. I created implemented Java Enterprise Application and deployed. When i try to create Callable object in GP i am getting error saying "Cannot find this class name". Any solution for this please?
    Thanks,
    Songa

    Hi,
    I Have same problem, can anyone help me ?
    I tried the tutorial example for creating "Implementing and Exposing a Background Callable Object". In NW portal, i received message, "Cannot find this class name", when i try create callable objekt.
    Thanks,
    Nicholas

  • GP / Background Callable Object / KM

    Hello,
    I have implemented a background callable object ("IGPBackgroundCallableObject"), which will be used by a GP.
    I need to create new resources in KM, but I don't know how.
    Hope anyone can give me some clues.
    Regards.
    Mathieu

    Hi,
    Thanks for answering.
    I have already done some dev with KM API (repository filters, km services, etc), but it's my first one with CAF.
    My problem is that I thought I could use "ResourceFactory", "Resource", etc, but I don't know how to import them in my project.
    For example, when I develop a KM service, I just add the jars I need to my "par" project, here I create a new "development component", and I tried to add some "Used DC" but I don't know which one I have to add...
    I hope it's clearer.
    Mat'

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Problem with Background Callable Object

    Hi All,
    I am trying to create a background callable object in GP. From my understanding and according to the help document here is what I did:
    - Generated a deployable proxy development component using the Top down approach.
    - Created a Java Development component which implements the interface IGPBackgroundCallableObject. This Development component has the proxy object generated in Step 1 in the Used DCs. Internally this class does a JNDI lookup to the deployed Webservice Client and executes the webservice. Then I add this class as a public part in the Development Component.
    - Create a J2EE Library that has the public part of the class generated in Step 2 as the Used DCs.
    - Deploy the Library and use that in the GP Design time to create the Callable object.
    Following are the problems that I am facing:
    - The Java class that consumes the deployable proxy does not seem to recognize the classes that are present in the proxy object. Even though there is a reference to it.
    - If we try to include the proxy project in the Java Build path of the class it simply removes the link at build time.
    - At one instance it somehow succeeded during the build phase and I deployed the library to the J2EE engine but while testing the callable project it came up with a NoClassDef exception. Basically it was unable to find the proxy object’s classes.
    I am not sure if I am doing anything wrong or the process that I am following is not right. I would appreciate if anyone could help me understand what the problem is and how do we go about achieving the above scenario.
    Best regards,
    Sudhi

    Hi Jorgen,
    This behavior is completely normal. It can seem awkward but what you described is somehow logical.
    Let's say you have three actions, the second one is the email notification. When completing the first action, the second action is triggered. As it is a background callable object, it is put into the queue and wait for processing. As the refresh of the screen is faster than the processing of the callable object, the next action (the third) is not yet active/ready to be processed.
    When the email is sent (i.e. the background callable object executed), a callback takes place and the next activity is triggered. Then, the 3 action is active and can be shown.
    Due to technical restriction of Web Dynpro, it is not possible to refresh the screen when the action is ready to be processed. The user has to refresh it explictly.
    With SP12, the processing of the queue has been improved and it's much more faster than before. The "problem" you noticed shouldn't be there anymore.
    Hope this helps.
    David

  • Difference between Callable Object for execution and Display

    Hi,
             I am new to Guided Procedures.When i am creating a callable object under an Action ,i find callable object for execution and callable object for display in the dropdown.What is the difference between the two types of callable objects.
    Thanks,
    Bala

    Hi Bala,
    GP comes with a set of registered callable object types that define which applications you can directly expose as callable objects and enable their handling in the context of GP processes.
    So the different COs can handle your specific application requirements or process flow requirements appropriately at runtime.
    You refer those COs in actions. To make the action functional, you attach at least one callable object to it. In addition to the object that is executed when the action is called, you can attach a callable object that is displayed after the execution. The first one is mandatory. You must attach a callable object for execution. It can be either a callable object with a visible part, such as a Web Dynpro or BSP callable object, or one for background execution.
    Optionally, you can attach a callable object for display. It is required to have a visible part – for example, you cannot select a callable object for background execution.
    At runtime, this object is displayed if the processor wants to open the process step after it has been completed, or if a process contributor has view permissions on the action.
    To make it easier, I will give you an example with submitting and approving a composite form. Say, the employee fills in an order for something, submits it and the manager then approves or rejects it.
    First, in order for the employee to view the form, you can use a Form Display callable object as a display callable object for actions where the execution object is a form. It displays the name and description of the form and provides a link for download. If the user has view permissions on the step, he or she can view the display object and download the form itself. So, this CO is connected basically with the user experience and what he/she sees displayed on the screen, no matter what happens in the background (e.g. you can have a pre-filling service in the background that prefills some fields of the form, but what the user sees is only the form fields with certain info already prefilled in them).
    Next, for the manager to approve or reject the form of the employee, you need a CO that is only for execution, for example a Process Control CO for File Approval For forms, you can use it in a process in which a form is sent by e-mail. As soon as the form is submitted back to the system, the receiver can view it, save a copy of the form, and depending on his or her decision, can approve or reject it.
    This really is a very simplified example, but I hope it helped a little in some way or another
    Here is a link to the Callable Objects in GP documenatation, hope it also clears up some questions:
    http://help.sap.com/saphelp_nw70/helpdata/en/d2/d174413aff5458e10000000a1550b0/frameset.htm
    Also, a link to the documentation for exposing COs:
    http://help.sap.com/saphelp_nw70/helpdata/en/08/d88041a17e060de10000000a1550b0/frameset.htm
    HTH:)
    Greets,
    Petra

  • GP Background callable object. Error while making a Callable object

    Hi,
    I have implemented a Background callable object and deployed it to the server.
    When I try to make a Callable object of this from the Design Time tab in GP, i get the following error msg.
    *Class does not correctly implement the required interface*
    The detailed error msg is as follows
    Full Message Text
    Unable to load the required classes. Check all the references to other modules, especially the GP API
    com.sap.caf.eu.gp.base.exception.EngineException: Unable to load the required classes. Check all the references to other modules, especially the GP API
    at com.sap.caf.eu.gp.model.svc.impl.EngineClassloaderImpl.isClassAvailable(EngineClassloaderImpl.java:101)
    at com.sap.caf.eu.gp.ui.co.config.bkgd.COCfgSelect.OnCanLeaveScreen(COCfgSelect.java:293)
    Pls help.
    Tx in advance

    The problem was resolved after retrying many times. Code was checked again and redeployed. Server restarted as well. GP objects deleted and steps repeated. It worked in the end.

  • Model in Background callable object

    Hi Gurus,
    Currently we have an application where a Scheduled background callable object is used , that does some table updation to SAP R/3 backend. Now all the connection parameters are maintained in property files and JCO connection is created through java coding and with JCO API. Is there any possiblity to used Model in Background callable object so that , we could have used our common jco destionations and connections . Please suggest.
    Thanks in Advance.
    Tony Isaac.

    Couldn't find a solution, in this case a new solution was developed which then had nothing to do with the callable object.

  • 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

  • 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

  • Callable object for WD java

    Hi Experts,
    I am new to GP, and i need your help to design my GP.I am a web dynpro developer . I want very basic process to be implemented through GP as follows
    1) Employee gets a UI screen for filling some requisition form (in WD java) which wud hit R3
    2) Employee's supervisor can Approve / Reject requisition . (UI in WD JAVA)
    3) Employee should get a summary of whole process  (Again UI in WD JAVA).
    When i am creating calling object for above process and under UI category there are two different type of callable object for wd java
    1 ) Web dynpro component (GP interface)
    2)  Web dynpro application
    when i am creating ( Web dynpro application ) callable object , its giving me error , maybe some config problem .
    can anyone just guide me how to implement above process or give me some material through GP (WD java UI) and whats diff between two kinds of callable object.Thanks in advance.
    Regards,
    Abhay

    Hi Abhay,
    You can design your process by this way:
    1) Employee gets a UI screen for filling some requisition form (in WD java) which wud hit R3
    If you need to update R3 at this time, you can create a custom WD Java calling a RFC. To do that, you may use WD with GP API (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59 ) or you may call your RFC directly by External Service Callable Object (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7c313ada-0c01-0010-dfba-9ac88b353a47). It depends of how you will design your process.
    IE:
    Custom WD Screen that will have input fields and will update R3 -> use GP API
    Standard input screen -> use Data Input Form and to update R3 use External Service CO
    2) Employee's supervisor can Approve / Reject requisition . (UI in WD JAVA)
    You can use Visual Approval standard Callable Object to do that. If you need to update R3 according with approval results, you can insert the External Service CO as next step according with result. To accomplish that you must set Result States.
    3) Employee should get a summary of whole process (Again UI in WD JAVA).
    Data Display Form standard Callable Object give you exactly what you want.
    Scenario 1: WD Custom UI that update R3 -> Visual Approval CO -> Data Display Form
    Scenario 2: Data Input Form -> Visual Approval CO -> External Service CO -> Data Display Form
    Reward points if itu2019s helpful.

  • Implementation callable object for background execution

    Hi experts,
    I am Using NWDS 7.0
    while i am trying to create background execution callable object , i didnt find the DC :caf/eu/gp/api.
    so i followed the pdf "How to Get NW04s SP7 Guided Procedure APIs for Local Development" and added the required DC's.
    The problem is that while i am selecting the  dc "caf/eu/gp/api"   the following message is displaying
    "illegal dependency: Acess list does not allow use of sap.com/caf/eu/gp/api for sap.com/bckg_co(MyComponents
    Is there any other way to add DC's ?
    pls help me out
    Thanks in advance
    kiran

    Hi Kiran,
    1. go to development Infrastructure --> select ur Software component --> in the component properties Tab > select dependencies Tab->click on Add Button.
    2. in the pop up window , select the Software component (Gp - Core) which has the  caf/eu/gp/api component and give the dependency details and click Finish.
    3. Ensure that Unrestricted acesss is granted for this component. this u can check, by selecting  caf/eu/gp/api  and select permissions tab in component properties.
    hope it helps,
    Thanks and Regards

  • How connect a webdynpro callable object to bapi?

    hi all,
    I need to make a webdynpro callable object that connects to a bapi, to extract and modify data. I understand that this is done through a CAF. How can I make the connection?
    Thanks!

    in webdynpro callable object you can use models to connect BAPI/RFC
    Please read the following document
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks and Regards
    shanto aloor

Maybe you are looking for