<?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: String operations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501576#M1654076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the TEXT_CONVERT_TEX_TO_SAP function instead of split command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: lt_raw TYPE truxs_t_text_data.

  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
    EXPORTING
      filename = 'C;\my_file.txt'
    CHANGING
      data_tab = lt_raw
    EXCEPTIONS
      OTHERS   = 1.

  CHECK sy-subrc EQ 0.

  CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP'
    EXPORTING
      i_field_seperator    = ';'
      i_tab_raw_data       = lt_raw
    TABLES
      i_tab_converted_data = my_table[]
    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>Tue, 14 Feb 2012 15:18:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-14T15:18:36Z</dc:date>
    <item>
      <title>String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501558#M1654058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have a requirement where i need to upload a text file in a note pad containing PO, PO-line item and item text. The problem is item text is more than 255 chars and i am using the GUI_UPLOAD FM but i am getting the value in my internal table as "4550610#010#0001#text sample to upload in the file for the PO'S ETC".&lt;/P&gt;&lt;P&gt;Could you please suggest me how to segregate only the text part i.e (text sample to upload in the file for the PO'S ETC".) from  the&lt;/P&gt;&lt;P&gt;Others the problem is text char is more than 255 char long and i am unable to get the value in an variable. I tried using split command but of no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501558#M1654058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501559#M1654059</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;Please check this program wherein u can upload ur excel file content without trauncating the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Read" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Read&lt;/A&gt;&lt;EM&gt;multiple&lt;/EM&gt;sheets&lt;EM&gt;of&lt;/EM&gt;an&lt;EM&gt;Excel&lt;/EM&gt;file&lt;EM&gt;into&lt;/EM&gt;SAP&lt;EM&gt;through&lt;/EM&gt;ABAP		&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prachi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501559#M1654059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501560#M1654060</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 to upload data with notepad.just copy data from excel to notepad and upload, your issue has been resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501560#M1654060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501561#M1654061</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; Please check the follwing sap wiki. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These link will explain how to send email with more than 255 char . The procedure for you is to create only the text file . The flow is similar and easily understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/Snippets/To&lt;EM&gt;send&lt;/EM&gt;a&lt;EM&gt;mail&lt;/EM&gt;attachment&lt;EM&gt;with&lt;/EM&gt;more&lt;EM&gt;than&lt;/EM&gt;255&lt;EM&gt;characters&lt;/EM&gt;in&lt;EM&gt;a&lt;/EM&gt;line]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also look at Thomas Jung snippet : [http://www.sdn.sap.com/irj/scn/weblogs?blog=/cs/user/view/cs_msg/34969]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501561#M1654061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501562#M1654062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenakshi Sunderaswaran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare your PO text field as STRING for more that 255 char in your internal table.&lt;/P&gt;&lt;P&gt;And to avoid Special characters(#) in the internal table, Make your text file as &lt;STRONG&gt;TAB delimiter&lt;/STRONG&gt;. Provide TAB space in your text file between data and under Export  parameter provide value for  &lt;STRONG&gt;HAS_FIELD_SEPARATOR =  'SPACE'&lt;/STRONG&gt;  in se38 screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will help you , let me know ,need any further help.&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;Saravana.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501562#M1654062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501563#M1654063</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;       It seems that you are uploading a .txt file from your local drive to the SAP and your file is TAB delimited. If your file is TAB delimited then it will appear as '#' in place of separators in your internal table. In this case you can try and follow 2 different approaches,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is commomn for both the approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF TY_PO,
     PO_NO TYPE EBELN,
     ITM_NO TYPE EBELP,
     ITM_TXT(400) TYPE c,
  END OF TY_PO,

BEGIN OF TY_DATA,
  DATA(500) TYPE c,
END OF TY_DATA.
DATA: IT_DATA TYPE STANDARD TABLE OF TY_DATA,
           WA_DATA TYPE TY_DATA,
           IT_PO TYPE STANDARD TABLE OF TY_PO,
           WA_ TYPE TY_PO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Approach 1: Using SPLIT statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS : C_SEP TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.  " The value will be #

   CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
            filename        = gd_file   " Your file path
            filetype        = 'ASC'
       TABLES
            data_tab        = it_data  "ITBL_IN_RECORD[]
       EXCEPTIONS
            file_open_error = 1
            OTHERS          = 2.
  IF sy-subrc NE 0.
  ELSE.
    LOOP AT IT_DATA INTO WA_DATA.
      SPLIT WA_DATA AT C_SEP INTO  WA_PO-PO_NO 
       WA_PO-ITM_NO 
       WA_PO-ITM_TXT.

      APPEND WA_PO TO IT_PO.
CLEAR: WA_PO , WA_DATA.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Approach 2: Without using SPLIT statements.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = gd_file  " Your file name
      has_field_separator     = 'X'  "file is TAB delimited
    TABLES
      data_tab                = IT_PO
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this code piece will help you. Since i have given the item text field as 400 char length it can accomodate more longer strings as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for any further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;begging removed and points reduced by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 14, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501563#M1654063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T09:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501564#M1654064</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;    Thanks for the answer , but my problem is not with the "#', I need  to capture the  item text which is more than 255 CHAR long and process it separately. Could you let me know how to consider only the text file characters from the file only as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501564#M1654064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501565#M1654065</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 i understood your requirement properly you would like to know if it is possible to check if the item text is more than 255 characters long and if it is long then you will have to capture it in a separate variable and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i understood you correctly or correct me if my understanding is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501565#M1654065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501566#M1654066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Praveen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct; the item text is more than 255 char long and has got no separators in the file. Thatu2019s the reason I wanted to capture the  entire text in a  variable or a string and process it. Split command works perfectly until the line item but for item text it is not working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501566#M1654066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501567#M1654067</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;May i know the data type of the variable into which you are trying to capture the item text after splitting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is of TYPE STRING try to change it to character of length 400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501567#M1654067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501568#M1654068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meenakshi,&lt;/P&gt;&lt;P&gt;                   Would it be possible for you to post a code snippet of the relevant section, If i take a look at what you have done so far i would be able to provide an efficient solution as there are many ways to go about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501568#M1654068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501569#M1654069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming you have successfully uploaded your data into the SAP system.&lt;/P&gt;&lt;P&gt;please ref below to see What you could do to segregate the text part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab   " Tab containing records from flat file into work area&lt;/P&gt;&lt;P&gt;w_length = strlen( wa_itab ) - 1. " get current length of work area&lt;/P&gt;&lt;P&gt;search wa_itab for sy-abcde  " searches the workarea for text containing alphabets.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;w_len1 = w_len - sy-FDPOS   " Length of only text part&lt;/P&gt;&lt;P&gt;w_text = wa_itab+sy-fdpos(w_len1). " getting the entire text part to another variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Perform your operations on the text ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501569#M1654069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501570#M1654070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nayak,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, please find the code below. The T_INFILE is the data uploaded from the note pad &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SUB_LOAD_DATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Split tab delimited input data into separate fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_load_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_delim(1) TYPE x      VALUE 09.    "tab value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SPLIT t_infile AT c_delim INTO&lt;/P&gt;&lt;P&gt;              t_inrec2-ebeln&lt;/P&gt;&lt;P&gt;              t_inrec2-ebelp&lt;/P&gt;&lt;P&gt;              t_inrec2-seqno&lt;/P&gt;&lt;P&gt;              t_inrec2-notes_txt1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             t_inrec2-notes_txt2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       APPEND t_inrec2.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " SUB_LOAD_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the data looks like the one in the debugging need to consider only the text part from it.ie from 09/1411.Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4500150650#00000010#000001#09/14/11 SY/AGI SHIPMENT RECEIVED PROCESSING MR  09/09/11 SY/AGI WILL SHIP BY 09/14 OR BEFORE  09/07/11 SY/AGI SENT JOE/PUFFER REQUEST FOR SHIP STATUS  09/01/11 SY/AGI FLUID FOUND SHOULD BE ABLE TO SHIP BY 09/07.  08/30/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenkashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 11:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501570#M1654070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501571#M1654071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Can you please post the Type of t_inrec2. specifically the field notes_txt1. Can you please provide that as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 11:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501571#M1654071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501572#M1654072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the declaration for the t_inrec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_inrec2 OCCURS 0,&lt;/P&gt;&lt;P&gt;       ebeln            LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;       ebelp(8),      "            LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;       seqno(6)         type c,&lt;/P&gt;&lt;P&gt;       notes_txt1 TYPE SAEDATALIN,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         notes_txt1(255) type c,  "Notes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          notes_txt2(255) type c,&lt;/P&gt;&lt;P&gt;          notes_txt3(255) type c,&lt;/P&gt;&lt;P&gt;          notes_txt4(255) type c,&lt;/P&gt;&lt;P&gt;          notes_txt5(255) type c,&lt;/P&gt;&lt;P&gt;          notes_txt6(255) type c,&lt;/P&gt;&lt;P&gt;      END OF t_inrec2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 12:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501572#M1654072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T12:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501573#M1654073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, every thing seems fine except for the split operation. So, first try giving the 09 in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exactly as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_delim TYPE x VALUE '09'. "tab value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that doesnt work try this way to define your tab delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_delim type c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should resolve the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 12:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501573#M1654073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501574#M1654074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change the delimiter it should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_delim TYPE c VALUE cl_abap_char_utilities=&amp;gt;Horizontal_tab. This should split the file perfectly into all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the below piece of logic also with your data and everything worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: c_delim(1) TYPE c VALUE cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB. "tab value
DATA: t_infile TYPE SAEDATALIN.

DATA: BEGIN OF t_inrec2,
ebeln LIKE ekpo-ebeln,
ebelp(8), " LIKE ekpo-ebelp,
seqno(6) type c,
notes_txt1 TYPE SAEDATALIN,

notes_txt2(255) type c,
notes_txt3(255) type c,
notes_txt4(255) type c,
notes_txt5(255) type c,
notes_txt6(255) type c,
END OF t_inrec2.

CONCATENATE '4500150650' '00000010' '000001' '09/14/11 SY/AGI SHIPMENT RECEIVED PROCESSING MR 09/09/11 SY/AGI WILL SHIP BY 09/14 OR BEF RE 09/07/11 SY/AGI SENT JOE/PUFFER REQUEST FOR SHIP STATUS 09/01/11 SY/AGI FLUID FOUND SHOULD BE ABLE TO SHIP BY'
  INTO t_infile SEPARATED BY cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.

SPLIT t_infile AT c_delim INTO
t_inrec2-ebeln
t_inrec2-ebelp
t_inrec2-seqno
t_inrec2-notes_txt1.
* t_inrec2-notes_txt2.
WRITE t_inrec2-notes_txt1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 12:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501574#M1654074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501575#M1654075</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 file which you are uploading is it tab delimited file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a tab delimited file then the file will be uploaded in in internal table directly if created with the to the appropiate field, but ur internal table should be in the file format .i.e PO,ebelp,seqno,text. and pass the file type in the FM DAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or u can try the below option not sure it will work-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT t_infile AT '#' INTO&lt;/P&gt;&lt;P&gt;t_inrec2-ebeln&lt;/P&gt;&lt;P&gt;t_inrec2-ebelp&lt;/P&gt;&lt;P&gt;t_inrec2-seqno&lt;/P&gt;&lt;P&gt;t_inrec2-notes_txt1..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501575#M1654075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: String operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501576#M1654076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the TEXT_CONVERT_TEX_TO_SAP function instead of split command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: lt_raw TYPE truxs_t_text_data.

  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
    EXPORTING
      filename = 'C;\my_file.txt'
    CHANGING
      data_tab = lt_raw
    EXCEPTIONS
      OTHERS   = 1.

  CHECK sy-subrc EQ 0.

  CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP'
    EXPORTING
      i_field_seperator    = ';'
      i_tab_raw_data       = lt_raw
    TABLES
      i_tab_converted_data = my_table[]
    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>Tue, 14 Feb 2012 15:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operations/m-p/8501576#M1654076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T15:18:36Z</dc:date>
    </item>
  </channel>
</rss>

