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

Similar Messages

  • How to debug WebDynpro callable Objects?

    Hi Colleagues,
    how can i debug a webdnpro callable object? The NWDS debug wizard always would have an "application" to start a debug session.
    Best regards,
    Patrick
    http://www.mindsquare.de

    Hi,
    I haven´t tried with Callable objects, but with CAF applications. I followed the instructions on the following link and I could debug my applications:
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/c707c053550f2ce10000000a1553f7/frameset.htm
    (Under the features title, Enabling Debugging)
    or directly
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/f7c90118762460e10000000a1553f7/content.htm
    Best regards,
    v s

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

  • 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

  • Launch Webdynpro Callable Object in Mobile?

    I am able to launch the normal Webdynpro Java application in Blackberry, but want to add it to GP Process using Callable Object, but no idea how can we get the URL for WD - Callable Object?
    Is it possible to launch web dynpro Callable Object in Mobile like in blackberry? I am trying to write a program for Approval Process for my project. If any one have done this please let me know what URL we need to use to launch the WD-Java Callable Object in Mobile?
    Please let me know if you have any suggestions.

    resolved myself

  • Unable to craete ABAP Webdynpro callable object

    Hi all,
    I am not able to create a callable object for a ABAP Webdynpro application.
    The SAP system has been configured properly in Endpoint Aliases and the Test Connection is successfull.
    The problem is that whenever I search any ABAP WebDynpro application it says "Application with this name not found". There are many ABAP Webdynpro applications on the SAP server and even if I search for * it gives me the same message.
    Please help.
    Thanks,
    Vivek

    Hi,
    Is your EAR having gp/api in tis dependency. It should be added with dependency at runtime and deploy time. It should also have run time,deploy time dependencies towards your DC having the java class(Background object).
    Hope it helps.
    Regards,
    Srinivasan Subbiah

  • Adobe WebDynpro Callable Object

    Hi all
    I created Adobe WebDynpro application whihc worked well.
    After creating callable object with WebDynpro (GP instance), and  when i click complete button which is linked with complete method, following error occoured.
    Actually adobe form web dynpro works well independently.
    What do you think about that?
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.prepareSoapMessage(PDFObject.java:517)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:351)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.inputPDF(PDFObject.java:3643)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInputPDFHandler.handle(PDFDocumentInputPDFHandler.java:145)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentAccessibleContext.execute(PDFDocumentAccessibleContext.java:149)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.updateDataContainer(AdobeFormHelper.java:161)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.beforeTransportData(InteractiveForm.java:465)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.beforeTransportData(ClientApplication.java:1130)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:141)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:726)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:662)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:808)
         at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:80)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1289)
         at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:324)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:830)

    Hi Aliaksandr,
    I have the same issue and we desire the same. Also the button is placed outside the form....
    Have you found out what could be a possible solution?
    I couldn't find any note on this occurence.....
    Thanks in advance!

  • How to make a callable object daemon

    Hi Gurus,
    I have a class which implements Callable interface and I am using thread execution framework to execute this object. My requirement is to make this thread a daemon thread. I would like to know how can i do this because setDeamon(True) doesnt exist in Callable interface.
    Thanks

    If you know that a method from your object is being called in the thread which you want to make daemon, try
    Thread.currentThread().setDaemon(true);

  • 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

  • Callable object with external backend

    Hi everyone!
    Is it possible to create a form (the callable object) in Guided Procedures which takes its data from an external database? For example, say I want to create a callable object in Guided Procedures which picks up user information from an MS Access database? If its possible, could anyone provide a hint as to what kind of callable object I need to declare and how I connect to the external database?
    Any links to documents explaining such a scenario would also be of course welcome..
    Thanks in advance,
    Sameer

    Sameer,
    Its possible to fetch data from an external database.For instance, you could utilize a 'Webdynpro Callable Object' for the same.
    You can very well establish a connection to the database using the regular JDBC connection APIs.
    Once the connection is established you can read/write data from/to the database.
    A simple example would be to write the connection code in the execute() method of your Callable Object.
    Once you get the connection object, you can query the DB as you want.
    For instance , you can have an Employee database with employee number as the primary key.
    Now you can have this employee number as the 'input parameter' for the Webdynpro Callable object and rest of the details
    like name, age , location you can have them as 'output parameters' for the CO.
    Now when you execute this CO , it'll expect a 'valid' employee number as input,it'll go to the execute() method of the CO ,
    make a DB connection,execute your 'select' query and give you the resultset.
    You can loop thru the resultset to set your Output parameters.
    A simple JDBC connection code for SQL Server DB looks like this:
    public String makeDBConnection()
              try
                   String strUserName = "db_user_name";
                   String strPassword = "db_user_pwd";
                   String strDB_IP = "db_ip";
                   String strDB_Port = "db_port";
                   String strDB_Inst= "db_instance";
                   String strQuery="/your select query/";
                   ResultSet resultSet = null;     
                   DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
                   con = DriverManager.getConnection("jdbc:microsoft:sqlserver://" + strDB_IP + ":" + strDB_Port + ";DatabaseName="+strDB_Inst,strUserName,strPassword);
                   stmtQuery = con.createStatement();
                   resultSet = stmtQuery.executeQuery(strQuery);
              catch(SQLException e)
                   e.printStackTrace();
    Hope this helps.
    Pls reward if helpful.
    Thanks,
    Karambir Singh

  • Understandng the callable object within GP

    Hi All,
    I have basic question on callable objects in GP.
    I would like to know how the Adobe form content gets persisted with in GP .
    Example : We have 4 steps in a GP process , one requestor and two approvers. Each step is a webDynpro callable object.
    Requestor fills a Adobe form and this request goes through two approvers and then to complete state.
    Consider we have two fields in adobe form. For my understanding , we need to take care of the business logic within the webDynpro callable object which takes care of storing the two field data into a database(Maxdb or SQl).Is that correct ? Or GP will take care of storing the content also ?
    2. Another scenario
      Assume that the application context stored with in GP process
      The system restarted/down after the requestor submits his request. In that case will that request gets lost or GP will take care of storing......???
      Please correct me if my understanding is not correct.
    Regards, Anil
    Edited by: Anilkumar Vippagunta on Jun 18, 2008 1:46 AM

    Hi Sumangala,
    Thanks for your response.
    Lets consider I have 2 webDynpro callable objects..One is for requestor another for approver.
    Requestor filled the adobe form in callableobject1 and submitted the request.For some reason j2ee got restarted or went down.
    When requestor submits his request , GP will send the notification to the approver.So a task will be added to approver inbox.
    So GP will take care of storing the process related information but not the content within Adobe or webDynpro application ...Am I right ??
    I am just trying to analyze the overall behaviour of GP in all aspects.
    Thanks, Anil

  • Refresh Callable Object if changes are made to VC Start/End points

    Looking for some guidance on how to refresh a callable object once I have already brought it into my application.
    I have a VC application that I can use as a callable object during my GP process.  During design time, I can select it and see the start and end points.   I then can map those values and use them in the GP.
    If I go back and change the VC application (make a change to the start or end point ... like a new variable or name change) how do I get my GP to recognize that there is a new version of the VC application?   Currently I have had to delete the CO and rebuild it...Id rather the tool tell me the version has changed and that I need to remap/group my values.
    Note that if I change anything between the start or end point in the VC application there is no problem, since all the GP cares about are those start/end points and how they relate to the rest of the process.

    Hello Mike,
    It´s a pitty but there is no way to "update" VC based callable objects in GP, (in webdynpro callable objects there is an "update" button that allows to do that) , but with Visual Composer Callable Objects the only way is to create a new one.
    Regards,
    Marco.

  • Callable Objects-Write to System Log,Offline Approval

    Hi,
    I am new to Guided Procedures and I am trying out examples in all callable objects.
    I have doubts in 2 callable object
    1. Can you guide me how to use the callable object under Miscellaneous Type - Write to system Log
    After we Enter the Log text where to go and view the text.    
    2.Callable object under  Process control type -  OfflineApproval           
    When I use this callable object I am not getting mail whether the action is approved or rejected.
    Regards,
    Bala Baskaran
    Edited by: Bala Baskaran on Feb 27, 2008 12:45 PM
    Edited by: Bala Baskaran on Feb 27, 2008 12:48 PM

    Hi,
    Which SRM version are you working??Always mention that in your post for appropriate solutions.
    Pls see the foll notes:
    <b>Note 928320 - RBBP_OFFLINE_EVAL: Local purchase orders not selected</b>
    Note 980963 - RBBP_OFFLINE_EVAL: Some users not found
    Note 1039869 - RBBP_OFFLINE_EVAL:Sometimes text contains no Object ID
    1035114 - RBBP_OFFLINE_EVAL: Wrong messages , missing values there
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • How to craete a callable wd java appliaction (called in GP)

    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 .
    can anyone tell me what is mainly required to convert a simple wd java application to a callable wd java appliaction .
    Thanks in advance
    Abhay

    Hi Abhay,
    See this thread:
    How to create callable object which implements GP interface
    You can check out my article, if you haven't by now:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1">How to Integrate two Web Dynpro Applications using CAF Guided Procedures</a>
    This will tell you how to make a callable object out of a Web Dynpro application.
    Bye
    Ankur

  • Reusability of web dynpro callable object

    Hi,
    I want to use same webdynpro callable object inside another callable object including some extra input and output parameter.
    So that I dont have to write the same code again in another callable object.
    is it possible?

    Hi Ritu ,
               Yes ofcourse we can use the same Callable object in another CO.
    I dont think below mentioned is the better way to do .
    while setting the input parameters and output parameters in the description method and execute method use if condition based on the status.
    follow the same procedure in the description and execute method.
    if (Status =="some value"){
    set the Extra input parameters.
    //below dont use else
    normal input  parameters for the callable object.
    in the same way do it for the output parameters.
    Note :here status can be anything.
    for eg :
    an employee open a leave form , here the status will be new.
    when the employee submits the form to the higher authority, the status is "Submitted to higher Authority".
    so the above scenario both the higher Authority can use same callable object. the difference is the higher authority CO have some additional fields such as "Remarks".
    here based on the status we can use the same callable object.

Maybe you are looking for