Skip to Content
avatar image
Former Member

calling an ohter Webdynpro application

Hi @all,

does anyone know, how to start an other <u>webdynpro application</u> from my current webdynpro?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 07, 2007 at 12:14 PM

    Hello Stefan.

    I guess you can use an OutboundPlug of type suspend in the main window of

    your application. A standard parameter of this plug type is URL. You have to fire

    this plug and set the URL in this fire method call.

    You also have to set up an InboundPlug of type resume in the main window.

    I did not tested this fully, but I guess you can use the service adress for the other

    WD app as URL.

    Just have a look at the SAP help on Windows and INBOUNDS + OUTBOUNDS.

    Hope this helps.

    Cheers,

    Sascha

    Message was edited by:

    Sascha Dingeldey

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 08, 2007 at 04:14 AM

    Hi Stefan,

    Calling another application from tye first one is the same as calling the window of the other component, because each application corrosponds to one window, and in turn each window to an interface view, which is nothing but the default view of the window.

    it would be the same scenario of calling one component from another component or rather i should say component reuse.

    some steps:

    - declare the usage of the 2nd component in the 1st.

    - embed the window of the 2nd in the window of the 1st.

    - make an outbound plug from any of the views of the 1st component and fire that plug on whichever condition you want.

    - make an inbound plug in the window of the 2nd component and check the INTERFACE property of that plug.

    - in the window of the main comp, create the navigation link.

    Hope this helps. If you want to pass parameters to the other application that can also be done. Let me know if you want to do that.

    Cheers!

    Ashish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      > You couldn't define the source component? What you

      > mean by that?

      I mean, I also know at runtime from which "Web-Dynpro-Component" I would call a view

  • avatar image
    Former Member
    Feb 09, 2007 at 09:01 AM

    Hi,

    U cannot declare the usage dynamically..but yes we can instantiate the child component based on some conditions. Calling a child comp is nothing but instantiating it and then calling some function modules.

    Some code snippet to instantiate a child comp.

    l_ref_comp_usage type ref to if_wd_component_usage

    l_ref_comp_usage = wd_this->wd_cpuse_<alias name of child>.

    if l_ref_comp_usage->has_active_component( ) is initial.

    l_ref_comp_usage->create_component.

    else

    l_ref_comp_usage->delete_component.

    endif.

    Now to call a method of a child u can use the code wizard in the "method call in used controller".

    Hope this ans your ques.

    ashish

    Add comment
    10|10000 characters needed characters exceeded