on 02-23-2012 10:26 AM
WDDOAFTERACTION how to call in WDDOINIT method
FVG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.