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: 

Selecting record from Tab control.

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

andreas_mann3
Active Contributor
0 Kudos

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