cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically get the view usage in window using if_wd_rr_window

sreenivas_pachva
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

sreenivas_pachva
Participant
0 Kudos

Hi Kiron,

thanks for your reply,

I had already done that one but same issue came. Is there any other way?

Actually my scenario is create the view(VIEW_NAME) with window then created view container dynamically and provide one more view embedded dynamically to the view container which i have created dynamically.

Thanks&Regards

----------------------

Sreenivas Pachva

Former Member
0 Kudos

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