cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the data from one view to another view

Former Member
0 Kudos

Hi.

I create a Web Dyn Pro Application.

In that i created VIEW1. It is having one input field (KUNNR) and one Push Button (Next Screen).

After That i create VIEW2. It is having 4 input fields (KUNNR, LAND1, NAME1, ORT01).

When i execute the Application then i want display first View.

After That i give the KUNNR value. and press the Push Button.

Then i want display the second View with Related Customer Information.

I got the second screen but in that i did not get the values in the Input Fields.

How it is possbile. If you Know Plz help me if possible with screen Shorts.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use the parameters in the Inbound and Outbound plugs.

while navigating to the next view, create a parameter in the Outbound plug of 1st view and use the same parameter in the 2nd view to get the data of the KUNNR.

Check out this link on the same issue-

Regards

Lekha

Former Member
0 Kudos

pls refer to this [Link|http://saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm]

Former Member
0 Kudos

If your both views are in the same component then you can define your context as global on component controller level and mapp it to view context.

Answers (1)

Answers (1)

raja_narayanan2
Active Participant
0 Kudos

Hi.....

Its very simple...

follow this instructuion.

1) Create a <your node> in the component controller.

2) under the node create attributes you want like KUNNR,....etc.

3) create 2 views called VIEW1 & VIEW2.

4) in view1 context, do mapping the node form the component controller.

5)Create a outbound plug for view1.

6) In view1 design the layout like keeping only one input field and bind the values to from the context. for example KUNNR. and then keep one button... and create an action for that button.

7)double click the action and using the code wizard.. select the start navigation radio button and select your outbound plug.

😎 in view2 do mapping the node form the component controller.

9)desgin the view2 as per your requirements and bind the values from the context.

10)create an inbound plug for view2.

11)in the method tab you will find out handel<your inbound plug name> event.

12) do the necessary select query here and bind the values to your node.

13) now in the window create the navigation links from view1 to view2.

14) create the Web Dynpro application. Save it and activate all.

15) now test your application

Hope this will help you.

Thanks & regards

Raja