Skip to Content

Call Views based on input field value in webdynpro for abap

Dear all,

I am working on a webdynpro application the requirement is like this based on the user selection need to display different graphs,My default view has an element DropDownByIndex which has 7  entries,i need to call different views on each entry selection on my default view,

my question here is how to call different views dynamically based on the user input .



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 16, 2016 at 06:52 PM

    Follow the steps:

    A. In your source view

         1.- Create one Outbound-plug for every target view

         2.- In the action code (I guess you had a button) read the DropDown selection

         3.- Using a "CASE" call the corresponding fire method for every outbound-plug

              Eg. CASE dropdownselection.

                        when '1'. wd_this->fire_PLUG_1_plg( ) .

                        when '2'. wd_this->fire_PLUG_2_plg( ) .

                        when '3'. wd_this->fire_PLUG_3_plg( ) .

                        when '4'. wd_this->fire_PLUG_4_plg( ) .

                        when '5'. wd_this->fire_PLUG_5_plg( ) .

                        when 'etc'. wd_this->fire_PLUG_ETC_plg( ) .


    B. Create an Inbound-plug in every target view.

    C. Add all the views (Source and targets) to your window

    D. Link all the outbound-plugs of your source view with the corresponding inbound-plug of every target view

    Let me know if you want images


    Edwin Guedez


    Add comment
    10|10000 characters needed characters exceeded