cancel
Showing results for 
Search instead for 
Did you mean: 

Control List of ALV Variants based on a parameter

prasanth_kasturi
Active Contributor
0 Kudos

Hi,

I need to control the ALV Variants based on a parameter which would be available at run time. Could any one please let me know how to control the list of ALV variants ( Values in Drop Down Box) dynamically.

I need to set the Default View [STANDARD_VIEW] by default. Could anyone help me here.

Regards

Prasanth Kasturi

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Prasanth,

Please refer the below document

Hope this helps you.

Regards,

Rama

prasanth_kasturi
Active Contributor
0 Kudos

Hi Rama,

Thanks for the link, but it will not be of much use.  I need to control the list of Variants displayed in the Drop Down based on a parameter. It must be done while ALV is loaded for the first time but not on any user action. Can it be done in Webdynpro  ALV.

Regards

Prasanth Kasturi

ramakrishnappa
Active Contributor
0 Kudos

Hi Prasanth,

Yes, it can be done, you need to get the available layout variants for alv and based on the condition you can set the layout.

Please refer the below link

Hope this helps you.

Regards,

Rama

prasanth_kasturi
Active Contributor
0 Kudos

HI Rama,

I checked that link... Actually I posted my ques also

When I start the application with a Variant, I am unable to find my other variants in the List,

Can you please help with some code.

Regards

Prasanth Kasturi