<?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: copying certain lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391475#M1239298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks alot got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 09:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T09:40:30Z</dc:date>
    <item>
      <title>copying certain lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391471#M1239294</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;i am developing a report that will read another report code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i want to copy certain lines of code once again i.e. if there is upload function called in the report i want to copy all the parameters that are there in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one tell me how can i copy code that is there in between 18 and 48(sy-tabix) of a report ?&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>Wed, 25 Mar 2009 07:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391471#M1239294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: copying certain lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391472#M1239295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have data in internal table use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab inot ws_itab.

If ws_itab CS  'CAll FUNCTION'         
Set the flag
ENDIF.

IF flag = 'X'.

copy the codes.

elseif flag = 'X' and ws_itab CS 'ENDIF'.
flag = 'X'.

Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else:&lt;/P&gt;&lt;P&gt;Use :SCAN-ABAP SOURCE STATEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SCAN-ABAP|http://help.sap.com/abapdocu/en/ABAPSCAN.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 07:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391472#M1239295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: copying certain lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391473#M1239296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE BELOW SYNTAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT TYPE TABLE OF STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ REPORT 'REPORT NAME'  INTO TABLE IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT INTO WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE YOU CAN CHECK FOR THE CALL FUNCTION STATEMENT.&lt;/P&gt;&lt;P&gt;YOU CAN USE 'SEARCH' KEYWORD FOR IT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 07:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391473#M1239296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T07:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: copying certain lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391474#M1239297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume the following simple report:&lt;/P&gt;&lt;P&gt;REPORT ZSTRUC1.&lt;/P&gt;&lt;P&gt;WRITE / 'Hello, I am a little structure!'.&lt;/P&gt;&lt;P&gt;and the following lines of another program:&lt;/P&gt;&lt;P&gt;DATA CODE(72) OCCURS 10.&lt;/P&gt;&lt;P&gt;READ REPORT 'ZSTRUC1' INTO CODE.&lt;/P&gt;&lt;P&gt;APPEND 'SKIP.' TO CODE.&lt;/P&gt;&lt;P&gt;APPEND 'WRITE / ''and I am a dynamic extension!''.' TO CODE.&lt;/P&gt;&lt;P&gt;INSERT REPORT 'ZDYN2' FROM CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in this way u can copy lines and edit from one report to other..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 07:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391474#M1239297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T07:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: copying certain lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391475#M1239298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks alot got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 09:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-certain-lines/m-p/5391475#M1239298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T09:40:30Z</dc:date>
    </item>
  </channel>
</rss>

