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

Module pool issue

Former Member
0 Likes
574

Hello all,

I am having a table control which has a list of values which r displayed..now all the values r in change mode..

what i need to do is i need to show the contents of the table to the user in display mode..and then when he selects a line item & clicks on edit(which is a button i've provided) only that particular line shud go into display mode..

I am having a problem in capturing which line he has selected ..so that i can modify only that record in the database table and save it.

plz help..its urgent..

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
559

Hi,

Define a variable<AB> of type C ans of 1 leght. This variable should have the same name as you have defined in screen painter for the option w/Sel Column ( that enables you to make row selection ).

Please do , loop end loop in the PAI, And in this loop write the module. And in that module use the use the variable <AB> that will be X for the selected line. If condition is true you can read the internal table for that TABCONTROL-CURRENT_LINE.

You cn also get the details of the selected line in TABCONTROL name. In debugger you can view them.

Thanks,

mahantesh

4 REPLIES 4
Read only

Former Member
0 Likes
560

Hi,

Define a variable<AB> of type C ans of 1 leght. This variable should have the same name as you have defined in screen painter for the option w/Sel Column ( that enables you to make row selection ).

Please do , loop end loop in the PAI, And in this loop write the module. And in that module use the use the variable <AB> that will be X for the selected line. If condition is true you can read the internal table for that TABCONTROL-CURRENT_LINE.

You cn also get the details of the selected line in TABCONTROL name. In debugger you can view them.

Thanks,

mahantesh

Read only

Former Member
0 Likes
559

Hi Amit ,

Refer program RSDEMO_TABLE_CONTROL.

Regards,

Charumathi.B

Read only

Former Member
0 Likes
559

Hi,

Write below code in PBO module in the loop statment.It will disable rows which are itab-mod is empty.

if itab-mod = 'X'.

loop at screen.

screen-input = 1.

modify screen.

endloop.

else.

loop at screen.

screen-input = 0.

modify screen.

endloop.

endif.

***************************************

write this in PAI module in loop statment and itab-sel should be as selection colunm.you can assign selection colunm in table control attribute

itab-mod = itab-sel.

modify itab index tab_cntrl-current_line.

try this, some thing tough to understand.

reawrd me

Read only

Former Member
0 Likes
559

thanx all..

it has solved my problem