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

Table Control , with radio button

Former Member
0 Likes
1,192

Hi guys ,

i have a module pool screen with a table control , which contains a radiobuttons in one coloumn .

so i want to get the index of the row which i have clicked on (the radio buton) or the content of that row

waiting for the reply ...

thanks & regards

5 REPLIES 5
Read only

Former Member
0 Likes
951

have you used events...??

use User Command Event...

check sy-ucomm....

if it is &IC1 then param2-tabindex is the selected row index....

Read only

Former Member
0 Likes
951

Hi

Into loop of PAI you need to insert a module to get the position of the cursor

DATA V_FIELD(15).

DATA V_LINES TYPE I

GET CURSOR FIELD V_FIELD LINE V_LINES.

So you'll have the i/o field nane and the line of table control in the variables v_field and v_line

Rember v_line is the index of table control, if tuo want the index of internal table:

V_TABIX = V_LINE + <Table control>-TOP_LINE.

If you need to trigger pai as soon as the radiobutton is clicked, you need to assign an ok-code to the radiobutton

Max

Read only

0 Likes
951

thanks dude ... i took

GET CURSOR FIELD V_FIELD LINE V_LINES.

as you said v_line is the index of table control, if i want the index of internal table:

V_TABIX = V_LINE + <Table control>-TOP_LINE.

but it got mismatch

i took V_TABIX = V_LINE + <Table control>-TOP_LINE + 1 .

it was working fine for me

thanks & regards

Read only

0 Likes
951

thanks dude ... i took

GET CURSOR FIELD V_FIELD LINE V_LINES.

as you said v_line is the index of table control, if i want the index of internal table:

V_TABIX = V_LINE + <Table control>-TOP_LINE.

but it got mismatch

i took V_TABIX = V_LINE + <Table control>-TOP_LINE - 1 .

it was working fine for me

thanks & regards

Read only

0 Likes
951

Hi

Yes you're right

It was my mistake....I'm sorry

Max