2007 Jan 10 8:28 PM
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
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
2007 Jan 10 8:31 PM
Check this sample program
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=...CodeSamples/TableControlin+ABAP.pdf
Raja T
Message was edited by:
Raja Thangamani
2007 Jan 10 8: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
2007 Jan 10 8: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