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

Selecting record from Tab control.

Hai,

Thanks for your assistance.

I have table control displaying table records.

Now,if customer selects one record from table control then

i want to retrieve that selected record and

update value 'X' to one field of the record

and post this changed record again in table control.

so Incoding i dont know how to retrieve the selected record from table control.

could you please help?

Regards

Chandra kumar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 02:17 PM

    You can take a look at program

    demo_dynpro_tabcont_loop_at

    Flip into change mode with the button at the top and then you can select multiple rows and hit the delete button to delete them from the display. This should be a good example because the program determines what rows were selected so that it knows which ones to delete.

    In a nutshell, your table control will have a field called MARK or something like that, and it will have an 'X' in it to identify the rows that were selected.

    Please review the demo program and post any followup questions.

    Let us know how it goes.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 02:21 PM

    Hi Chandra,

    In the PAI processing of your screen check your selection field and update your record in the internal table:

    PROCESS AFTER INPUT.

    *

    LOOP AT g_tc_itab.

    CHAIN.

    FIELD: line_2000-selfield.

    MODULE update_record.

    ENDCHAIN.

    ENDLOOP.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2005 at 02:21 PM

    Hi,

    -> append field mark(1) to your itab and tc

    1) MODIFY tc at pai.

    2) analyse which line of your tc is marked

    By: loop at itab wherer mark = 'X'.

    Andreas

    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.