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: 

Insert Line in table Control

Former Member
0 Kudos

Hi,

I have a table control in my screen with five records.I want to have the following functionality.

If the user selects a record and presses insert push button, a blank row has to be inserted for a new record to be added into the table

If the user selects a record and presses delete push button, the record has to be deleted from the table.

Give me a sample code or tell me an example program for the above functionlity ASAP .

Suitable answers will be rewarded

Regards,

Kasi S

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi kasi ,

for this design ur table control using se51 tcode . in this case u will be given with a set of full functionality and u wouldnt have to do any coding for this .

well this is a shortcut and ofccourse if u want to do it manualy then u can use getcursor command and then u can just insert innitial line on to the index of ur table control ..

Thanks

ROhit

Reward if helpfull

Message was edited by:

ROHIT GUPTA

3 REPLIES 3

Former Member
0 Kudos

hi kasi ,

for this design ur table control using se51 tcode . in this case u will be given with a set of full functionality and u wouldnt have to do any coding for this .

well this is a shortcut and ofccourse if u want to do it manualy then u can use getcursor command and then u can just insert innitial line on to the index of ur table control ..

Thanks

ROhit

Reward if helpfull

Message was edited by:

ROHIT GUPTA

Former Member
0 Kudos

Hi Kasi,

Try this link :

http://sap.niraj.tripod.com/id29.html

Reward if helpful.

former_member196299
Active Contributor
0 Kudos

hi ,

Check for the program <b>demo_dynpro_tabcont_loop_at</b> .

Else you can check some of the samples under Txn ABAPDOCU ..

Regards,

Ranjita