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

Insert Line in table Control

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

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 Nov 23, 2007 at 09:02 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 09:10 AM

    Hi Kasi,

    Try this link :

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

    Reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2007 at 09:11 AM

    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

    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.