Skip to Content
0
Former Member
Dec 05, 2008 at 11:19 AM

dynamic binding in alv, then retrieving that node info

20 Views

Hi All.

We have around 5 internal tables which can be shown in an ALV. Based on certain checks, we bind the correct table to the ALV using the SET_DATA method.

That works fine.

But now, when user does some action, we need to retrieve the data back from the node. How do I dynamically create my internal tables? I know there is a bad way of using lots of if-then-else and create itab statically.

Is there not any method in ALV which will return me the node information based on which i can declare my elements structure into which to get the data?

If it is not clear, let me elaborate: If itab2 is showing, when we get back data using GET_STATIC_ATTRIBUTES_TABLE method, we need to pass itab2 structure to the method, and same way for other internal tables. We don't want to hardcode it.

Any suggestions please?

Thanks in adv.