cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic mapping for alv

Former Member
0 Kudos

Hi All,

I need to display three tables using alv.

i have used one alv component in my application.

In my context i have three nodes ( for three tables )

when i am trying to map one node of my component control to 'DATA' of alv component

its working fine. i am getting the data of one table .

Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component.

Whether i need to create two more alv components or Is there any possible to dynamic mapping ?

Thanks and Regards,

sravan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sravan,

Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component

You cann't map the multiple context nodes to the DATA node of interface controller.You have to declare 3 component usages.

or

you want to set the map the dynamically then use this code.

data:l_ref_interfacecontroller type ref to iwci_salv_wd_table.

l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).

l_ref_interfacecontroller->set_data( lo_node ).

Answers (0)