<?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: syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307731#M160610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REPLACE ALL OCCURRENCES OF &amp;#145;-&amp;#146; WITH SPACE into lv_string .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE&amp;lt;strl&amp;gt;WITH&amp;lt;str2&amp;gt;INTO&amp;lt;c&amp;gt;[LENGTH&amp;lt;1&amp;gt;].&lt;/P&gt;&lt;P&gt;ABAP/4 searches the field &amp;lt;c&amp;gt; for the first occurrence of the first, &amp;lt;1&amp;gt; positions of the pattern &amp;lt;str1&amp;gt;.  If no length is specified, it searches for the pattern &amp;lt;str1&amp;gt; in its full length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2006 09:36:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-17T09:36:17Z</dc:date>
    <item>
      <title>syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307729#M160608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPLACE all occurances of '-' WITH space INTO lv_temp.&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307729#M160608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307730#M160609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace all occu&amp;lt;b&amp;gt;rr&amp;lt;/b&amp;gt;ences of '-' in lv_temp with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give 2 R's in occurrences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307730#M160609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307731#M160610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REPLACE ALL OCCURRENCES OF &amp;#145;-&amp;#146; WITH SPACE into lv_string .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE&amp;lt;strl&amp;gt;WITH&amp;lt;str2&amp;gt;INTO&amp;lt;c&amp;gt;[LENGTH&amp;lt;1&amp;gt;].&lt;/P&gt;&lt;P&gt;ABAP/4 searches the field &amp;lt;c&amp;gt; for the first occurrence of the first, &amp;lt;1&amp;gt; positions of the pattern &amp;lt;str1&amp;gt;.  If no length is specified, it searches for the pattern &amp;lt;str1&amp;gt; in its full length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307731#M160610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307732#M160611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'abc' IN myText WITH 'XYZ'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307732#M160611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307733#M160612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZNEGIDEMO                               .&lt;/P&gt;&lt;P&gt;DATA: A(4) TYPE C,A1(20) VALUE 'Welcome - to-- ABA-P'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '-' IN a1 with space.&lt;/P&gt;&lt;P&gt;write a1.&lt;/P&gt;&lt;P&gt;it  is  workin(tested).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307733#M160612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307734#M160613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT abc.

DATA : cha(10) VALUE 'cha-sek'.

REPLACE ALL OCCURRENCES OF '-' IN cha WITH space.

WRITE : cha.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful and close thread if solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307734#M160613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307735#M160614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below code,it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_data(30) type c value 'kee-rt-hi'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE all occurrences of '-'  IN lv_data WITH '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ lv_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if helpful.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: keerthi kiran varanasi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307735#M160614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307736#M160615</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..&lt;/P&gt;&lt;P&gt;REPLACE ALL &amp;lt;b&amp;gt;OCCURRENCES&amp;lt;/b&amp;gt; OF '-' WITH SPACE into lv_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307736#M160615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T09:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307737#M160616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To replace a string in a field with a different string, use the REPLACE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;str1&amp;gt; WITH &amp;lt;str2&amp;gt; INTO &amp;lt;c&amp;gt; [LENGTH &amp;lt;l&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement searches the field &amp;lt;c&amp;gt; for the first occurrence of the first &amp;lt;l&amp;gt; positions of the pattern &amp;lt;str1&amp;gt;. If no length is specified, it searches for the pattern &amp;lt;str1&amp;gt; in its full length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the statement replaces the first occurrence of the pattern &amp;lt;str1&amp;gt; in field &amp;lt;c&amp;gt; with the string &amp;lt;str2&amp;gt;. If a length &amp;lt;l&amp;gt; was specified, only the relevant part of the pattern is replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the return code value of the system field SY-SUBRC is set to 0, this indicates that &amp;lt;str1&amp;gt; was found in &amp;lt;c&amp;gt; and replaced by &amp;lt;str2&amp;gt;. A return code value other than 0 means that nothing was replaced. &amp;lt;str1&amp;gt;, &amp;lt;str2&amp;gt;, and &amp;lt;len&amp;gt; can be variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 09:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307737#M160616</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-05-17T09:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307738#M160617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct Syntax is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of '-'  in lv_temp with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 10:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307738#M160617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T10:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307739#M160618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Praneeth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form&lt;/P&gt;&lt;P&gt;REPLACE f WITH g INTO h. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... LENGTH len (length specification for field f ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Replaces the first occurrence of the contents of field f in field h with the contents of field g . All fields are handled in their defined length; this means that closing blanks are not ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value indicates whether the string f was found in h and replaced by g : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 String replaced. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 String not replaced. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FIELD(10).&lt;/P&gt;&lt;P&gt;MOVE 'ABCB' TO FIELD.&lt;/P&gt;&lt;P&gt;REPLACE 'B' WITH 'string' INTO FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD = 'AstringCB', SY-SUBRC = 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;The fields f and g in the REPLACE statement should not overlap. Otherwise, the result is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;... LENGTH len ... (length specification for field f ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Searches for the string f in the field h not in its (full) field length, but in the length len . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PATTERN(5) VALUE 'ABC',&lt;/P&gt;&lt;P&gt;      LEN TYPE I,&lt;/P&gt;&lt;P&gt;      REPL_STRING(5) VALUE '12345',&lt;/P&gt;&lt;P&gt;      FIELD(12) VALUE 'abcdeABCDE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE PATTERN WITH REPL_STRING&lt;/P&gt;&lt;P&gt;                INTO FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not change FIELD , since 'ABC ' does not occur in abcdeABCDE ' . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN = STRLEN( PATTERN ).&lt;/P&gt;&lt;P&gt;REPLACE PATTERN LENGTH LEN&lt;/P&gt;&lt;P&gt;                WITH REPL_STRING&lt;/P&gt;&lt;P&gt;                INTO FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changes FIELD to 'abcde12345DE' . &lt;/P&gt;&lt;P&gt;Related SEARCH , TRANSLATE , OVERLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 10:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307739#M160618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307740#M160619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not getting space in between,the two strings are concatenated without space in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;praneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 10:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307740#M160619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307741#M160620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi then u need to use split command and then use concatenatation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : a(10),b(10),d(40).
	D = &amp;#145;Apple/Orange&amp;#146;.
	Split d at &amp;#145;/&amp;#146; into a b.

Concatenate a b into d separated by &amp;#145; &amp;#146;.
	Write:/ d.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 11:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307741#M160620</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-05-17T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307742#M160621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii Praneeth&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SPLIT STRING AT &amp;#145;-&amp;#146; INTO P1 P2 P3 P4 .&lt;/P&gt;&lt;P&gt;CONCATENATE P1 P2 P3 P4 INTO P SEPARATED BY SPACE .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it ..it worked .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 11:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307742#M160621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307743#M160622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I am not sure how many occurences of - will be there in my string.In that case i think this will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 11:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307743#M160622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T11:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307744#M160623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;[code]In that case declare one itab and concatenate those

check the modified one

REPORT abc.

DATA : BEGIN OF itab OCCURS 0,
            str(50),
       END OF itab.

DATA : cha(50) VALUE 'cha-sek-jskjfsjf',
       str(2000).

SPLIT cha AT '-' INTO TABLE itab.

loop at itab.

 concatenate str itab-str into str separated by space.

 endloop.

 write : str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 11:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307744#M160623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307745#M160624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXCELLENT CHANDRASEKHAR ITS WORKING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AWARDED MAXIMUM POINTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS AGAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;PRANEETH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 11:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1307745#M160624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T11:22:57Z</dc:date>
    </item>
  </channel>
</rss>

