Call Web Dynpro application on a button Click.

Hi,
I have 2 web dynpro components.(COMP1 and COMP2). I wants to call  the application of COMP2  from a button click  from COMP1.
1. In COMP1  view i have a button. I have  created an outbound plug 'TO_APP'  with parameter 'URL' type string.
2.  Inside the event handler method for the button i have  written the code as given below.
  data str_url type string.
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name              = 'COMP2_APP'
    IMPORTING
      out_absolute_url              = str_url
  wd_this->fire_to_app_plg(
    url =                               str_url
When i click the button it wont navigate to COMP2. Is there any other step required ?
Please helps me to solve this issue...
Regards,
Shaira.

Hi,
   To call URL in same window first create an outbound plug in your current window(ex: EXIT_PLUG ),mark this
   EXIT_PLUG as interface and plug type EXIT. Now use the following code in your button action.
data : lr_view_cont TYPE REF TO if_wd_view_controller.
data : lr_win_cont TYPE REF TO if_wd_window_controller.
data : lt_parameter_list type wdr_event_parameter_list.
data : ls_parameter type wdr_event_parameter.
data : lr_val type ref to data.
data : lr_comusg type ref to if_wd_component_usage.
field-SYMBOLS : <fs> type any.
lr_view_cont = wd_this->wd_get_api( ).
CALL METHOD LR_VIEW_CONT->GET_EMBEDDING_WINDOW_CTLR
  RECEIVING
    RESULT = lr_win_cont
ls_parameter-name = 'URL'.
create data lr_val type string.
assign lr_val->* to <fs>.
<fs> = 'HTTP://APPLICATION URL' .                                       "PASS YOUR URL HERE
ls_parameter-value = lr_val.
insert ls_parameter into TABLE lt_parameter_list.
lr_win_cont->if_wd_view_controller~fire_plug(
exporting
    plug_name = 'EXIT_PLUG'
    parameters = lt_parameter_list ).

Similar Messages

  • Calling Web Dynpro application or URL from POWL

    Hi Friends,
    I need to call a Web Dynpro appl from a custom POWL. In my feeder class's method HANDLE_ACTION, i am not getting how to use e_portal_actions parameter for calling a URL of WD application. Pls help me out in this.
    Regards,
    Saud

    You can create a launchpad application through tran LPD_CUST and then in repsective method of POWL class you can launch your web dynpro application like this
    DATA ls_appl_param              TYPE APB_LPD_S_PARAMS.
      DATA lt_appl_param              TYPE APB_LPD_T_PARAMS.
      DATA lt_lpd_content             TYPE apb_lpd_t_content.
      DATA lr_lpd_content             TYPE REF TO apb_lpd_s_content.
      DATA lt_lpd_appl_params         TYPE apb_lpd_t_params.
      DATA lr_lpd_handle              TYPE REF TO cl_apb_launchpad_api.
      DATA lo_component     TYPE REF TO if_wd_component.
      DATA lr_provider      TYPE REF TO if_apb_lpd_provider.
      "Get launchpad handle
    lo_component = wd_comp_controller->wd_get_api( ).
    cl_apb_launchpad_api=>read_for_display( EXPORTING id_role = cl_oif_ui_assist=>sc_lpd_roles "Role Name
                                                       id_instance = cl_oif_ui_assist=>sc_lpd_instance " Instance Name for Launchpad
                                                       id_langu = sy-langu
                                                       ir_provider = lr_provider
                                                       ir_wd_component = lo_component
                                             RECEIVING er_launchpad = lr_lpd_handle ).
      CHECK lr_lpd_handle  IS BOUND.
      lt_lpd_content = lr_lpd_handle->get_content( ).
      READ TABLE lt_lpd_content REFERENCE INTO lr_lpd_content
                                WITH KEY link_text = cl_oif_ui_assist=>sc_lpd_link_text. "Link text for launchpad
          ls_appl_param-key = cl_oif_ui_assist=>wda_config_key.  "'SAP-WD-CONFIGID'. "app conf if any
          ls_appl_param-value = cl_oif_ui_assist=>CREATE_CONFIG_ID. "'MDG_OIF_CREATE_CONF'.
          APPEND ls_appl_param TO lt_appl_param.
          lt_lpd_appl_params = lr_lpd_content->application_parameter.
          "launch application
          lr_lpd_handle->launch_application(
            id_application_id         = lr_lpd_content->application_id
            it_application_parameters = lt_lpd_appl_params
            it_business_parameters =  lt_appl_param

  • Call ESS FPM CATS Working time application from non FPM web dynpro application on click of button

    Hi,
    My requirement is to launch ESS Working time application HRESS_AC_CATS_1 from custom web dynpro application.
    ESS CATS working time application is configured in LPD_CUST launchpad.
    I tried using method  cl_hr_navigation_services=>navigate in my custom web dynpro but it did not work.
    Regards,
    Ibrahim

    In case you want to use Launchpad, you can use ABAP class CL_APB_LAUNCHPAD_API. If choose not to use Launchpad, you can use method CONSTRUCT_WD_URL of ABAP class CL_WD_UTILITIES to generate the URL. Specify Web Dynpro application and Web Dynpro Configuration as parameter. Finally create an external window using method CREATE_EXTERNAL_WINDOW that points to that URL.

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • Calling a Web Dynpro Application from POWL feeder class

    Hi,
    I know this question is asked before but never answered, but I try again......
    I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS.
    I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_ACTION.
    When pressing the button I want do call another web dynpro application.
    How can I do this? -> Any Example Coding?
    Thank you and best regards, Edgar

    Hi Vineet,
    it works, thanks a lot!!!!  Best Regards, Eddy
    P.S.: Here is the coding for triggering the event and passing parameters for the selected POWL table line:
    METHOD if_powl_feeder~handle_action.
      DATA: ls_parameter TYPE powl_namevalue_sty.
      DATA: lt_flights TYPE ty_flights.
      DATA: ls_flight TYPE sflight.
      DATA: ls_selected TYPE rstabix.
      FIELD-SYMBOLS: <lt_fligts> TYPE STANDARD TABLE.
      IF i_actionid = 'EDIT'.
    *   Important: this triggers the event
        e_portal_actions-fire_wdevent = abap_true.
    *   Pass parameters to event
        ASSIGN c_result_tab TO <lt_fligts>.
        lt_flights = <lt_fligts>.
    *   Determine the first selected row
        READ TABLE c_selected INTO ls_selected INDEX 1.
    *   Read selected POWL data
        READ TABLE lt_flights INDEX ls_selected-TABIX INTO ls_flight.
        CHECK sy-subrc = 0.
    *   Pass parameters
        ls_parameter-key = 'ACTIONID'.
        ls_parameter-value = 'I_ACTIONID'.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'CARRID'.
        ls_parameter-value = ls_flight-carrid.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'CONNID'.
        ls_parameter-value = ls_flight-connid.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'FLDATE'.
        ls_parameter-value = ls_flight-fldate.
        APPEND ls_parameter TO e_portal_actions-parameters.
      ENDIF.
    ENDMETHOD.

  • Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View

    Hi all,
    I want to exit a Web Dynpro application when the user presses an Exit button on the screen. Is there an API for closing the current browser window and exiting the application?Thanks.
    Sukru

    hi,
    For closing Main Window, use Exit Plug in Windows:
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add CLOSE_WINDOW of type wdy_boolean as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont be possible ).
    ->Fire the outbound plug with close_window as X in the onAction of Exit Button .
    Refer SAP online help on using Exit plug to close a window:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm
    method ONACTIONGO_EXIT .
    data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .  
    L_REF_MAIN_WINDOW =   WD_THIS->GET_MAIN_WINDOW_CTR( ). 
    L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(     CLOSE_WINDOW =   'X' ).
    endmethod.
    here Main_window is the window which needs to be closed.
    I hope it is clear.

  • Examples of 'calling a web dynpro application with parameters'

    Hi!!
    I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
    Is there some example where these terms are seen.
    Thanks in advance.

    Hi Ana,
    a window inbound plug can have parameters.
    These parameters are automatically fished out of the URL by the framework.
    So your inbound plug handler method has easy access to the parameters.
    URL
    http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz&param2=abc
    The application is configured to call an inbound interface(window) and plug.
    The plug can be declared with parameters.
    Double click on window inbound plug and add your parameters.
    The parameters are made available by framework if present in Launch URL.
    You can also call an application that has parameters  directly entered on the parameters tab.
    ie Parameters can be part of the application launch.
    regards
    Phil

  • Error when initially calling Travel Trip Form Web Dynpro application

    Hello all,
    we are facing a problem when calling for the first time the Travel Trip Form Web Dynpro application.
    In the trace file we get the following error message:
    application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.services.sal.core.DispatcherException: Wrong Web Dynpro URL: "../WebDynpro/Servlet/<deployableObject>/<application>/xx?..". xx is not allowed without exchange key. Retrieved URI path: /sap.com/esstratri/TripForm/~wd_key890_1246626831816/background.gif.
    Exception id: [001E680CB1CE0078000002A600007B4A00046DCCEE3F358A]
    This appears when a trip has been initially created and if the user wants to display a travel trip form.
    However, this does not appear anymore, if you click on the travel trip form again.
    Best Regards
    Philipp

    Hello Philipp,
    We are having same problem. Please let me know solution....
    Som

  • Which sy variable is initiated when web dynpro application call rfc of r/3

    Hi,
    My question is that when i pressed my web dynpro application button which called rfc at r/3 at that time which system variable will initiated.
    Regards,
    Gurprit

    Hi Gurprit,
      All variables of sys structure will be intiated.
    regards,
    Ganga.

  • Passing a parameter while calling a web dynpro application on portal

    hi
    I am having a web dynpro application which retrieves data from R/3 system via RFC using Jco destinations define in the Portal.
    Now we have different kinds of portals running on the same WAS, now I want the application to run which access data from different R/3 systems thru different JCo destinations.
    I need to create a logic such that mu application runs fine on any portal with any Jco destination.
    Is there any provision to achieve this.
    kindly let me know about this.
    Thanks and regards
    kris

    Gopi,
    there's an parameter called "sap-wd-arfc-useSys" you can pass to the application, to change the used JCo-Connection (read more at http://help.sap.com/saphelp_erp2005/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm)
    so, if you're running the WD-aaplication on <b>one</b> WAS and call it from different portals, you have to create three (or six with the META-connections) JCo-Connection on your WD-WAS.
    In a WD-application you can access URL-Parameters with:
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<your URL Parameter-Name>");
    kr, achim

  • Calling an interface METHOD of another abap web dynpro application

    Hi Experts,
    Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.
    Thanks
    Mahesh

    Hi ,,
       Example ALV interface method calling   GET_MODEL interface method
       View attribute   declaration   :    M_WD_ALV  type      IWCI_SALV_WD_TABLE
         DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          wd_this->M_WD_ALV =   wd_this->wd_cpifc_alv( ).   "ALV is the usage name
         DATA lv_value TYPE ref to cl_salv_wd_config_table.
          lv_value = wd_this->M_WD_ALV->get_model(  ).   " interface method calling in ALV component usage.....
    Regards,
    Devi

  • Call a ABAP Web-Dynpro-application via a BSP-Application

    We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
    For the moment I can call the ABAP Web Dynpro-Application from our application.
    This application runs in the same session as the Framework (verify in transaction sm04).
    When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
    I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
    Can someone help me?

    Thx for the tip,
    but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
    I want to call the ABAP Web Dynpro form BSP like this way.
    1. Start BSP-Framework
    2. Call ABAP Web-Dynpro-Application from BSP
    3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
    Regards Stefanie

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • Call web dynpro abap application at login

    Hello!
    I have a requirement to call an abap web dynpro application at Login.
    When this web dynpro page is called I want it to be the top page, i.e the roles, masthead, etc should not be visible for user to have access.
    Any sugesstions?

    Dale Hewison wrote:
    End of days play, this is what I was able to achieve.
    Realised the masthead jsp is the best place to call my abap web dynpro as it is just after the login and at the load of default framework page.
    I was able to call my abap web dynpro and on success, I am calling the homepage role.
    What I have done in the jsp is written an if else statement:
    1) If it is the first call to the jsp call my abap web dynpro in navigation mode 3. This ensures the roles are not visible and the redirection works before the page loads.
    2) Else load the framework page as usual.
    The only issue I have at this point is, I cannot depend on the first visit of the user.
    I need to know in the jsp where the call to jsp is coming from, if it is coming from login page, i will direct the user to WDA else if the call is from my WDA, the normal load should work.
    It would be ideal if my abap web dynpro could write something in the http header which the jsp could read as success. Still close but dont have the solution working yet
    Thanks again for your time.
    Regards,
    Dale
    Hi Dale,
    I am trying to implement something similar and I cannot find the place in the masthead where you put your custom code, to call your Web dynpro instead of the framework. Can you expand on your solution? I am looking in HeaderiView.jsp. Also if you can tell me how you figured out where the call to masthead is coming from?
    Thanks

Maybe you are looking for

  • BPEL process instances remain in-flight

    Hi I've got a BPEL process (GetUpdates) that calls a couple of other asynchronous BPEL processes (CommitPerson, CommitAddress etc) all of which are deployed on the same SOA server. Although most of the processes complete, quite a few instances of the

  • Size Limits to Essbase

    Hi, I am working on a Planning application and as most of you would now, it is based on a BSO Essbase cube. I wanted to know, if there are any limitations to the size of the dimensions? And if yes, then what is the limit on the number of members? For

  • Visited link color not working

    I have my pages set to "do not show color change" on a link that has been visited, but it is defaulting to blue. I checked the css on all my pages, and it looks right. Why could this be happening? Please visit a few pages then return to any of them t

  • Tool tip

    I have a report based on sql query. I want to include the tool tip like functionality that is when a user move the cursor on a specific record or a on a specific item in a record a tool tip may be displayed. Is it possible.

  • Trying to run my web application from Tomcat 5.5.5

    Hi everybody, I have a web application that it has a login JSP page that call other page that it has a call to servlet but when it tried to call it, tomcat is showing the following message: Servlet gppController isn't available (error 404). I checked