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

Table control new entries

Hi,

Please send the sample logic for the following

1.How can set the cursor at the new line in Table control when i press NEW ENTRIES icon?

I need this logic in sy-ucomm ... WHEN 'NEWENTRIES'.

2.How can i delete one/multiple rows selected in Table control?

I need this logic in sy-ucomm ... WHEN 'DELETE'.

Please help me ASAP.

Appreciate ur help.

Madhu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 10, 2007 at 08:31 PM

    Check this sample program

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abapCodeSamples/TableControlin+ABAP.pdf

    Raja T

    Message was edited by:

    Raja Thangamani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 08:35 PM

    Hi Madhu,

    Please check this demo programs.

    RSDEMO02 (Create new entry)

    DEMO_DYNPRO_TABCONT_LOOP_AT (Delete entry)

    Hope this will help.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 08:36 PM

    <i>1.How can set the cursor at the new line in Table control when i press NEW ENTRIES icon?</i>

    You need to get the cursor line by using the command:

    GET CURSOR FIELD <field name> LINE <line>.

    This gives you the line in the table control where the cursor is but you also need to consider if the user has scrolled the table control entries. The code below will give you the true cursor line for your table control.

    GET CURSOR LINE <line>.

    cursor_line = <table_control>-top_line + <line> - 1.

    Raja T

    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.