cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the particular cell value from Table

Former Member
0 Kudos

Hi,

How could I get the cell value from table in View or

in CustomController from RFC

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shah,

I am not very sure about your requirement. But I suppose you are fetching some table data through an RFC and you need to get a particual cell's value from the fetched data. If this is the case:

When you import an RFC, as you might be aware, a WD node will be created corresponding to every R/3 structure involved. Now let us call the node corresponding to your table as 'MyNode'. 'MyNode' will have attributes created in it for each column type of the R/3 table. Now to hold data in 'MyNode', elements will be created which corresponds to the rows of the R/3 table. So for each row of R/3 table, an element of the corresponding node will be created and each element will have it's own values for each attribute.

You can access an element at index 'i' as:

wdContext.nodeMyNode().getMyNodeElementAt(i);

Let us say, you have an attribute 'MyAttribute' inside 'MyNode' and you want to retrieve the data of this attribute for the i'th row. Then from WD yu write :

wdContext.nodeMyNode().getMyNodeElementAt(i).getMyAttribute();

Hope this helps you,

Best Regards,

Nibu.

Former Member
0 Kudos

A Web Dynpro Table T has a "data source" context node S(T).

Let C be a column of T, let E(C) be the cell editor of C, let P(E) be the primary property of E displayed in the table and let A be the attribute of node S(T) to which P(E) is bound.

Then the cell value V(C, i) at column C and row at index i is given by:

V(C, i) = S(T)(i).A

Armin

Former Member
0 Kudos

Hi

Thanks for your explanation, could you send me in terms of code..?

Former Member
0 Kudos

No, please translate my specification using the Web Dynpro API.

Armin