<?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  string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459125#M1250840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You can concatenate a counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have all the 100 employees in one internal table, you can concatenate the 'SY-TABIX' to the split values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you should first take a character variable and assign the sy-tabix to this char variable and then concatenate this char variable to the splitted names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If required use 'CONDENSE' to remove any blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2009 10:40:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-20T10:40:07Z</dc:date>
    <item>
      <title>Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459117#M1250832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to replace  first three characters of  first and last name of an employee with  'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and update back in DB table    how to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg  if  name is    Mohan Sharma  then it shd be    XYZAN  XYZMA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459117#M1250832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T06:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459118#M1250833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;1) Get the data into internal table.

2) Split 'Mohan Sharma' at space into W_char1 w_char2.

W_char1+0(3) = 'XYZ'.
w_char2+0(3) = 'XYZ'.

Concatenate w_char1 w_char2 into w_char1 separated by space.

3) Modify internal table with W_char1.

4) Update the DB table from Itab.&lt;/CODE&gt;&lt;/PRE&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>Mon, 20 Apr 2009 06:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459118#M1250833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T06:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459119#M1250834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meeta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Example related to your query&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Processing Text Fields
		move f+off1(len1) to g+off2(len2).
		a = u2018abcdefghiu2019.
		b = 'ABCDEFGHI'
		move a+5(4) to b+4(4).
		b will be ABCDfghiI
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459119#M1250834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T06:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459120#M1250835</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;Please refer to the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T(10) VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;STRING LIKE T,&lt;/P&gt;&lt;P&gt;STR1(4) VALUE 'cdef',&lt;/P&gt;&lt;P&gt;STR2(4) VALUE 'klmn',&lt;/P&gt;&lt;P&gt;STR3(2) VALUE 'kl',&lt;/P&gt;&lt;P&gt;STR4(6) VALUE 'klmnop',&lt;/P&gt;&lt;P&gt;LEN TYPE I VALUE 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR2 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR2 INTO STRING LENGTH LEN.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR3 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR4 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abcdefghij&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abklmnghij&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abklmnefgh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abklghij&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abklmnopgh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note how, in the last line, the field STRING is truncated on the right. The search pattern 'cdef' of length 4 is replaced by 'klmnop' of length 6. Then, the rest of the field STRING is filled up to the end of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful to u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Srilu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459120#M1250835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T06:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459121#M1250836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on REPLACE for editing the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for updating the database, I assume that you want to update in a database table.&lt;/P&gt;&lt;P&gt;So, you need to use Enqueue, Dequeue FM , then Update statement for database table and do use Commit work after updating DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459121#M1250836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T06:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459122#M1250837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  znitesh1.

DATA: name type string value 'Meeta Nair',
      name1(20) TYPE c,
      name2(10) TYPE c.
SPLIT name AT space INTO name1 name2.
name1+0(3) = 'XYZ'.
name2+0(3) = 'XYZ'.
CONCATENATE name1 name2 INTO name1 SEPARATED BY space.
WRITE: name1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 07:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459122#M1250837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T07:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459123#M1250838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will replace the first &amp;amp; last 3 chars of any string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_str type string.
data: v_str1 type string,
      v_str2 type string,
      v_str3 type string,
      len type i,
      len1 type i.

v_str = 'Mahesh Reddy'.

len = Strlen( v_str ).
len1 = len - 3.

v_str1 = v_str+0(3).

REPLACE v_str1 WITH 'xyz' into v_str1.
concatenate v_str1 v_str+3(len1) into v_str3.

v_str2 = v_str+len1(3).

REPLACE v_str2 WITH 'xyz' into v_str2.
CONCATENATE v_str3+0(len1) v_str2 into v_str3.

WRITE:/ v_str3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can update the value into your DB table using UPDATE .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 07:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459123#M1250838</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-04-20T07:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459124#M1250839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Txs for quick truns   one thing i forget sorry   i  need to add the counter too at the end of this  string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if there are  100 employees  then &lt;/P&gt;&lt;P&gt;                                                     First name            Last name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg      Unipeps  Gora       shd  be     XYZPEPS01             XYZA01&lt;/P&gt;&lt;P&gt;         INDIA  Goalf          shd  be        XYZIA02                 XYZlf02&lt;/P&gt;&lt;P&gt;         Sunita  Phoddar     shd be       XYZita03                  XYZddar03&lt;/P&gt;&lt;P&gt;         Kamal   kunal        shd be        XYZal04                   XYZal04  ............and  so  on till the 100 number employee .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that  one number will  counter will too add at the end   i think we can add sy-index while concatenating              pls  correct me if am wrong ?&lt;/P&gt;&lt;P&gt;i need to update table  PA0002    for  First and Last Name for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459124#M1250839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459125#M1250840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You can concatenate a counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have all the 100 employees in one internal table, you can concatenate the 'SY-TABIX' to the split values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you should first take a character variable and assign the sy-tabix to this char variable and then concatenate this char variable to the splitted names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If required use 'CONDENSE' to remove any blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459125#M1250840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459126#M1250841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
Split itab-name at space into w_first w_last.
W_first+0(3) = 'XYZ'.
W_LAST+0(3) = 'XYZ'.

COncatenate w_first '0' sy-tabix into w_first.
COncatenate w_last '0' sy-tabix into w_last.
Concatenate w_first w_last into itab-name separated by space.
modify itab.
Endloop.

Modif ztable from Itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.

itab-first+0(3) = 'XYZ'.
itab-LAST+0(3) = 'XYZ'.
 
COncatenate itab-first '0' sy-tabix into itab-first.
COncatenate itab-LAST '0' sy-tabix into itab-LAST.

modify itab.
Endloop.
 
Modif ztable from Itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Mon, 20 Apr 2009 10:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459126#M1250841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459127#M1250842</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;Check this code...Have all the names in an internal table so that.. you can .. have the counter as well... Let the table be T_ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: w_first3 type string,
         w_last3 type string.
        w_xyz type char03 value 'XYZ',
        w_firstname type string,
        w_lastname type string.

Loop at t_itab1 into wa_itab1.

split wa_itab1-name at space into w_firstname w_lastname.

Replace w_firstname+0(3) with w_xyz.
concatenate w_firstname sy-tabix to w_firstname.

replace w_lastname+0(3) with w_xyz.
concatenate w_lastname sy-tabix to w_lastname.

concatenate w_firstname w_lastname into wa_itab1-name separated by space.

modify t_itab1 from wa_itab1.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this woudl work perfectly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459127#M1250842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459128#M1250843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Friends -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am able to update the replaced record  but i have a new req in this  i have to store the max counter number some where so  next time  if the same prog will run then  it shd run for the new employees means &lt;/P&gt;&lt;P&gt; if  today there are 100 employee then the last counter should be 100  and tommorw  if they run this prog for next  new   3  employees then  counter should strt with  101 and 102 and 103   and not again from 0 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also  how  can  we improve performance of this code  as  DB  update is not good inside loop  but this temp variable i need to fill everytime with new value ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  itab  like  pa0002 occurs 0 with header line ,&lt;/P&gt;&lt;P&gt;        tt     like pa0002 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        wa  like line of tt,&lt;/P&gt;&lt;P&gt;         count(8) type c ,&lt;/P&gt;&lt;P&gt;         temp(40) type c.&lt;/P&gt;&lt;P&gt;select  * from pa0002   into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where pernr not like 'XYZ%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by pernr.&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-nachn+0(3)  = 'XYZ'.&lt;/P&gt;&lt;P&gt;itab-vorna+0(3)  = 'XYZ'.&lt;/P&gt;&lt;P&gt;count = sy-tabix.&lt;/P&gt;&lt;P&gt;COncatenate itab-nachn count  into itab-nachn.&lt;/P&gt;&lt;P&gt;COncatenate itab-vorna  count  into itab-vorna.&lt;/P&gt;&lt;P&gt;CONDENSE itab-nachn  NO-GAPS.&lt;/P&gt;&lt;P&gt;CONDENSE  itab-vorna NO-GAPS.&lt;/P&gt;&lt;P&gt;concatenate  itab-nachn space itab-vorna into temp separated by  space.&lt;/P&gt;&lt;P&gt;*CONDENSE temp .&lt;/P&gt;&lt;P&gt;*append itab.&lt;/P&gt;&lt;P&gt;*Concatenate w_first w_last into itab-name separated by space.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*loop at itab.&lt;/P&gt;&lt;P&gt;*wa-pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*modify pa0002 from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update pa0002  set nachn =  itab-nachn&lt;/P&gt;&lt;P&gt;                   vorna =  itab-vorna&lt;/P&gt;&lt;P&gt;                   nchmc = itab-nachn&lt;/P&gt;&lt;P&gt;                   vnamc = itab-vorna&lt;/P&gt;&lt;P&gt;                   where pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*concatenate  itab-nachn itab-vorna into temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE pa0001  SET ename  =   temp&lt;/P&gt;&lt;P&gt; where pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohini &amp;amp; Meeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 14:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459128#M1250843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T14:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459129#M1250844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution for your first requirement that for the second run counter should start from 100 (or whereever last run stopped)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have make use of TVARV table to store that last run last value and fetch that value in the next run at update it with the current at the end of the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol for 2nd req is make use of UPDATE BY TABLE instead of updating everytime inside the loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rhea on Apr 20, 2009 4:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 14:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459129#M1250844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459130#M1250845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string/m-p/5459130#M1250845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:00:46Z</dc:date>
    </item>
  </channel>
</rss>

