cancel
Showing results for 
Search instead for 
Did you mean: 

calling different views at runtime based on my condition abap webdynpro

Former Member
0 Kudos

Hi friends,

Could you pls help me in this issue.

I am new to webdynpro abap.

I have an action on my first view.

basically its a sales order linktoaction. when i click it, i have to check a condition.

if process type = A,

then navigate to view 2(different abap webdynpro component's view)

elseif process type = B,

then navigate to view 3(different abap webdynpro component's view)

endif.

I only have experience in calling one view for a action, so i dont have much idea on this how to acheive.

I have this IF condition, on action event.ON that i need to call view of another application.

thanks in advance,

Niraja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Pls read the context and context element details. If the context element meetus ur required condition the file the oubound plug which goes to the view.

For eg:

if <elment_detail> = 'X'.

wd_this-> fire_plg1() -- This will call one view.

elae.

wd_this -> fire_plg2() -- This will call another view.

endif.

Former Member
0 Kudos

Thanks MCG,

Could you please eloborate on this steps.

how can i mention another WDA's view?

pls help me.

Niraja.

Former Member
0 Kudos

Pls refer to this [Thread|]

Former Member
0 Kudos

Thank yo so so much ABAP WD,

seems that links document wil help me all along.

Just 2 questions, is that links document pdf, will the second view opens in other browser or same browser.

ALso i want to pass some values to second WDA. How to pass it?

and in second WDA, how and where can i read that values.

Please make me happy

Thanks in advance,

Niraja

Former Member
0 Kudos

1) Second view will open in the same browser.

2) In the Secon view you will have method WDDOINIT.

In that method First read the context node refrence

data: nodee_order_header type ref to if_wd_context_node.

node_order_header = wd_context->get_child_node( name = 'ORDER_HEADER' ).

Then bind your data table to

order_header->bind_table( it_orderh ).

it_orderh is your internal table.

uday_gubbala2
Active Contributor
0 Kudos

Hi Niraja,

If you want to pass parameters to a WDA application you can pass them by URL link.

Example: http://...?pass1=value1&pass2=value2 In this case you pass two parameters to the application.

In WDA application you can control parameters in windows, you can add parameters in the plug 'Startup' which names are same as URL parameters, and then you can create notes/attributes in the context of windows then map them to the context of view. In the method of startup plug you can pass the parameters to the context of windows. You can search WDA help by WDA application parameters.

You can check this [link |http://saptechnical.com/Tutorials/WebDynproABAP/DynamicViews/Window.htm]for dynamic view navigation in a window. And no its a pdf file. It takes you to another website where they have explained it with step-by-step screenshots.

You may also be interested in checking out this [link |http://saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm]where they have explained Navigation from one View to other View along with parameters using Plugs with out using Component Controller context. It too isn't a pdf & does take you to another website.

Hope these help.

Regards,

Uday

Former Member
0 Kudos

Thanks, I am opening a new ticket with full details..

Answers (0)