Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4 Help on Table control

Former Member
0 Likes
400

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

2 REPLIES 2
Read only

Former Member
0 Likes
338

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

Read only

0 Likes
338

This message was moderated.