<?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 Splitting based on # problem in reading file from Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335669#M1538756</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 strring like #abc#1234#kl# in application server(Windows) (which is placed by reading from excel  file in presentation server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am reading the string  using open dataset and splitting the content based on #,i am not able to split&lt;/P&gt;&lt;P&gt;but in case of AIX os i am able to split based on # .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggest why it is happening like this and how to split the string in Windows OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 08:50:01 GMT</pubDate>
    <dc:creator>sarath_7</dc:creator>
    <dc:date>2010-10-12T08:50:01Z</dc:date>
    <item>
      <title>Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335669#M1538756</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 strring like #abc#1234#kl# in application server(Windows) (which is placed by reading from excel  file in presentation server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am reading the string  using open dataset and splitting the content based on #,i am not able to split&lt;/P&gt;&lt;P&gt;but in case of AIX os i am able to split based on # .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggest why it is happening like this and how to split the string in Windows OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 08:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335669#M1538756</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-10-12T08:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335670#M1538757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please check below link out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9469856"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Specially last reply by : Maen Anachronos.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it'll help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Sachin Bhatt IN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 09:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335670#M1538757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335671#M1538758</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;The # in this string are actually tabs.&lt;/P&gt;&lt;P&gt;You need to read it with the tab character otherwise it is not possible to split the data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONSTANTS: c_tab type x value '9'.

SPLIT v_string at c_tab into V1, V2, ....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Immanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 09:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335671#M1538758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335672#M1538759</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 Tried like above but it is not working.splitting is not happening at #.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note :  i am uploading file from Unix OS and processing in Windows  OS Vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; please advice the reasons, solution if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 09:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335672#M1538759</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-10-14T09:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335673#M1538760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just rename the xls file to .csv file ie. data.xls renamed to data.csv&lt;/P&gt;&lt;P&gt;Then use GUI_UPLOAD as below and then use FM TEXT_CONVERT_XLS_TO_SAP to convert to readable format. After that itab i_locfile will contain your data from xls. Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--Uploading xls sheet
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                        = p_locin
      has_field_separator     = 'X'
    TABLES
      data_tab                       = li_text_data.
 
  IF sy-subrc  0.
  ENDIF.
lv_file  = p_locin.
*--Converting the xls to readable format
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
      i_field_seperator     = 'X'
      i_tab_raw_data       = li_text_data  
      i_filename                = lv_file
    TABLES
      i_tab_converted_data = i_locfile
    EXCEPTIONS
      conversion_failed    = 1
      OTHERS               = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 10:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335673#M1538760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335674#M1538761</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 am using the mentioned FM only(requirement is excel),After reading i am placing the file in App sever.form there i am reading using READ data set , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Main problem is File Upload (Presentation to application server) will be from Diffrent OS and procesing also from diff OS(automatically it will pick up the OS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am reading the file from App server i am getting the Problem in windows OS ,it is not splitting the file contents to internal table fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#MPRN#1234#  -&amp;gt; fld2-MPRN     fld4-1234     - in unix &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not happening in Windows OS.i tried with 9 value as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know How to split the above string in windows OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest the sol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335674#M1538761</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-10-14T11:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335675#M1538762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try using CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB instead of '#'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; split &amp;lt;string&amp;gt; at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB into .... &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;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335675#M1538762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T11:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335676#M1538763</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;First i tried with cl_abap_char_utilities=&amp;gt;horizontal_tab only ,by using that in UNIX OS splitting is working fine but for the same code when i am trying in WIndows OS it is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you ,please let me know any other solution/Suggestion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 11:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335676#M1538763</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-10-14T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335677#M1538764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I would suggest, go to the lower level and try the following, for each line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process the line character by character and split it manually. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 12:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335677#M1538764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T12:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335678#M1538765</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;Many Thank for the replies,but my test will chnage dynamically,thats why i am using this separator concept,&lt;/P&gt;&lt;P&gt;based on the row/column of stndard excel values i will split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so its better to split based on #,thats why i am checking for that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 14:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335678#M1538765</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-10-14T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335679#M1538766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the sample code which you can use to load the data from the tab delimeted file into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: con_tab  type c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB,&lt;/P&gt;&lt;P&gt;           cr_lf    type C value cl_abap_char_utilities=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET &amp;lt;datasetname&amp;gt; FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;REad dataset ..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        len = STRLEN( wa_string ).&lt;/P&gt;&lt;P&gt;        len1 = len - 1.&lt;/P&gt;&lt;P&gt;        lastchar = wa_string+len1(1).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     shift wa_string left BY 1 places.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF lastchar = cr_lf.&lt;/P&gt;&lt;P&gt;          wa_string = wa_string+0(len1).&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;*This is the logic to get the TAb delimeted Data into string and then load the same into the internal table.&lt;/P&gt;&lt;P&gt; SPLIT wa_string AT con_tab INTO wa_uploadtxt31-auart&lt;/P&gt;&lt;P&gt;                                        wa_uploadtxt31-vkorg&lt;/P&gt;&lt;P&gt;                                        wa_uploadtxt31-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: wa_string, wa_uploadtxt31, wa_upload31, wa_zrd_va31_rec.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;CLOSE DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 14:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335679#M1538766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting based on # problem in reading file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335680#M1538767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when placing the file In appserver hardcoded #,so when reading problem occured so  i am using cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB when placing and reading also ,after that its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 10:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-based-on-problem-in-reading-file-from-application-server/m-p/7335680#M1538767</guid>
      <dc:creator>sarath_7</dc:creator>
      <dc:date>2010-12-15T10:29:16Z</dc:date>
    </item>
  </channel>
</rss>

