on 02-09-2009 9:59 AM
Hi,
I have 3 "link to action" elements and a single method. I have assigned "on action" event for all 3 elements to that single method. Now i want to know inside the method from which "link to action element" is this method called dynamically.
Can anyone help me out with the solution.
Thanks in Advance.
Regards,
Kanakaraj V A
Hi Kanakaraj,
Write the following code in your ONACTION method, case statement compare the ID that you gave to ur buttons.
method myactionmethod.
data: lv_get_index type i,
btn_name type string,
lv_set_index type i,
lv_msg type string,
lv_max type i.
call method myevent->get_string
exporting
name = 'ID'
receiving
value = btn_name.
case btn_name.
when 'BTN_LOCATE'.
when 'BTN_FIRST'.
when 'BTN_LAST'.
when others.
endcase.
Greetings
Prashant
ps: Points welcome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hey you can go thru the WDA Component - DEMODYNAMIC in the SWDP_DEMO PACKAGE of your sap system. This will help u in solving ur problem
Thanks and regards,
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.