<?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: concatenate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592669#M1082989</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 hope I've understood your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: LEN_TEXT TYPE I.

LEN_TEXT = STRLEN( ITAB-TEXT ).

IF LEN_TEXT &amp;lt;= 139.
  MOVE VBELN TO ITAB-TEXT+LEN_TEXT(10).
  LEN_TEXT = LEN_TEXT + 10.
  MOVE '|' TO ITAB-TEXT+LEN_TEXT(1).
ELSE.
  MOVE VBELN TO ITAB-TEXT1(10).
  MOVE '|' TO ITAB-TEXT1+10(1). 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2008 16:49:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-13T16:49:53Z</dc:date>
    <item>
      <title>concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592665#M1082985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;          i need to concatenate the field itab-vbeln with '|' and place in one of the field in itab-text.&lt;/P&gt;&lt;P&gt;My field length of itab-text(250) type c and if this field exceeds vbeln of 250 char it should  go to next field of itab-text1(250) type c.&lt;/P&gt;&lt;P&gt;can anyone help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;r.singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 16:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592665#M1082985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T16:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592666#M1082986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;concatenate itab-vbeln '|' in itab-text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length = strlen(itab-vebeln).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if length gt 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-vbeln+250 = itab-text1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 16:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592666#M1082986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T16:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592667#M1082987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE itab-vbeln itab-txt INTO var1 SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Midhun Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 16:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592667#M1082987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T16:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592668#M1082988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vbeln is going to be always 10 characters long? (are you going to save it with leading zeros?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only complete vbeln's, the element is 10 characters long plus the "|" charachter, so you can only fill the text with 22 numbers, so place a counter and every 22 loops append the text.&lt;/P&gt;&lt;P&gt;If you want them not complete like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
000001|00004|00
003|00005|0006
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I think I have an algorith somewhere that I can modify and see if it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 16:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592668#M1082988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T16:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592669#M1082989</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 hope I've understood your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: LEN_TEXT TYPE I.

LEN_TEXT = STRLEN( ITAB-TEXT ).

IF LEN_TEXT &amp;lt;= 139.
  MOVE VBELN TO ITAB-TEXT+LEN_TEXT(10).
  LEN_TEXT = LEN_TEXT + 10.
  MOVE '|' TO ITAB-TEXT+LEN_TEXT(1).
ELSE.
  MOVE VBELN TO ITAB-TEXT1(10).
  MOVE '|' TO ITAB-TEXT1+10(1). 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 16:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/4592669#M1082989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T16:49:53Z</dc:date>
    </item>
  </channel>
</rss>

