on 02-16-2007 10:03 AM
Hello,
I have created a self defined function and added it in toolbar of ALV.
I need to attach a event ON_FUNCTION of SALV_WD_TABLE with that button generated by self defined function and call event handler.
pl can tell you how to recognize that event is created wrt a particuler button if there are multiple buttons created by self defined function.
I have gone through the sdn help of self defined fucntion generation and struck up at ON_FUNCTION event registeration with that self defined function.
Pl can anyone one of you suggest on this
thanks in advance,
Sharada
Hi Sharada,
1. define a method in your component (e.g. in the component controller), declare it as an eventhandler, press F4 in the corresponding Event column, choose the ALV component usage with Event ON_FUNCTION.
2. In the implementation of this method, there is a parameter r_param, and r_param->id contains your function name.
case r_param->id.
when 'MY_FUNCTION1'.
...
when 'MY_FUNCTION2'.
...
endcase.
Ciao, Regina
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 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.