cancel
Showing results for 
Search instead for 
Did you mean: 

Get reference to IF_WD_VIEW

Former Member
0 Kudos

Hi all,

I want to get the reference for the current view in a Event handler method.

I dont want ot import into the method.

How can i get a object(reference) to the current view?

--

Regards

Vinay Bedre

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you everyone for your kind reply...

--

Regards

Vinay Bedre

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I'm curious why you need the reference to the View anywhere except WDDOMODIFYVIEW. This event handler is the only place you can safely manipulate the view. In other event handlers you should only set flags to control what logic you execute in WDDOMODIFYVIEW.

Former Member
0 Kudos

Hi Thomas,

the WDMODIFYVIEW Event is triggert before my SPLY - Function in my Component - Controller fires. In the sply function I fill an itab which I need in the WDMODIFYVIEW.

How can i (re) - Fire teh MODIOFYVIE - EVENT?

regrads

Micha

Former Member
0 Kudos

Hi,

define a attribute in your view like go_view type ref to if_wd_view.

on wddomodifyview method

if first-time = abap_true.

wd-this->go_view = view

endif.