<?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: Using seperators in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942549#M388847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are putting '|' after every field, if a field does not have any value it will automatically have '||'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2007 02:34:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-15T02:34:47Z</dc:date>
    <item>
      <title>Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942547#M388845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am sending all the fields of an ITAB into a unix file using Datasets.while doing this I must use the pipe symbol to seperate the fields( | ).for this I am using concatenate and putting all the fields into another ITAB with a single filed that can take the structure.&lt;/P&gt;&lt;P&gt;But my problem is ...&lt;/P&gt;&lt;P&gt;where there is no value in any field....I must put 2 pipe symbols ( || )as seperators.&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 02:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942547#M388845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T02:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942548#M388846</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;loop at itab.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If itab-f1 is initial.&lt;/P&gt;&lt;P&gt;*Here v1 is the variable which holds data&lt;/P&gt;&lt;P&gt;concatenate v1  '||'  into v1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 02:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942548#M388846</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-15T02:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942549#M388847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are putting '|' after every field, if a field does not have any value it will automatically have '||'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 02:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942549#M388847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T02:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942550#M388848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code which i gave previously. observe the one in the &amp;lt;b&amp;gt;BOLD&amp;lt;/b&amp;gt; Which means that if there no value for that field it will just add a "|" Symbol to the internal table.&lt;/P&gt;&lt;P&gt;Hope this sovles, if u still need any clarification,do let us know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : IT_STR type standard table of TY_STR,&lt;/P&gt;&lt;P&gt;IS_STR type TY_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : UNIX_FILE type RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_UNIX is the final internal table without seperators.&lt;/P&gt;&lt;P&gt;IT_STR is the internal table with seperators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_unix into is_unix.&lt;/P&gt;&lt;P&gt;if not IS_UNIX-field1 is initial.&lt;/P&gt;&lt;P&gt;shift IS_UNIX-MO left deleting leading '0'.&lt;/P&gt;&lt;P&gt;concatenate IS_STR-STR IS_UNIX-field1 into IS_STR-STR.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&lt;/P&gt;&lt;P&gt;concatenate IS_STR-STR IS_UNIX-field1 into IS_STR-STR.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not IS_UNIX-field2 is initial.&lt;/P&gt;&lt;P&gt;shift IS_UNIX-field2 left deleting leading '0'.&lt;/P&gt;&lt;P&gt;concatenate IS_STR-STR IS_UNIX-field2 into IS_STR-STR separated by '|'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&lt;/P&gt;&lt;P&gt;concatenate IS_STR-STR IS_UNIX-field2 into IS_STR-STR separated by '|'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear : is_unix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;catch system-exceptions DATASET_CANT_OPEN = 8.&lt;/P&gt;&lt;P&gt;open dataset UNIX_FILE for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;endcatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at IT_STR into IS_STR.&lt;/P&gt;&lt;P&gt;catch system-exceptions DATASET_NOT_OPEN = 0 .&lt;/P&gt;&lt;P&gt;transfer IS_STR-STR to UNIX_FILE.&lt;/P&gt;&lt;P&gt;endcatch.&lt;/P&gt;&lt;P&gt;clear : IS_STR.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;close dataset UNIX_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942550#M388848</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-02-15T03:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942551#M388849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just adding 22 fields into the file...and I can't can't guess where there might be a miss of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942551#M388849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T03:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942552#M388850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can repeat doing it for all the 22 fields. I used the same kinda logic for around 56 fields. It works fine. Check thoroughly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942552#M388850</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-02-15T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942553#M388851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks then..I'll even try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942553#M388851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T03:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using seperators</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942554#M388852</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;If you are using concatenate to combine the fields,you will be using a variable to hold it.&lt;/P&gt;&lt;P&gt;If there is missing data,then there should be two pipe symbol continuosly in the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate f1 f2 f3 f4 into v1 separated by '|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If f2 is not having value and f1 = 'a' and f3 = 'b' and f4 = 'c',&lt;/P&gt;&lt;P&gt;then v1 = 'a||bc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in v1,you can search for two pipe symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-seperators/m-p/1942554#M388852</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-15T03:15:23Z</dc:date>
    </item>
  </channel>
</rss>

