Application Development 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: 

Regarding Table control cell action

Former Member
0 Kudos

Dear experts,

I have table control listing records like this.

RecNo,Customerno, cust name,material no, material name.

10,01111,33333,1000,PC

.....................

........................

.......................

if suppose i change customer no, it shoud retrieve corresponding the customer name and put in respective record customer name cell.

To do this cell action where i should write this check and continue..

I used Table control wizard now and i dont know how to do this action control. pls

explain..

ambichan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi ,

in screen insert a module on-request for field customer no .in that module write select query and get revelant data and assign to internal table work area and modify the internal table with work area with index CURRENT_LINE . i hope it will change the data in the table control.

eg : field <custno> module test on-request.

module test.

select * from <zcust> where <custno> = <custno>.

endselect.

  • assign <zcust> data wa.

modify itab from wa index current_line.

endmodule.

let me know if problem is solved.

5 REPLIES 5

Former Member
0 Kudos

hi ,

in screen insert a module on-request for field customer no .in that module write select query and get revelant data and assign to internal table work area and modify the internal table with work area with index CURRENT_LINE . i hope it will change the data in the table control.

eg : field <custno> module test on-request.

module test.

select * from <zcust> where <custno> = <custno>.

endselect.

  • assign <zcust> data wa.

modify itab from wa index current_line.

endmodule.

let me know if problem is solved.

Former Member
0 Kudos

hi ,

in last message i forgot tell about current_line is table control attr. if u declare table control name as tc then give it as tc-current_line.

table control as scrolling before modifing the internal table add tc-top_line and tc-current_line then modify.

data : ind type i.

ind = tc-top_line + tc-current_line.

modify itab from <wa> index ind.

0 Kudos

hey one more thing...

Thanks for your kind reply.

Actually,I have customer name field column in table as non editable.

if customer no is '20' then i have to make particular records customer name(cell) to editable mode. where as other records customer name(Column) is already in non editable mode.

how to do this...

Thanks in advance..i will reward points once after this reply.

ambichan

Former Member
0 Kudos

hi,

actually ur going to change the internal table of the table control so if the datas in the internal table changes it will automatically populate the record into the table control either if it is in non-editable mode or not .in ur case u r going to keep the cust no. in editable mode and rest of the fields in non editable form. so when u give the cust no. select all datas revelant to cust no. and populate the data into the internal table by modify command .

0 Kudos

HAI SAKA,

THANKS FOR YOUR REPLY.

i WILL CLOSE THIS THREAD..AS MY QUESTION IS SLIGHTLY DIFFERENT FROM THIS....

AGAIN..THANKS FOR YOUR SUPPORT.

AMBICHAN