Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 05:11 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 05:21 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2011 at 05:23 AM

    Otherwise,

    control the visibility of the views in button actions.

    for visibility use the attribute of type wdui_visiblity

    regards

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 05:35 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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...

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.