<?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 Tab space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427962#M204964</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 insert tab space for fields which contains null values also..how to do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : c_tab TYPE x VALUE '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE lv_r_id&lt;/P&gt;&lt;P&gt;            lv_org_id&lt;/P&gt;&lt;P&gt;            lv_org_name&lt;/P&gt;&lt;P&gt;            INTO output_string&lt;/P&gt;&lt;P&gt;    SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : output_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 19:29:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T19:29:06Z</dc:date>
    <item>
      <title>Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427962#M204964</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 insert tab space for fields which contains null values also..how to do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : c_tab TYPE x VALUE '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE lv_r_id&lt;/P&gt;&lt;P&gt;            lv_org_id&lt;/P&gt;&lt;P&gt;            lv_org_name&lt;/P&gt;&lt;P&gt;            INTO output_string&lt;/P&gt;&lt;P&gt;    SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : output_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 19:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427962#M204964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T19:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427963#M204965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is correct if you are working in version &amp;lt;47. In higher versions you have to change it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE lv_r_id&lt;/P&gt;&lt;P&gt;lv_org_id&lt;/P&gt;&lt;P&gt;lv_org_name&lt;/P&gt;&lt;P&gt;INTO output_string&lt;/P&gt;&lt;P&gt;SEPARATED BY cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 19:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427963#M204965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T19:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427964#M204966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONCATENATE lv_r_id&lt;/P&gt;&lt;P&gt;it_ekko-netwr&lt;/P&gt;&lt;P&gt;it_ekko-ebeln&lt;/P&gt;&lt;P&gt;lv_org_name&lt;/P&gt;&lt;P&gt;INTO output_string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is i m using fields from tables..and if the values of those fields are null then it won't print tab space between fields ..i want to insert tab space for null value also..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 19:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427964#M204966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427965#M204967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many threads are you going to open about this.  Did these answers not help you solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="166800"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to put all of your fields into a structure instead of using all of the separated fields,  you can then use the logic to dynamically concatenate them depending on how many fields are in your structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will leave a space for empty fields in the output string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.

data: begin of x,
      lv_r_i(20) type c,
      lv_sp_id(20) type c,
      lv_sp_name(20) type c,
      lv_c_date(20) type c,
      lv_c_time(20) type c,
      lv_file_format(20) type c,
      lv_file_version(20) type c,
      end of x.

data: l_string type string.
field-symbols: &amp;lt;fs1&amp;gt;.
CONSTANTS : c_tab TYPE x VALUE '09'.


* Fill the structure
x-lv_r_i = 'ABC'.
x-lv_sp_id = 'DEF'.
x-lv_sp_name = space .  "'GHI'. &amp;lt;--- Empty field
x-lv_c_date = 'JKL'.
x-lv_c_time = 'MNO'.
x-lv_file_format = 'PQR'.
x-lv_file_version = 'STU'.



do  .
  assign component sy-index of structure x to &amp;lt;fs1&amp;gt;.
  if sy-subrc &amp;lt;&amp;gt; 0.
    exit.
  endif.

* CHeck the field value, and provide a placeholder
  if &amp;lt;fs1&amp;gt; is initial.
    &amp;lt;fs1&amp;gt; = '%'.  " placeholder
  endif.

  if sy-index ne 1.
    concatenate l_string &amp;lt;fs1&amp;gt; into l_string
       separated by c_tab.
   else.
    l_string = &amp;lt;fs1&amp;gt;.
  endif.
enddo.

translate l_string using '% '.

write:/ l_string.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 19:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427965#M204967</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T19:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427966#M204968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO rich..thats why..actually i didn't understand the code..can u write in simple logic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427966#M204968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T20:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427967#M204969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All this is doing is showing how you can concatenate all the fields without actually having all of the fields in your concatenate statement.  You said, that you have 30 or so?  So instead of listing of this, build a structure, lets call it "X", have all of the fields that you want to concatenate together.  Move all of the values from your ITAB fields to this structure.  Then in the DO loop,  we are assigning each field of the structure "X" to a field symbol which is a pointer to the field.  Now we have access to the first field, we need to check each field for a value, if no value, then put a place holder value, like '%', put it in the string, next time thru the DO loop we will be getting the second field of the structure "X",  checking for value again, and we will concatenate it with the outputstring which still has the first field in it and separate by the tab.  ONce all of the fields have been concatenated in to the string,  now we will translate all of the placeholders of the string, in this case, it is "%" into a space.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this example make sense now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427967#M204969</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T20:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427968#M204970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make sure that you close the other thread and lets continue with this one.  Next time, please don't open multiple threads for the same question.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427968#M204970</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T20:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427969#M204971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u used this code before can u write it some what elaborate because i want to use if condition for each field for initialization...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : c_tab TYPE x VALUE '09'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if lv_r_i is initial.&lt;/P&gt;&lt;P&gt;lv_r_i = &amp;lt;placeholder&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if lv_sp_id is initial.&lt;/P&gt;&lt;P&gt;lv_sp_id = &amp;lt;placeholder&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&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;CONCATENATE lv_r_i&lt;/P&gt;&lt;P&gt;lv_sp_id&lt;/P&gt;&lt;P&gt;lv_sp_name&lt;/P&gt;&lt;P&gt;lv_c_date&lt;/P&gt;&lt;P&gt;lv_c_time&lt;/P&gt;&lt;P&gt;lv_file_format&lt;/P&gt;&lt;P&gt;lv_file_version&lt;/P&gt;&lt;P&gt;INTO output_string1&lt;/P&gt;&lt;P&gt;SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;translate output_string1 '&amp;lt;placeholder&amp;gt; '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; output_string1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427969#M204971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T20:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427970#M204972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to use IF conditions now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data:
      lv_r_i(20) type c value 'ABC',
      lv_sp_id(20) type c value 'DEF',
      lv_sp_name(20) type c value space,  "&amp;lt;--- no value
      lv_c_date(20) type c value 'GHI',
      lv_c_time(20) type c value 'JKL',
      lv_file_format(20) type c value 'MNO',
      lv_file_version(20) type c value 'PQR'.

data: output_string1 type string.

constants : c_tab type x value '09'.

if lv_r_i is initial.
  lv_r_i = '%'.
endif.

if lv_sp_id is initial.
  lv_sp_id = '%'.
endif.

if lv_sp_name is initial.
  lv_sp_name = '%'.
endif.

if lv_c_date is initial.
  lv_c_date = '%'.
endif.

if lv_c_time is initial.
  lv_c_time = '%'.
endif.

if lv_file_format is initial.
  lv_file_format = '%'.
endif.

if lv_file_version is initial.
  lv_file_version = '%'.
endif.

concatenate lv_r_i
lv_sp_id
lv_sp_name
lv_c_date
lv_c_time
lv_file_format
lv_file_version
into output_string1
separated by c_tab.

translate output_string1 using '% '.

write :/ output_string1.


&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427970#M204972</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T20:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427971#M204973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can shorten it up a little by using a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data:
      lv_r_i(20) type c value 'ABC',
      lv_sp_id(20) type c value 'DEF',
      lv_sp_name(20) type c value space,  ""&amp;lt;--- no value
      lv_c_date(20) type c value 'GHI',
      lv_c_time(20) type c value 'JKL',
      lv_file_format(20) type c value 'MNO',
      lv_file_version(20) type c value 'PQR'.

data: output_string1 type string.

constants : c_tab type x value '09'.

define macro_check_value.
if &amp;amp;1 is initial.
  &amp;amp;1 = '%'.
endif.

end-of-definition.

macro_check_value lv_r_i.
macro_check_value lv_sp_id.
macro_check_value lv_sp_name.
macro_check_value lv_c_date.
macro_check_value lv_c_time.
macro_check_value lv_file_format.
macro_check_value lv_file_version.

concatenate lv_r_i
lv_sp_id
lv_sp_name
lv_c_date
lv_c_time
lv_file_format
lv_file_version
into output_string1
separated by c_tab.

translate output_string1 using '% '.

write :/ output_string1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427971#M204973</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T20:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427972#M204974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using concatenate statment inside the loop..so where shall i write macro statement inside the loop statement or outside...is it correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: output_string1 type string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;constants : c_tab type x value '09'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;define macro_check_value.&lt;/P&gt;&lt;P&gt;if &amp;amp;1 is initial.&lt;/P&gt;&lt;P&gt;  &amp;amp;1 = '%'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;end-of-definition.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;macro_check_value lv_r_i.&lt;/P&gt;&lt;P&gt;macro_check_value lv_sp_id.&lt;/P&gt;&lt;P&gt;macro_check_value lv_sp_name.&lt;/P&gt;&lt;P&gt;macro_check_value lv_c_date.&lt;/P&gt;&lt;P&gt;macro_check_value lv_c_time.&lt;/P&gt;&lt;P&gt;macro_check_value lv_file_format.&lt;/P&gt;&lt;P&gt;macro_check_value lv_file_version.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at itab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;concatenate lv_r_i&lt;/P&gt;&lt;P&gt;lv_sp_id&lt;/P&gt;&lt;P&gt;lv_sp_name&lt;/P&gt;&lt;P&gt;lv_c_date&lt;/P&gt;&lt;P&gt;lv_c_time&lt;/P&gt;&lt;P&gt;lv_file_format&lt;/P&gt;&lt;P&gt;lv_file_version&lt;/P&gt;&lt;P&gt;into output_string1&lt;/P&gt;&lt;P&gt;separated by c_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;translate output_string1 using '% '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; output_string1.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 21:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427972#M204974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427973#M204975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you values are in an internal table, then yes, the marcro statements need to be inside the loop.  You want do check the values for each line of the internal table, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: output_string1 type string.

constants : c_tab type x value '09'.

define macro_check_value.
if &amp;amp;1 is initial.
&amp;amp;1 = '%'.
endif.

end-of-definition.



loop at itab.

&amp;lt;b&amp;gt;macro_check_value itab-lv_r_i.
macro_check_value itab-lv_sp_id.
macro_check_value itab-lv_sp_name.
macro_check_value itab-lv_c_date.
macro_check_value itab-lv_c_time.
macro_check_value itab-lv_file_format.
macro_check_value itab-lv_file_version.&amp;lt;/b&amp;gt;

concatenate &amp;lt;b&amp;gt;itab-lv_r_i
itab-lv_sp_id
itab-lv_sp_name
itab-lv_c_date
itab-lv_c_time
itab-lv_file_format
itab-lv_file_version&amp;lt;/b&amp;gt;into output_string1
separated by c_tab.

translate output_string1 using '% '.

write :/ output_string1.
endloop.


&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 21:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427973#M204975</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T21:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427974#M204976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the o/p .. the null value is showing %..will it be tab space while we download to desktop...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 21:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427974#M204976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T21:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427975#M204977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to get rid of it after the concatenation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;translate output_string1 using '% '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 21:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427975#M204977</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-22T21:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427976#M204978</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;CONCATENATE  &lt;/P&gt;&lt;P&gt;lv_r_id&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;lv_org_id&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;lv_org_name&lt;/P&gt;&lt;P&gt;INTO output_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 22:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427976#M204978</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-06-22T22:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427977#M204979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to get rid of it after the concatenation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate output_string1 using '% '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used above statement..but in the o/p it is displaying %....do i need to convert to some other thing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 23:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427977#M204979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T23:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427978#M204980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that this statement include a % and a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;translate output_string1 using '% '.  &amp;lt;-- See the space next to the %&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 00:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427978#M204980</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-23T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427979#M204981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but iam using loop ...how should i include it...actually my code will be...&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate ...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sepearted by c_tab.&lt;/P&gt;&lt;P&gt;into table output_string1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v1 = m1.&lt;/P&gt;&lt;P&gt;move : ...&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;concatenate ....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;separeated by c_tab.&lt;/P&gt;&lt;P&gt;into table output_string2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how do i include below code ....please help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do  .&lt;/P&gt;&lt;P&gt;  assign component sy-index of structure x to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHeck the field value, and provide a placeholder&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if &amp;lt;fs1&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;    &amp;lt;fs1&amp;gt; = '%'.  " placeholder&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-index ne 1.&lt;/P&gt;&lt;P&gt;    concatenate l_string &amp;lt;fs1&amp;gt; into l_string&lt;/P&gt;&lt;P&gt;       separated by c_tab.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;    l_string = &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;translate l_string using '% '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write:/ l_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 00:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427979#M204981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T00:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427980#M204982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to translate it inside the loop, just before you write the OUTPUT_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop at itab.
concatenate ...
...
sepearted by c_tab.
into table output_string1.

if v1 = m1.
move : ...
loop at itab1.
concatenate ....
...
separeated by c_tab.
into table output_string2.
&amp;lt;b&amp;gt;translate output_string2 using '% '.
write:/ output_string2.&amp;lt;/b&amp;gt;
endloop.
endloop.




&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 00:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427980#M204982</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-23T00:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tab space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427981#M204983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Rich..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kept as it is ..but in the o/p it is showing % for null value...but i want tab space instead of it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 18:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tab-space/m-p/1427981#M204983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T18:57:23Z</dc:date>
    </item>
  </channel>
</rss>

