cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign one ALV component to different view container

Former Member
0 Kudos

Hi experts,

how to assign one ALV TABLE control to different viewContainerUIelement

my problem is I have a tab strip with 3 tab's , each have one viewContainerUIelement , now I want to use the same ALV TABLE compenet for the three tab's

is it possible to embed the alv compenent dynamically to the viewcontainer element ?

I am using salv_wd_table

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Akash,

It is possible to achieve this. have a single node which is mapped to the data node of ur ALV used compoenent.

Now on the tab select u can fetch the data and bind ur data to the node.

but using a single ALV will leads to lot of problem, like when u are selecting any value from the ALV output then it would not be possible to know which tab's row is selected.

Preferred solution is to use the different ALV for different tab's.

If u are just displaying tha data and want to use basic functionality of ALV then only go for single ALV.

Former Member
0 Kudos

Hi Pankaj , output is only for display , I am not able to embed the same ALV table control thrise on three viewcontainer . It is saying that TABLE control is already used. any Idea how to bind it thrue coding

Former Member
0 Kudos

Hi,

U need to have three views and have to embed these views in ur tabs. Just have a single node in the component controller and map the node in all the views. Now in all the views which needs to be used for tabs, have view containers in them and embed the table view of ALV in all the views.

U can not do it with a single view.

Former Member
0 Kudos

Pankaj , how can I embed a single view on three different tab's ? if it is possible then it will solve my problem

Former Member
0 Kudos

HI,

U can not embed a single view in three tabs. U need to have different views in different tabs. Just have same data in different views, what problem u are facing in that.

Former Member
0 Kudos

Hi,

Follow these steps:

1. Create 3 views - V1 , V2, V3.

2. In all the three views embed Viewcontianere.

3. Inside these vieContainer , embed ALV view.

4. Now create a tabstrip with threee tabs T1 T2 T3.

5. Inside T1 create a viewcontainer VC1 .

6. And similarly for other tabs , Vc2 , VC3.

7. Embel V1 into tab T1's ViewContainer VC1 and others also in a similar way.

I hope now it is clear.

Former Member
0 Kudos

are all tabs showing the same set of data, if yes then it doesn't makes sense to create 3 diff views, instead create one only

If all the 3 diff tabs are supposed to show diff set of data then you have to create 3 diff ALV usages..

Former Member
0 Kudos

tab's have different sets of data , but the fields are same . I took the three ALV but its taking more time to execute.

Is't it possible to have only one ALV , and bind it with the container on tab selection ?

Former Member
0 Kudos

Hi Akash,

One thing you can do with seperate ALV usages to improve performance is that only on change of tab you call the method of that particular ALV to fill data and set an extra flag to check only when some selection criteria is changed then you only you call the method to fill data again otherwise not.

So, only when tabs are loaded first time it should take time..and that too the load is for filling data and not for ALV configuration.

Check you domodifyview method and debug it.