cancel
Showing results for 
Search instead for 
Did you mean: 

WDDOAFTERACTION

Former Member
0 Kudos

WDDOAFTERACTION how to call in WDDOINIT method

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

FVG

former_member211591
Contributor
0 Kudos

Hi...

Copy content of your WDDOAFTERACTION into a new method METH with import parameter WDEVENT.

Call METH in WDDOMODIFYVIEW with first_time = abap_true.

And call METH in WDDOAFTERACTION.

Regards

ismail

ajoy_chakraborty
Participant
0 Kudos

Not possible.

You will get following error message:

Method WDDOINIT

Method "WDDOAFTERACTION" does not exist. There is, however, a method with the similar name "WD_CREATE_ACTION".

I suggest:

Write Initialization part in WDDOINIT.

Create a button in view editor.

Write "after screen processing" logic in WDDOAFTERACTION.

You need not write any code in onAction event of button.

Former Member
0 Kudos

Hi Ravi,

We cannot call wddoafteraction in wddoinit.

However if you can explain why you need to do that , could suggest someother way.

Former Member
0 Kudos

HI,

This method is called for all visible views at the time an action is executed. Here functions can be placed that are carried out equally for all associated event handlers. This avoids any unnecessary multiple programming in the event handlers.

Regards,

Karthik.R

Former Member
0 Kudos

Hi,

You cannot call WDDOAFTERACTION from WDDOINIT as there is no reference for these functions in the WD_THIS object.

My solution is creating a new method and place the code in that method. Now call the same method from WDDOAFTERACTION and WDDOINIT whenever you need.

Regards

Fareez