cancel
Showing results for 
Search instead for 
Did you mean: 

WD4A - ALV - How to read VIEWS create in Administrator mode from code

Former Member
0 Kudos

Hi, In WD4A I have a ALV.

I create a few views in Admin mode.

Now I want the user to click on a button en then a must be able to open a view with code depends on the button selected.

Eg Button1 = View1 and Button 2 - View2

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Maybe my question is not clear.

I created 2 VIEW in WDA ALV in mode (sap-config-mode=x) so that the view are available to all users . Say view1 and view2 (In normal abap this view are called variants.

The default view is [Standard View].

Now i know how to call ABAP dynpro views but need to now how to called ALV VARIANT views with code

Thanks

Former Member
0 Kudos

Hi,

Yes, I remember that I have answered the same requirement in one of the threads.

Check this out for my replies to the same -

Personalization ALV -

http://help.sap.com/saphelp_nw04s/helpdata/en/46/b07e0772850761e10000000a114a6b/content.htm

Regards,

Lekha.

Edited by: Lekha on Dec 22, 2011 11:19 AM

Former Member
0 Kudos

Hi, This is very helpfull but I struggle to understand something :

I look at excample : WDR_TEST_CONFIG

and when they call method : WDR_TEST_CONFIG

they are using a key : l_config_key = 'WDR_TEST_TRANSPORT_1'

I lookin TABLE : wdy_conf_usert

and found my records but there is a configuration name and Configuration Variant, so I am not sure how to use them.

Thanks

Former Member
0 Kudos

that table may have details for a given component, user id there will be variants that gets saved ..with active ones I gues...in that personlization you have get_varaints right....that metods returns these config keys..based on component/application and user id you need to get the record...

Former Member
0 Kudos

Hi,

DO you have a example program to 1) read (GET)

and another example that will 2) Display the variant that were read.

Thanks

Former Member
0 Kudos

In the above links that i have provided you have GET_VARIANTS part...after that...from that table we can display our default variant or someting likethat....rest of the code..can you check in debuggin waht that get_varaints retrun you will have an idea..i will definelty provide you the code but it is by tomorrow....as i have already done that earlier..

One thing..oout of these variants which vairants you want to display..so that when you open that ALV only that default one or the one you set it thgourh the code gets displayed...

former_member199125
Active Contributor
0 Kudos

Otherwise,

control the visibility of the views in button actions.

for visibility use the attribute of type wdui_visiblity

regards

Srinivas

Former Member
0 Kudos

Hello friend,

Its very simple just create the plugs in each view.

At the output plug fire event, write what the code needs to be executed and also mention which view needs to be triggered.

Likewise do the same for the other view.

For details about how to call view just see this example link below.

http://www.saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm

After seeing the tutorial if your problem does not resolve revert back to me i will explain you the steps in detail.

Thanks,

Sri Hari

Former Member
0 Kudos

Can you be more clear...what views that you are talking about...