Call WAPI error in web dynpro app

I write a very simple demo workflow, there is a approve step that call a web dynpro app.
I pass workitemid to my web dynpro program, then It call fm SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE to comlete workitem programmly.
In SAPGUI workplace ,I receive a message ,then I execute workitem,web dynpro UI page is showed.When I execute approve operation(call two wapi fm above in approve event handler),SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE's export parameter "return_code" is 1.
But I test/execute my web dynpro program standalone in workbench,all is ok,demo workflow continue.
I have spent a plenty of time for it,help me!
I'm sorry for my poor english .

Thanks for your advice. I am a new one for SAP development.
According to your advice, I use SAP_WAPI_DECISION_COMPLETE instead of SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE, I get the same result.
test web dynpro application standalone, it's ok;in SAP workplace ,SAP_WAPI_DECISION_COMPLETE  method's exporting parameter "return_code" is 1.
My code is following :
CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
  EXPORTING
    WORKITEM_ID          = l_wi_id
    LANGUAGE             = SY-LANGU
    USER                 = SY-UNAME
    DECISION_KEY         = 0001
    DO_COMMIT            = 'X'
IMPORTING
    RETURN_CODE          = returncode

Similar Messages

  • Stack Trace Error in Web Dynpro App

    Hi,
    I am getting the following error when the RFC Bapi call is invoked from my WD Application:
    java.lang.ArrayIndexOutOfBoundsException: -1
         at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:9391)
         at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValue(JcoBaseTypeData.java:503)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getRelatedModelObjects(DynamicRFCModelClass.java:761)
         at com.eac.vendorportal.model.Zzbapi_Qmnotif_Getdetail_Output.getViqmel(Zzbapi_Qmnotif_Getdetail_Output.java:405)
         at com.eac.vendorportal.wdp.IPublicDisplayNCRCust$IViqmelNode.doSupplyElements(IPublicDisplayNCRCust.java:3893)
    This app was working fine before, all I did was add another component which has nothing to do with the current app I'm running. And a changed some bindings in the context. All suggestions are welcome.
    Thanks,
    KG

    Hi Kunal,
    Is your JCo connection working fine?
    Please check your JCo once again and revert back.
    Regards
    Ashutosh

  • How can I automatically refresh a Web Dynpro App every 5 minutes

    Hello,
    I have a web dynpro that is calling a web service. I need that this web dynpro app auto-refresh (recall the web service and update the information) without any user interaction every 5 minutes.
    How can I do this?
    Thanks & Regards
    SU

    you can use timedtrigger UI element to achieve it.
    Edited by: John Wu on Jun 21, 2011 5:33 AM

  • 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

  • Errors in web dynpro

    Hi ,All,
    There is an error occured when i use service call to program in web dynpro.
    that is  "Exception NO_ENTRY_FOUND that Is Not Class-Based Occurred ".
    can someone tell me what i should do to modify it?
    Thank you very much.

    Hi, Vijay,
    Thank you for ur replay.
    Now i am using bapi_outb_delivery_confirm_dec.
    But whatever i input, the message displays as 'sorry, the delivery(the number i input) do not exist' , even i input the right number.
    ps: the message was created by myself.
    Looking forwad to ur replay.
    Thank you.

  • Calling adobe form from Web Dynpro ABAP

    Hi Friends,
                        This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
      WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
      2010(200,101).
                        Can some one tell me how to solve this....
    Regards
    Sankar

    Hi,
    Please refer to this same link in forum
    WebDynpro Exception: ADS: Request start time, start Interactive Form
    WebDynpro Exception: ADS: Request start time
    Thanks
    Pradeep

  • How to change the web page title of a web dynpro app?

    Hello,
    I would like to change the HTML page title of a web dynpro application without renaming the application component itself - but how?
    Thanks for your comments!

    Hi M Walter,
    Assuming you are using Web Dynpro Java, you can change the title of the Web Page for Web Dynpro App by adding the title to the main window of your app.
    Go to Windows and open the properties. There will be a field called 'title'. Give the title you want, save, build, DC->Build and deploy.
    The title you gave to this Window will be displayed as the title of your Web page.
    Regards,
    Ajay

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • How to call PDF file in Web Dynpro Appl?

    How to call PDF file in Web Dynpro Appl?

    Hi Gobinath,
    1. Create a value attribute of type byte called pdfSource.
    2. Insert an UI element called Interactive Form in your layout
    3. Set the source property of this Interactive From UI element to the context pdfSource.
    4. Insert a button which would open your pdf file.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
       IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
             byte[] bytes = contextElement.getPdfSource();
             try
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
                catch (IOException e)
                   // do something
                   e.printStackTrace();
        //@@end
    Warm Regards,
    Murtuza

  • Calling a Method in Web Dynpro ABAP

    Hi Experts,
    I have created a class in se24 and called its methods in web dynpro by simply creating its object. It is working fine. After that i came to know that method should be called through creating a service call in WD.
    What is the standard way and why?
    Thanks
    Ravindra.

    Hello Ravindra ,
                                  I think the better way is to create an assistance class ( Say A1)  and create an attribute (Say AC1) as object of your class ( Say  C1 ).
    In the costructor of you assistance class A1  you can instanciate the object of C1 .
    Now inside a method of assistance class you can call the method of C1 any time because AC1 is already instantiated .
    MVC architecture recommends you should have separate  method to aceess the data and you write your business logic in assitance class methods .
    Hope this will help you .
    Regards
    Vivek

  • Navigating from one Web Dynpro app to another not belonging to same project

    Hi All,
    I wanted to know is it possible to navigate from one Web Dynpro app to another which does not belong to the same project. if yes how.
    Regards
    Sid

    Hi Siddarth,
    If you want provide the interaction between two Web Dynpro applications then you must develop those projects as Development Components as DCs provides the reusability of the components created.
    You can  through these link to find out more information:
    Where to start DC creation  ?
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383</a>
    Server Side Eventing:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3</a>
    Regards,
    Jhansi

  • Show BI report in a Web Dynpro App

    Hello,
    I would like to insert a BI report into a Web Dynpro App, this is because I have some specials requirements like using a dynamic tree for selecting the user desired report and pass two parameters to this report via URL for example, this is why I can’t use standard BW iView to show this reports.
    Any hint, suggestion or advice is really appreciated here.
    Best regards.

    Hi Ramien,
    See this link,
    Re: BW server details from webdynpro
    Hope this helps you
    Regards
    Rohit

  • CE 7.1 - How to call CAF services from Web Dynpro

    Hi,
    whats the suggested way to call caf services from web dynpro?
    Of course I can use the Web Service model. But can I call caf directly?
    I read something about caf web dynpro model, but I cannot find it in nwds 7.1. On some older tutorial it was in context menu of caf project, but it seems to be removed.
    best regards
    tom

    Hi ,
    The standard way is to use the web service model.
    You have to expose the the services as web service and then you can use the wsdl url in the Adaptive web service model option.
    The above option will be available when you click the Model in the webdynpro application and the click create new model.
    Hope it helps you.
    Regards,
    Srinivasan Subbiah

  • Push data/ trigger event in Web Dynpro app

    Hello All.
    I'm a newbie with web dynpro.  I have a need to “push” information to a web dynpro application.  Is there a way I can trigger an event in web dynpro to refresh the screen from another application running on the Netweaver J2EE?  Is it possible to implement an ActiveX or AJAX  application to retrieve server data and communicate with a web dynpro app running on the enterprise portal?
    Your help will be appreciated.
    Mohan

    Hi,
    You can search for portal eventing...subtscribing event and unsubscribe it etc.
    Regards,
    Kiran Chennapai

  • Error inserting Web Dynpro Script

    Hello Word,
    I have a problem when I try to insert the web dynpro script, sends a messages "Error inserting Web Dynpro Script",  any idea?
    sorry about my english
    Christian..

    Chintan Virani, Thaks for the answer
    The Disigner version is 7.1 (ALD 7.1),  I am trying to create Interective Forms with Web Dynpro in ABAP.
    I read in some palce that upgrading the sap GUI resolve the problem but I have the 710 version sap GUI (I suppose it's the last version) but this do not resolve the problem.
    can you help me please, thaks
    Christian

Maybe you are looking for

  • Link between Inbound Idoc No and Shipment No

    Can anyone tell me in which transparent table the link between the Inbound Idoc number and Shipment number are stored ? or is any function module in which the Shipment number is imported and the Idoc number is exported ? Thanx in advance. Regards.

  • EDI : Exit when processing message type CLFMAS

    Hi, Does anyone know any exit when processing inbound IDOCs of message type CLFMAS ? I believe there's no user exit, but maybe there's any other kind of exit but i didn't found it. Thanks, Paulo Sousa

  • Trying to re install os x but just hangs at apple logo

    I powered up the macbook air but it just shows question mark flashing, tried to re install os x but it just hangs at apple logo. I rebooted holding down Alt and it onloy shows USB drive. Done a Hardware test and it shows no faults. Any Ideas!!!!!!!!!

  • The analysis of a Apache log file

    What will you recommend for the analysis of a Apache log file?

  • "Installable Options" - blank, none available for HP printer

    I have MacBook and HP Deskjet 3740 printer. The printer has installed and prints OK but I cannot find option to print in draft (as I always did with my previous Windows system). I have looked for the equivalent of the Windows print options panel - pr