‎2007 Sep 05 10:20 AM
Hello,
I have created F4 help for a cell in the table control. I have used event Process on value request.I want to know on which row of the table control user has pressed F4.
Regards,
Satya
‎2007 Sep 06 5:33 AM
Hello,
use the ' DYNP_GET_STEPL ' function module to know the row, it will return u the index of the table, based on that, u can get the row details.
ex:
PROCESS ON VALUE-REQUEST. "F4
FIELD EKPO-EBELP MODULE help_ekpo.
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS 5 WITH HEADER LINE.
Adjust for scroling within table control
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = l_stepl
EXCEPTIONS
stepl_not_found = 0
OTHERS = 0.
l_indx = tc_ekpotable-top_line + l_stepl - 1.
"tc_ekpotable should already have been declared
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZZ_EKKO' "Program name
dynumb = '0100' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0.
ENDMODULE. " help_ekpo INPUT
Hope this helps you, if u still have any doubts revert back to me, i will post the entire code.
Regards,
Prasant
*Reward if useful
‎2013 Jul 03 12:25 PM