Skip to Content

Dynamically get the view usage in window using if_wd_rr_window

Hi everyone,

I am trying get view usage reference from window for that call the method GET_VIEW_USAGE of interface api : if_wd_rr_window , in method within that i passed view name passed to exporting parameter which has embedded view name into window( That is(view name) : VIEW_MAIN in main component )

CALL METHOD L_WINDOW_INFO->GET_VIEW_USAGE

EXPORTING

NAME = 'USAGE_VIEW_MAIN'

RECEIVING

RESULT = l_view_usage.

The above code is returning run time error is usage_view_main does not exist in the window

Thanks

----------

Sreenivas

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2012 at 11:50 AM

    Hello Sreenivas,

    Please check :

    CALL METHOD L_WINDOW_INFO->GET_VIEW_USAGE

    EXPORTING

    NAME = 'VIEW_MAIN'

    RECEIVING

    RESULT = l_view_usage.

    The name should be the name of the VIEW which is embedded in the WINDOW which is being referred by the L_WINDOW_INFO object ref.

    Good Luck,

    Kiron

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sreenivas Pachva

      Hello Sreenivas,

      I believe it is not possible to create a view container dynamically.

      This is a wd standard restiction.

      You may create an empty view at design time and then supply the component(s) at runtime.

      let me know what exactly is your full requirement as in the scenario.

      regards,

      kiron

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.