Skip to Content
author's profile photo Former Member
Former Member

Regarding Table control cell action

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 12:02 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 12:13 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 01:33 PM

    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 .

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.