<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: copy paste within table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301619#M1391180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use ctrl&lt;EM&gt;C and ctrl&lt;/EM&gt;V keys within table control. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2009 06:45:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-10T06:45:38Z</dc:date>
    <item>
      <title>copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301617#M1391178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created table control with wizard. and i'm uploading the data into table control from excel ****, after upload function i'm getting all rows from excel sheet to table control and i'm saving this into on customized table now my requirement is that i need to do copy-paste function within table control itself. Suppose user copy some rows from table control and again paste within same table control, how shall i achieve this functionality? how can i use mark field  or cursor-field from table control structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301617#M1391178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301618#M1391179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have two buttons 'COPY' and 'PASTE' as sub functional buttons for the table control. Go to the layout of your table control -&amp;gt; Check the w/sel column and give a name lets say 'MARK'. We get the selection column on the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your TOP, declare a field for 'MARK' in your internal table (that which is in synch with your table control) like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_tab occurs 0,
             check(1) type c,
             --------------
         end of it_tab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in the PAI inside the module enclosed with LOOP...ENDLOOP for the table control, write the functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
LOOP AT it_tab WITH CONTROL tcl.
 MODULE check_data.
ENDLOOP.

PROCESS AFTER INPUT.
MODULE clear_internal_table.
LOOP AT it_tab.
 MODULE it_itab_mod.
ENDLOOP.

MODULE clear_internal_table INPUT.
  clear it_tab[].
ENDMODULE.

MODULE it_itab_mod INPUT.
  wa_tab-check = mark. "Transfer the status of mark field on table control to internal table that is select the fields you want to copy
  case sy-ucomm.
   when 'F_COPY'.
         if wa_tab-check = 'X'.
            wa_tab_temp = wa_tab.
            append wa_tab_temp to it_tab_temp.
         endif.
 endcase.
ENDMODULE.

MODULE check_data OUTPUT.
   if sy-ucomm eq 'F_PASTE'.   
     ztable-field1 = wa_tab-field1.
     ztable-field2 = wa_tab-field2. 
  endif.
ENDMODULE.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. This is just a rough template. Try building on the core logic according to your requirement and convenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301618#M1391179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301619#M1391180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use ctrl&lt;EM&gt;C and ctrl&lt;/EM&gt;V keys within table control. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301619#M1391180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301620#M1391181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my knowledge I dont know of a method that can capture such keyboard events (except for a few ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301620#M1391181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301621#M1391182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried with CL_TABLECONTROL class but it's not working. i dont know which exact method or attribute i need to use for this..do you have any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 07:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301621#M1391182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301622#M1391183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; uploading the data into table control from excel ****, &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a professional forum. Kindly check your spelling &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 07:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301622#M1391183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T07:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: copy paste within table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301623#M1391184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please ignore the above.Done by mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranjal11 wrote:uploading the data into table control from excel sheet,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 08:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-paste-within-table-control/m-p/6301623#M1391184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T08:59:58Z</dc:date>
    </item>
  </channel>
</rss>

