<?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: Applcation Server File. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021014#M1498029</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;Thanks for your reply but in my file double quotes  comes dynamically and it has to updated two database table.&lt;/P&gt;&lt;P&gt;Is there any way wa can replace the '|' separator between the double quotes in that string without splitting the string in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 18:13:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-04T18:13:37Z</dc:date>
    <item>
      <title>Applcation Server File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021012#M1498027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*&lt;STRONG&gt;Hi All ,&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;I am getting a file from Application Server with pipe separator.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;BUt My issue is Data that is coming from Application Server&lt;/STRONG&gt; is having doubles quotes which is having pipe Seperator in it.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to  consider the total field in double quotes as single field rather than two fields ignoring the pipe seperator in it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My File looks like this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USD|1.00|M|N|DINNER||"TOAST|KITCHEN &amp;amp; WINE BAR"|&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to consider ||"TOAST|KITCHEN &amp;amp; WINE BAR"| as a single field instead of two fields ignoring pipe separator in it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in Advance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; Please do not offer "rewards" &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 26, 2010 2:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 18:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021012#M1498027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T18:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Applcation Server File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021013#M1498028</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;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: w_tab TYPE c VALUE %_horizontal_tab.

data: begin of i_text occurs 0,
        w_line(1000),
      end of i_text.

data: w_ct  type i,
      w_pos type i,
      w_len type i.

data: w_flag,
      w_field1(10),
      w_field2(10),
      w_field3(10),
      w_field4(10),
      w_field5(10),
      w_field6(10),
      w_field7(100),
      w_field8(10).

i_text-w_line = 'USD|1.00|M|N|DINNER||"TOAST|KITCHEN &amp;amp; WINE BAR"|'.
append i_text.

loop at i_text.

   w_len = strlen( i_text ).
   w_ct = 0.
   while w_ct &amp;lt; w_len.
       if w_flag is initial  and  i_text+w_ct(1) = '|'.
          i_text+w_ct(1) = w_tab.
       elseif i_text+w_ct(1) = '"'.
          if w_flag is initial.
             w_flag = 'X'.
          else.
             clear w_flag.
          endif.
       endif.
       w_ct = w_ct + 1.
   endwhile.

   split i_text at w_tab into w_field1 w_field2 w_field3
                              w_field4 w_field5 w_field6
                              w_field7 w_field8.
   write: / w_field1, w_field2, w_field3, w_field4, w_field5, w_field6,
            w_field7, w_field8.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021013#M1498028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T19:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Applcation Server File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021014#M1498029</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;Thanks for your reply but in my file double quotes  comes dynamically and it has to updated two database table.&lt;/P&gt;&lt;P&gt;Is there any way wa can replace the '|' separator between the double quotes in that string without splitting the string in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 18:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/applcation-server-file/m-p/7021014#M1498029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T18:13:37Z</dc:date>
    </item>
  </channel>
</rss>

