cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulty in Tables

Former Member
0 Kudos

Hi I have developed a table which fetches data from RFC. I want that as soon as the user selects any row of the table, another table must be displayed below that table with details relating to that column, how can this be done.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

use this tutorial it will sole your problem.

[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/developing%20with%20tables%20in%20web%20dynpro.pdf]

Regards

Trilochan

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Umang,

For the table UI there is a property lead select.

Create an action for that and execute function module for displaying another table by passing input as column to second RFC.

see if ur column name is Vbeln then in the action leadselect write:

wdcontext.current<nodename>.setattr1(wdcontext.current<table1name>.getVbeln);

and execute the RFC.

This will display table for selected column.

Thanks

Prajakta

Former Member
0 Kudos

Hi.

In the properties of the table, create an action for "onleadselect". In this method you can populate the second table using "current" node element of your first table.

An other way is to create a supply function for the node connected to your second table and in that supply function use the current node element from the first table to populate the second table. You would then need to connect the onLeadSelect to a dummy method for webdynpro to make a server call when the user clicks a row.

Regards, Mikael

Former Member
0 Kudos

Hi,

Map the attributes from the node which is bound to the table to

inputfields/labels and place them below your table.

once the lead selection starts changing with out any code respective values will be populated.

Regards

Ayyapparaj