Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get different value in second view of webdynpro?

Former Member
0 Kudos

hello guys,

In ABAP webdynpro I am trying to create one application having two views.

One view contains input field and another view contains table control.

In module pool if one screen contains input field then second screen display the details in table as per the selection criteria in first screen,same way here in first view what ever I will enter as per the selection details should get display in the table.

Now I have created the application and now I am executing the application.

Here in first view in input field I am entering the selection criteria and when I am nevigating to second view it desplaying the details what I want in the table but now I am having one more pushbutton to nevigate to first view again and I am trying to enter the value but this time in the second view in the table it showing me the same details what there was in previouse details.

Can anybody please help me out?

4 REPLIES 4

former_member1245113
Active Contributor
0 Kudos

Hi,

FIrst You need to get the Attribute of the Input Field usig method GET_ATTRIBUTE then based on this value fetch data and pass it to table control using BIND_TABLE method.

when you go back to first view make sure you are getting the correct value entered and repeat the above step.

try using SET_ATTRIBUTE in case you required.

Cheers

Ram

0 Kudos

Thanks for reply but can you please tell me where can I use set_attribute?

As I tried to do it also but was of no use.

thanks and regards,

Umang

0 Kudos

Hi

YOu can use it in WDDOINIT Method associated with the VIEW just go to attribute tab and

IF_FLIGHT_VIEW double click on this Interface you will get all the methods.

Don't worry about all these methods.

Use Web Dynpro Code Wizard to get the required Declarations ( Hope you did it already) .

your element instance combined with the method Name.

For reference take the help of WDR_TEST_UI_ELEMENTS.

Cheer and Happy Diwali

Ram

0 Kudos

happy Diwali and happy new year ram.

Noe I m closing this thread.