<?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: Replace error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206552#M1626892</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPLACE ALL OCCURRENCES OF '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt;' 
IN v_data1-data WITH ' '.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 12:32:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-22T12:32:44Z</dc:date>
    <item>
      <title>Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206547#M1626887</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 want to replace the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into v_data1.&lt;/P&gt;&lt;P&gt;replace '&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;' with ' ' into&lt;/P&gt;&lt;P&gt;               v_data1-data .&lt;/P&gt;&lt;P&gt;replace '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt;' &lt;/P&gt;&lt;P&gt;     with ' ' into v_data1-data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here the code is not getting replace...kindly suggest where to change the code...&lt;/P&gt;&lt;P&gt;and i am getting su-subrc = 4...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The v_data1 will contain around 1000 characters..i need to search whole v_data1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 11:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206547#M1626887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T11:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206548#M1626888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of into i had expected in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 12:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206548#M1626888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206549#M1626889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgotten MODIFY ITAB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 12:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206549#M1626889</guid>
      <dc:creator>former_member226519</dc:creator>
      <dc:date>2011-09-22T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206550#M1626890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Florian Kemmer - in is showing as syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Volker Binder  - but before modify itab i need to modify wa..how to achieve that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 12:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206550#M1626890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206551#M1626891</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;This statement is obsolete, please check documentation for new REPLACE statement syntax...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] 
pattern 
IN [section_of] dobj WITH new 
[IN {BYTE|CHARACTER} MODE] 
[{RESPECTING|IGNORING} CASE] 
[REPLACEMENT COUNT rcnt] 
{ {[REPLACEMENT OFFSET roff] 
[REPLACEMENT LENGTH rlen]} 
| [RESULTS result_tab|result_wa] }.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ty_ch.
CONSTANTS: gc_pattern(100) TYPE c VALUE '&amp;lt;?xml versio = ...'.
LOOP AT itab ASSIGNING &amp;lt;fs&amp;gt;.
   REPLACE gc_pattern IN &amp;lt;fs&amp;gt;-data WITH space IN CHARACTER MODE.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 12:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206551#M1626891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206552#M1626892</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPLACE ALL OCCURRENCES OF '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt;' 
IN v_data1-data WITH ' '.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 12:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206552#M1626892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T12:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206553#M1626893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m using 4.6 version...there is no " REPLACE ALL OCCURRENCES"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206553#M1626893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T13:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206554#M1626894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK then try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ty_ch.   "Type of you v_data1 structure
CONSTANTS: gc_pattern(100) TYPE c VALUE '&amp;lt;?xml versio = ...'.
LOOP AT itab ASSIGNING &amp;lt;fs&amp;gt;.
   REPLACE gc_pattern WITH space INTO &amp;lt;fs&amp;gt;-data.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206554#M1626894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206555#M1626895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Manu...it is not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206555#M1626895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206556#M1626896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manu..canu let me know..if i need to add modify itab to below code to replicate to itab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab ASSIGNING &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  REPLACE c1 WITH space INTO &amp;lt;fs&amp;gt;-data.&lt;/P&gt;&lt;P&gt;  REPLACE c2 WITH space INTO &amp;lt;fs&amp;gt;-data.&lt;/P&gt;&lt;P&gt;  REPLACE c3 WITH space INTO &amp;lt;fs&amp;gt;-data.&lt;/P&gt;&lt;P&gt;  REPLACE c4 WITH space INTO &amp;lt;fs&amp;gt;-data.&lt;/P&gt;&lt;P&gt;  REPLACE c5 WITH space INTO &amp;lt;fs&amp;gt;-data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206556#M1626896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T14:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206557#M1626897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you don't have to use the MODIFY statement since you're using a referenced field-symbol.&lt;/P&gt;&lt;P&gt;I think you miscreated your constant, sorry was'nt so clear about that... the length must be the exact length of the string enclosed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONSTANTS: c1(15) TYPE c VALUE 'thisisaconstant'.  "Exact length = 15
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206557#M1626897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T18:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206558#M1626898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran your original code and it worked fine. Are you sure your itab contains the strings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206558#M1626898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T18:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206559#M1626899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the only thing missing in the original code was the modify statement... &lt;/P&gt;&lt;P&gt;But ugly to read &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206559#M1626899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T18:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206560#M1626900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But he got sy-subrc = 4 which tells me the string was not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I think of it, the sy-subrc = 4 would apply to the last loop pass where the string was not found, so if the modify were added, it would likely work (assuming the strings are actually in prior records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206560#M1626900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206561#M1626901</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;Is your requirement to replace what ever comes in the tags &amp;lt;...&amp;gt;  or are these strings fixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 04:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206561#M1626901</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-23T04:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206562#M1626902</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;Try this. This should work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: v1 TYPE string VALUE '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt;'.

LOOP AT itab INTO v_data1.
* Eg. v_data1-data = '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt; test'.

  REPLACE v1 WITH space INTO v_data1-data.
  MODIFY itab FROM v_data1 TRANSPORTING data.
ENDLOOP.

OR...... A simpler example is given below.

DATA: v1 TYPE string VALUE '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt; test'.
DATA: v2 TYPE string VALUE '- &amp;lt;Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"&amp;gt;'.

REPLACE v2 WITH space INTO v1.

WRITE: / v1,
       / v2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 05:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206562#M1626902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T05:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206563#M1626903</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;loop at itab into v_data1.&lt;/P&gt;&lt;P&gt;clear v_data1-data .&lt;/P&gt;&lt;P&gt;modify itab from v_data1-data  index sy-tabix transporting v_data1-data .&lt;/P&gt;&lt;P&gt;clear v_data1.&lt;/P&gt;&lt;P&gt;endloop.&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;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 06:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206563#M1626903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T06:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206564#M1626904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur help..it really helped...i have given exact length in the constants..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing...now i want to add 1 line to the existing itab..exactly at the begining..and 1 at the end...&lt;/P&gt;&lt;P&gt;i have tried with append..it always append at the bottom..but i want to add at the begining of itab...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 09:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206564#M1626904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T09:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206565#M1626905</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;Try this for adding line at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create another Internal table say ITAB1 of the same type as ITAB. Clear and fill the existing work area i.e. v_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
APPEND v_data1 TO itab1.
APPEND LINES OF itab[] TO itab1[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 09:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206565#M1626905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replace error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206566#M1626906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@OP - Please answer my previous question for my understanding. A simple regex statement might solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ danish&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this for adding line at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create another Internal table say ITAB1 of the same type as ITAB. Clear and fill the existing work area i.e. v_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND v_data1 TO itab1.&lt;/P&gt;&lt;P&gt;APPEND LINES OF itab[] TO itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No need of such big logic...Just a &lt;STRONG&gt;insert&lt;/STRONG&gt; with index 1 will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 09:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-error/m-p/8206566#M1626906</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-23T09:29:23Z</dc:date>
    </item>
  </channel>
</rss>

