<?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: SPLIT command causes trouble in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041467#M1701117</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;Can you change separator in your code from space to &lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB and check, try below code if it works for you?&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;SPAN class="L0S52"&gt;REPORT YTEST&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;String&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;begin &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lt_split &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;char50&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field1' &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field2' &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field3' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;SEPARATED &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BY&lt;/SPAN&gt;&lt;BR /&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;split &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;at&lt;/SPAN&gt;&lt;BR /&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ lt_split&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Gagan &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 08:12:18 GMT</pubDate>
    <dc:creator>former_member194152</dc:creator>
    <dc:date>2012-10-08T08:12:18Z</dc:date>
    <item>
      <title>SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041462#M1701112</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 have a scenario where I have a fieldlist (individual fieldnames separated by blanks, like 'KUNNR BUKRS ERDAT ERNAM ... ').&lt;/P&gt;&lt;P&gt;This fieldlist is split using SPLIT AT ' ', the results are appended to an internal table, one line for every fieldname.&lt;/P&gt;&lt;P&gt;I can only guess, but what happens is, the word ERDAT in that fieldlist is truncated to ERD and the one directly behind it, ERNAM, is left out altogether - I guess that is because of the form of the command, &amp;gt;&amp;gt; SPLIT AT ' ' &amp;lt;&amp;lt;.&lt;/P&gt;&lt;P&gt;Does anyone know this problem and why it happens and how I can fix it?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 15:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041462#M1701112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-05T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041463#M1701113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to code like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CONDENSE input.&lt;/P&gt;&lt;P&gt;SPLIT input AT space INTO TABLE itab IN CHARACTER MODE.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041463#M1701113</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-05T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041464#M1701114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long is the fieldname character string? Are we talking about tens of characters or thousands? Also I hate to ask such a simple question but you're sure that your fieldname character string has all of the characters you think it does?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 19:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041464#M1701114</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-10-05T19:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041465#M1701115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please post your exact code snippet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 04:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041465#M1701115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-06T04:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041466#M1701116</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;&lt;/P&gt;&lt;P&gt;first of all, thanks for all the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Alex&lt;/P&gt;&lt;P&gt;Yes, I'm sure the field_names the user inputs are valid (only real, existing SAP DB tables and fields). I'm not sure what you mean about the characters, but the words (they're only words at that stage I presume) are all complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Yogesh,&lt;/P&gt;&lt;P&gt;Sure I can post my code. The scenario is: I have an example - I need something to work on - with four tables and I have variables Fields1 to Fields4 from one of my dialogs, each being a string and going like this:&lt;/P&gt;&lt;P&gt;- Fields1: 'KUNNR BUKRS GJAHR UM01U ' "Tab1 is KNC1&lt;/P&gt;&lt;P&gt;- Fields2: 'AKONT ' "Tab2 is KNB1&lt;/P&gt;&lt;P&gt;- Fields3: 'KUNNR NAME1 NAME2 ORT01 ERDAT ERNAM ' "Tab3 is KNA1&lt;/P&gt;&lt;P&gt;- Fields4: 'BUTXT WAERS' "Tab4 is T001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE Fields1 ` ` Fields2 ` ` Fields3 ` ` Fields4 INTO FieldsT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE FieldsT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* We are now going to use a SPLIT functionality to split this fieldlist&lt;/P&gt;&lt;P&gt;* apart into individual field_names. The result of this SPLIT will be&lt;/P&gt;&lt;P&gt;* saved into the lines of an internal table which, of course, we have&lt;/P&gt;&lt;P&gt;* to declare beforehand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF res_line_type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fieldname TYPE C LENGTH 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF res_line_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES SPLIT_tab_type TYPE STANDARD TABLE OF res_line_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA SPLIT_tab TYPE SPLIT_tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_SPLIT TYPE res_line_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Here comes the actual SPLIT command, splitting the fieldlists&lt;/P&gt;&lt;P&gt;* at the separating BLANKs.&lt;/P&gt;&lt;P&gt;SPLIT FieldsT AT ' ' INTO TABLE SPLIT_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see, what I do (or what I indent to do) is, I concatenate all four fieldlists into one, I use CONDENSE to get rid of blanks at the very beginning and the very end and then I split the whole thing into this table, one row per field_name.&lt;/P&gt;&lt;P&gt;One possible weakness of this approach is, when the user enters two or three blanks inbetween two field_names, I'll end up with a blank line in that table which will wreak havoc in the program.&lt;/P&gt;&lt;P&gt;For some reason, this SPLIT command, as I have said earlier, truncates the fieldname 'ERDAT' to 'ERD' and subsequently ignores the fieldname 'ERNAM', continuing with 'BUTXT' which then of course is in the wrong position and screws up the subsequent processing loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Raymond,&lt;/P&gt;&lt;P&gt;I will try this alternative code and see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 07:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041466#M1701116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-08T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041467#M1701117</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;Can you change separator in your code from space to &lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB and check, try below code if it works for you?&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;SPAN class="L0S52"&gt;REPORT YTEST&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;String&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;begin &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lt_split &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;char50&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field1' &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field2' &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Field3' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;SEPARATED &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BY&lt;/SPAN&gt;&lt;BR /&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;split &lt;/SPAN&gt;temp &lt;SPAN class="L0S52"&gt;at&lt;/SPAN&gt;&lt;BR /&gt;CL_ABAP_CHAR_UTILITIES&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;HORIZONTAL_TAB&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;lt_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ lt_split&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Gagan &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041467#M1701117</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-10-08T08:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041468#M1701118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, unfortunately that did not solve my problem - in the opposite, that did not generate a nice table at all whereas using either &amp;gt;SPLIT AT space&amp;lt; or &amp;gt;SPLIT AT ` `&amp;lt; do - but then I still have the same problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Raymond&lt;/P&gt;&lt;P&gt;I tried the option IN CHARACTER MODE, but that did not seem to make any difference either. &lt;/P&gt;&lt;P&gt;I will try stopping the loop at the third execution and see what becomes of the corresponding fieldlist.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Hmm... there seems to be something wrong with my parameter: The parameter where Fields3 (the fieldlist for the third table) comes from is defined as PARAMETERS Fields3 TYPE C LENGTH 999 - but when I put a BREAK-POINT right before my loop, it is truncated, already the fieldname ERDAT becomes ERD and ERNAM is ignored. So it's no wonder this happens - my loop is actually working fine, but it gets incomplete input.&lt;/P&gt;&lt;P&gt;Does this have something to do with the visible length of the field? In my selection screen (which I have defined AS WINDOW), this field is starting at position 60; I haven't defined a length for the field, but the length of the content is 999 - still the variable is truncated right where the visible field ends.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041468#M1701118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-09T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT command causes trouble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041469#M1701119</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;&lt;/P&gt;&lt;P&gt;this issue is solved - sort of - it is no longer a requirement for myself to build selection screens, so I don't have to split anything - there is a GUI that a colleague of mine programmed and that will produce an output of two internal tables with table_names and field_names and I just have to use those.&lt;/P&gt;&lt;P&gt;Thanks for all the help!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 07:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-command-causes-trouble/m-p/9041469#M1701119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-23T07:06:27Z</dc:date>
    </item>
  </channel>
</rss>

