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

Set viewset dynamically as standard view in a window

Hello collegues,

I want to Display a certain view ("view 1") in an overview page of another component.

"View 1" is in "Viewset 1".

"Window 1" has two viewsets:

"Viewset 2", marked as Standard.

"Viewset 1", not marked as Standard.

"Window 1" is in the component Interface aso.

When I add "Window 1" to the overview page of my component, then "Viewset 2" is shown, not "Viewset 1".

How can I set "Viewset 1" dynamically as Standard view in "Window 1" so that "View 1" is shown in my overview page?

Best regards,

Thomas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 11, 2013 at 04:55 PM

    Hi,

    Cant you create a new window with viewset1 and assign it to a new Interface controller . Now use this interface view to define component usage and use it in the overview page.

    Thanks,

    Kumar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2013 at 06:53 AM

    hi,

    In Overview page IMPL Claz you will find the method " DETACH_STATIC_OVW_VIEWS ".

    redefine that method and use the following piece of code,

    mt_detached_views of type BSP_DLC_OVW_STAT_VIEW_ATTACH_T declare as a Global variable in IMPL claz

    DATA:it_svs TYPE bsp_dlc_ovw_dyn_views_list_t,

    wa_svs TYPE bsp_dlc_ovw_dyn_views_list,

    wa_det TYPE bsp_dlc_ovw_stat_view_attach.

    */ Getting the list of Views of a OV page....

    it_svs = me->get_list_of_static_views( ).

    READ TABLE it_svs INTO wa_svs WITH KEY viewid = 'VIEWSET2'.

    wa_det-viewid = wa_svs-viewid.

    APPEND wa_det TO mt_detached_views.

    CLEAR wa_det.

    rt_viewid = mt_detached_views.

    hope this might be helpful,

    Regard's

    Vam's.... 😊

    Add a comment
    10|10000 characters needed characters exceeded

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.