Webdynpro application in UWL

Hi All,
I want to develop a workflow application in webdynpro which contains a stationary request form by an employee. This stationary request is send to his leave approver in his UWL task list. I want to know that this is possible through webdynpro java and if yes than how.
Rewards will be awarded.
Regards,
Bharat Mistry.

Hi Bharat,
    I have no idea of how to integrate any custom application into UWL.
        But surely alternative way for this kind of scenrio could be building custom workflow separately i.e Once requestr sends a request to partiucular approver, an email is triggered to approver.
        A separate iView is created for apporver which will be populated based on approvals pending against this approver. He can approve the requests, based on which backend flag will be updated.
Regards,
Ganga.

Similar Messages

  • Need help in developing a webdynpro application using UWL API

    Hi developers,
    Iam developing a new WebDynpro application for UWL using UWL API.the functionality is to dispaly the summary of UWL like number of unread items, total items.
    Iam getting the problem while deploying the application, iam getting warning while deployed the application.
    I have given all possible ways mentioned in the below forum link
    Re: Accessing PortalRuntime at runtime?
    The exact problem is coming at reference file.
    Please giude me how to move forward.
    1. Below is the error when given "tckmcbc.uwl~api" in the service entry
    deployed with warning :
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application local/UWLCountDemo for startup. Reason=Clusterwide exception: Failed to start dependent service ''tckmcbc.uwl~api'' of application ''local/UWLCountDemo''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
    2.Below is the error  when i gave PORTAL:sap.com/tckmcbc.uwl~api in the sharing refernce entry
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/UWLCountDemo cannot be started. Reason: it has hard reference to resource tckmcbc.uwl~api with type application, which is not active on the server.
    Thanks in Advance
    Sekhar.
    Edited by: sekhar c on Mar 21, 2009 11:24 AM

    Please see Kenichi Unnai in his blog "How to use UWL API for NetWeaver BPM Tasks"
    How to use UWL API for NetWeaver BPM Tasks
    The .sca-file can be found on the sap service marketplace, afterwards you need to import the .sca-file, add the SC to your "MyComponents" and then you can select your necessary DC's.

  • On-click of the UWL link ,No WebDynpro application is launching

    Hi,
      I am having a problem while developing a multiple level application.This application will send a link to UWL in portal for the approver.When the applicaton is sending something to workflow,it is creating a link in the UWL.But when I click on this link,it showing "There are no items to display".And also when I look for the properties of the page I am getting
    http://itdep1.itcportal.com:50000/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?System=SAP_WebDynpro_XSS&TCode=SWK1&UseSPO1=false&AutoStart=true&DynamicParameter=p_nosecm%3DX%26wi_id%3D000000747411&HistoryMode=0&windowId=WID1254805388838
    There is nothing about my WebDynpro application.For other WebDynpro application I am geting this properties as below
    http://itdep1.itcportal.com:50000/webdynpro/dispatcher/local/Car/Carhr_App;jsessionid=(J2EE7656800)ID1973397150DB01647030228036343671End?sap-ext-sid=FWxZT%2BxoLzZaTLdsMY%2BZaw%3D%3D7aMjquvJhFYjn6FSMAm9ww%3D%3D&sap-wd-cltwndid=WID1254805388838&sap-wd-tstamp=1254803969799&sap-locale=en_US&sap-accessibility=&sap-rtl=&sap-ep-version=6.4.200610270247&sap-cssurl=http%3A%2F%2Fitdep1.itcportal.com%3A50000%2Firj%2Fportalapps%2Fcom.sap.portal.design.urdesigndata%2Fthemes%2Fportal%2Fitc_theme%2Fur%2Fur_ie6.css%3F6.0.16.0.20&sap-cssversion=6.0.15.0.0&System=SAP_WebDynpro_XSS&wi_id=000000748089&WI_ID=000000748089
    I think I have done some wrong configuration for the workflow,but I am not able to find it out.
    Please HELP me......
    Regards
    Sukalyan

    Hi,
    Will you plz provide more input on the issue. Are you able to launch other WebDynpro application from UWL. Please chekc the XML for the UWL and try work for the tag item type and check the page value.
    In the SDn you can easily find XML code for the launcher of WebDynpro Application.
    Deepak!!!

  • Issue in webdynpro application while calling from UWL

    Hi All,
    I am working on APPRAISAL workflow in HCM module.
    In new version of SAP has provided ABAP web dynpro application HAP_MAIN_DOCUMENT (component HAP_MAIN_DOCUMENT)
    but it is not integrated with workflow. Earlier insted of this application there was a BSP application and this was integrated with workflow.
    Now to integrate ABAP webdynpro application with workflow I have created new web dynpro application and calling HAP_MAIN DOCUMENT application and when I test through SE80 transaction then I am just passing Work Item ID and it is opening HAP_MAIN DOCUMENT application. I have done it as follows.
    In swfvisu I am passing Work Item ID and In application I am getting business object details using this I am createing a URL and then using exit plug I am calling HAP_MAIN_DOCUMENT application
    *METHOD exit1 .*
    * DATA lo_nd_new_url TYPE REF TO if_wd_context_node.
      **DATA lo_el_new_url TYPE REF TO if_wd_context_element.**
      **DATA ls_new_url TYPE wd_this->element_new_url.**
      **DATA lv_url TYPE wd_this->element_new_url-url.**
      **DATA: l_cmp_api TYPE REF TO if_wd_component,**
            **result TYPE REF TO if_wd_window,**
            **l_window1 TYPE REF TO if_wd_window_manager.**
    ***     navigate from <CONTEXT> to <NEW_URL> via lead selection**
      **lo_nd_new_url = wd_context->get_child_node( name = wd_this->wdctx_new_url ).**
    ***     @TODO handle non existant child**
    ***     IF lo_nd_new_url IS INITIAL.**
    ***     ENDIF.**
    ***     get element via lead selection**
      **lo_el_new_url = lo_nd_new_url->get_element( ).**
    ***     @TODO handle not set lead selection**
      **IF lo_el_new_url IS INITIAL.**
      **ENDIF.**
    ***     get single attribute**
      **lo_el_new_url->get_attribute(**
        **EXPORTING**
          **name =  `URL`**
        **IMPORTING**
          **value = lv_url ).**
      **wd_this->fire_exit_plg( url = lv_url ). "abap_true**
    ***  l_cmp_api = wd_this->wd_get_api( ).**
    ***  l_window1 = l_cmp_api->get_window_manager( ).**
    ***  result = l_window1->create_external_window(**
    ***url = lv_url ).**
    ***  result->open( ).**
    **ENDMETHOD.**
    In SE80 it is opening application perfectly in same session of new Z webdynpro application.
    But when I click on UWL workitem it is not opening.
    In dubugging I checked that workitem ID is passed correctly also URL is created correctly for HAP_MAINDOCUMENT but it is not opening.
    Please let me know is there any setting in UWL config.
    Edited by: Akshay Kale on Nov 17, 2009 11:51 AM
    Edited by: Akshay Kale on Nov 23, 2009 10:07 AM

    Hi akshay,
       Check the following links ,
    Workitems, UWL and Web Dynpro for ABAP
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6
    another that talks about swfvisu
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a002d1eb-33f0-2b10-f391-e1e0c3057c17&overridelayout=true
    hope this helps.
    Thanks,
    Sahiba

  • Error when retreiving UWL items in webdynpro application

    Hello,
    I am getting nullpointerexception when retreiving the items from the UWL in webdynpro application in java.
    error is throw at the following line
    NullpointerException
    at com.sap.netweaver.bc.uwl.core.ItemCacheManager.internalGetItemsForView(ItemCacheManager.java:56)#
    at com.sap.netweaver.bc.uwl.core.ItemCacheManager.refreshCacheAndGetItems(ItemCacheManager.java:1351)#.
    Thanks.

    Hi
    probably you need  to check the alest read permissions on all the folders and Iview.
    OR try to give restart to yours "UWL Service " and also check this SAP note 676253
    Thanks

  • Integrating WebDynpro ABAP applications with UWL for workflow in Portal

    Dear
    We want to integrate an abap webdynpro application as task in the workflow with UWL.
    More information was found in /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
    But no answer on the following issue:
    We use the transaction SWFVISU to prepare standard setting for our  task. This defines how a task is executed, once you select the task subject line on the worklist.
    Task                           TS91700001
    Visualization Type             ABAP Web Dynpro
    APPLICATION     z_wd_pas
    DYNPARAM     IV_WIID=${item.externalId}&period=${item.PERIOD}
    NAMESPACE     SAP
    SYSTEM_ALIAS     SAP_BSP_EREC
    But we want to start the abap webdynpro application with a dynamic parameter: period 07.2010 or 08.2010 or MM.YYYY. This parameter is a container element of the task, filled when the task is created. Also other parameters are available in the abap webdynpro application.
    Component       Z_WD_PAS
    Interface View  PAS
    Plug Name       DEFAULT
    Help Menu Text
    Help Link
                                                                                    Package         Z_PAS
    Language        EN
    URL             http://saperpd1.imec.be:8000/sap/bc/webdynpro/sap/z_wd_pas                                                                               
    with parameters
    IV_WIID     000000000000     SWW_WIID
    ORG_UNIT     00000000     ORGEH
    PERIOD                              SPMON
    PERNR     00000000     PERSNO                            
    Can we set the dynamic parameter list DYNPARAM from the task
    or should  we read the container in our abap webdynpro application described in http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal?
    More information: The task is a webservice
    Standard task        91700001   Z_PAS_CC
    Object Category      BOR Object Type
    Object Type          WEBSERVICE   WebFlow Service
    Method               PROCESSDIALOG                      Dialog Service
    with the following standard program code for this method:
    begin_method processdialog changing container.
    DATA: l_wi_objkey TYPE swotobjid-objkey.
    DATA: l_wiid TYPE swwwihead-wi_id.
                                                                                    CALL FUNCTION 'SWE_WI_GET_FROM_REQUESTER'
      IMPORTING
        requester_workitemid = l_wi_objkey.
    l_wiid = l_wi_objkey.
                                                                                    CALL FUNCTION 'SWF_WSC_START_LH_DIALOG'
      EXPORTING
        i_wiid                 = l_wiid
      EXCEPTIONS
        url_creation_failed    = 1
        browser_launch_failure = 2
        OTHERS                 = 3.
    IF sy-subrc <> 0.
      CASE sy-subrc.
        WHEN 1.
          exit_return '1000' space space space space.
        WHEN 2.
          exit_return '1001' space space space space.
        WHEN OTHERS.
          exit_return '1002' space space space space.
      ENDCASE.
    ENDIF.
    end_method.                                           
    Before calling the function SWF_WSC_START_LH_DIALOG the parameters for the abap webdynpro should be defined. Is this possible ?
    Thanks for your suggestions.
    Best regards
    Luc Marent

    I added below sources .
    >    <ItemType name="uwl.request.webflow.WS91000001" connector="WebFlowConnector" defaultView="WorkItemRequestsView" defaultAction="launchWebDynPro" executionMode="default">
    >      <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
    >      <Actions>
    >        <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
    >          <Properties>
    >            <Property name="WebDynproApplication" value="ZWD_WF_002" />
    >            <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no" />
    >            <Property name="DynamicParameter" value="wi_id=${item.externalId}" />
    >            <Property name="openInNewWindow" value="yes" />
    >            <Property name="System" value="WDSETXXX" />
    >            <Property name="WebDynproNamespace" value="sap" />
    >            <Property name="display_order_priority" value="5" />
    >          </Properties>
    >          <Descriptions default="" />
    >        </Action>
    >      </Actions>
    >    </ItemType>
    >    <ItemType name="uwl.request.webflow.decision.WS91000001.UWLSETXXX" connector="WebFlowConnector" defaultView="WorkItemRequestsView " defaultAction="viewDetail" executionMode="default">
    >      <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
    >    </ItemType>

  • Webdynpro java application in UWL

    Hi Experts,
          My requirement is we  had one Java application , we need to link up this application into UWL  , and every month end who is accessing that application that guys have to get alert for to fill that form
        My question is is there any chance to link up this java application into UWL , please help on this issue or any possible ways is there.
    Thanks
    Renuka

    Hi Renuka,
    Have you had a look at the Javadocs?  The API is listed here and could fullfill your needs.  I have seen other customers build their own custom connectors to link to their own custom applications with the API documentation and coding:
    http://help.sap.com/javadocs/
    When you get to the main page, pick the version that you are working with, and then select Universal Worklist API's.
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    http://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • To get login details of portal into webdynpro application

    Hi All,
             How to get the portal login details(user name) into my webdynpro application.
    Thank you,
    Harsha P.

    Hi,
    If you want to have portal login details from backend system (with ABAP) you should ask this question in some portal forum and ask if it is possible. This has nothing to do with workflow or UWL. Even if you get the portal user ID to the backend system, then what? Do you want to manipulate the portal roles etc. from your ABAP WD application? Then you will have even more complicated requirements to achieve with ABAP. It is not that straightforward to call different portal functionalities from backend system. You might need to do some "portal development". And eventually your ABAP WD application might come just an unnecessary wrapper component for calling some web services or whatever in portal.
    Regards,
    Karri

  • Task configuation  containing webdynpro hyperlink in UWL

    Hi Experts,
         i have a workflow userdecision task that contains a hyperlink of webdynpro application.Now we have to integrate this task into UWL.we are able to open the task from UWL but on clicking on hyperlink this web dynpro application is not getting opened.
    Can you please suggest the steps to do the same.
    Regards
    Sonika chauhan

    Hi prashant,
       I am doing this for the first time..so not sure am i going in the correct way..i have a user decision task that contain following details
    1.Accept
    2.Reject
    3.Send for review
    Note for approval (hyperlink for webdynpro application)
    Now since i dont need any additional functionality i did not register this task in swfvisu(as i have understood if we need to add additional functionality ,we have to create webdynpro for that task and register the task in swfvisu).so for the task,the standard config screen is opening in UWL providing me the details of task,The accept and reject button are also working fine.
    Now when the user clicks on the hyperlink..it should call webdynpro application.But it is not calling.On right click on hyper link it shows URL as javascript.void(0)..that means it is not taking the URL.But where is this URL getting missed..i am not able to figure out.
    Do i need to configure the task in swfvisu..if yes what would be the launcher type.?
    Edited by: chauhansonika2011 on Jun 17, 2011 12:10 PM

  • Problems in triggering webdynpro application from Workflow using SWFVISU

    Hi everybody,
    We have created a webdynpro application which we are linking to our task using transaction SWFVISU .
    The method for the task is WEBSERVICE-DISPLAY.
    SWFVISU has been configured with parameters :
    application name : ZXXXXXXXXXXXXX
    and namespace  : sap.
    When i create a workitem in the UWL , and click on it, i get a dump with the following description : 'Exception condition "URL_CREATION_FAILURE" raised.'
    Now the strange thing is that if i use a standard SAP Webdynpro application , this works properly.
    Could anybody advise us on whether we are missing something ?
    Thanks,
    Joe

    Hi Raja,
    Thank you for your reply.
    I tried changing the method but it still throws the same error. i dont think this error is related to the Task method , since it can also be a dummy method (as is the case with the leave approval workflow 12300111) .
    Any other helpful suggestions ??
    Thanks,
    Joe

  • Workitem Text need to display in Webdynpro Application

    Hi,
    Requirement : Workitem ID need to capture in WebDynpro application along with workitem text. (i.e.., When user clicks on worktitem from UWL, the workitem text should display in Webdynpro applocation.)
    I have created workflow and Web dynpro application. I have configured in SWFVISU tcode and assigned parameter in webdynpro application parameters tab. Here, If i click's on workitem, it's opening sap web screen. But i want to open webdynpro application screen.
    Kindly suggest to do this..
    Advance Thanks & Regards,
    Jayaprakash N

    Hi Jayaprakash,
        If you are not seeing the button "Launch WebDynpro" when you click on your Workitem then your UWL is not configured. There are a couple of steps for that which are provided quite clearly in the link below .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?overridelayout=true
    Broadly the steps are:
    Re-register your system alias in UWL configuration. The path for this is System Administration / System Configuration /Universal Worklist Administration
    After re-registering, the portal will add one XML file for your system. Download the XML file, edit and add Webdynpro option specifying the Workflow Task ID and your custom webdynpro application name
    Upload the edited XML file with priority high and clear the cache
    In your WDA application define a plug name 'Start' and define the parameter WI_ID type SWW_WIID
    In your WDA window define a eventhandler HANDLESTART and inside write the code for reading the workitem id. Create a parameter WI_ID type SWW_WIID also for this eventhandler
    Let me know if you are stuck at any point.
    Regards,
    Arpan
    Message was edited by: Arpan Sengupta

  • Calling JAVA webdynpro applications from SAP Business workflow

    Experts,
    Is it possible to call JAVA webdynpro application as a task from SAP Business workflow? If yes, please pass on any links to relevant documents.
    Thanks,
    Deepak

    Hello,
    You would probably want to use UWL in the portal. From UWL you can launch tasks from portal, and with proper configuration (for example with the help of transaction SWFVISU) you can easily start web dynpro applications from UWL.
    I suggest you go trough the SAP documentation about UWL. Start for example here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Regards,
    Karri

  • How can I customize the stylesheet of webdynpro applications?

    Hello experts,
    how can I customize the Look & Feel (e.g. background color) of webdynpro applications?
    I refer e.g. to UWL which is opened by a task link in an email and opens as as webdynpro application in a separate window. It appears in the typical SAP blue. I would like to change the color.
    The portal´s customization does not affect webdynpro applications.
    Thanks in advance for any hint.
    Thomas

    Hi Avi
    Yep, that's what you get with AIR output. You have to live
    with the skins the AIR layout provides. I suppose if you are a FLEX
    developer you might be able to change the skins. But it is what it
    is.
    You might consider submitting a Wish Form to ask the
    development team to allow us more flexibility with AIR skins. Or to
    even create a way for the AIR app to use elements of the WebHelp
    skins.
    Click
    here to visit the Wish Form.
    Cheers... Rick

  • Webdynpro code for UWL

    Dear Experts,
    I am developing a WebDynpro application to access uwl tasks,
    Have added the following code
    IUWLService uwlService=(IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);
         UWLContext myContext = new UWLContext();
         try {
              IUWLSession mySession = uwlService.getUwlSessionForWebDynproClient(myContext);
              } catch (Exception e) {
              IWDMessageManager myMan = wdComponentAPI.getMessageManager();
              myMan.reportSuccess(e.toString());
    " The code builds and deployes.
    have added tckmcbc.uwl.api as Library reference.
    While running I am getting
    java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime error
    Regards,
    Debasish

    The sharing reference is already added. I solved the problem by addding the library prtapi.jar.
    But now I when I run I get java.lang.NullPointerException
    I am runnning this application directly via NWDS.
    Regards,
    Debasish

  • Needs a background webdynpro application running at the server side

    Hi All,
    We have a requirement wherein we need to have an application running all the time at the server side to capture the response coming from a web application. Based on the response that the application receives, it needs to update some backend R/3 tables.
    We are thinking of a webdynpro java application.
    Can anyone suggest what kind of application needs to be implemented here?
    And what  would be the steps required to run the application at the server side without calling the application.
    Thanks & Regards,
    Anurag

    Hi Robin,
    Thanks for the detailed explaination.
    This may sound silly to you but I've another doubt which is as follows:
    As you mentioned that the external web application will be sending requests to our Web service(in SOAP envelopes) and rest of the functionality can be  achieved by our web service.
    Actually, we are expecting only responses from the external web application. The thing is that we are sending the requests to the external web applications from our custom webdynpro application and in return the web application will be sending us 2 responses.
    First response would be back to our WD java application URL(to the browser in which WD java app is running) which would get the response and display some message based on the response.
    Second would be to this web service which you have just suggested. We are having two responses so that even if the browser in which the WD java application is running gets accidentally closed, the response from the external web application must get captured somewhere else and should not get lost in any case.
    So, now since we are only expecting the response from the web application and we do not want any requests from the web application to our web service; how is this possible?
    I am asking the above question because you have mentioned that the external web application has to request our Web service but we want is only this web service to capture the response coming from the Web application.
    Or is it like the web application will send us the response string as request string to our Web Service and the web service will capture these response parameters as request parameters from the web application and do the further processing.
    But in that case, we do not want any response to be sent by the Web Service to the external web application.
    Please suggest if this is possible.
    Once again, many thanks for the help so far.
    Thanks & Regards,
    Anurag

Maybe you are looking for