<?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: long text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229085#M479414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur response. it is also not taking characters also like coljal10.&lt;/P&gt;&lt;P&gt;and also wat is the maximum character length of long text that can be uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Apr 2007 11:32:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-28T11:32:49Z</dc:date>
    <item>
      <title>long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229083#M479412</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having problem in uploading text to ac03 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this transaction i have uploaded five fields using bdc program,and long text by another program.this program is pasted below.&lt;/P&gt;&lt;P&gt;initially&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bdc input file is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3000170 zcol sevice 0003 3200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;long text file is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3000170 test for bdcs for aco3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working file i am able upload the bdc and long text is also displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is to upload folowing data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col-jal-10 1.1 zcol service 0003 3200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;long text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col-jal-10 1.1 test for bdcs for ac03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this file its not taking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am able to upload the first file. this data i am able to get it in aco3 but i am not able to get the long text to the corresponding asnum(col-jal-10 1.1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am unable to upload long text for alpha numeric character as input.&lt;/P&gt;&lt;P&gt;can any body help me in this regard. is there any modifications neccessary for this in this program. please correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for Upload of Long Texts Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;asnum like asmd-asnum, " Service No&lt;/P&gt;&lt;P&gt;text LIKE tline-tdline, " Long Text&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create Long Text lines for CREATE_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF dt_lines OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE tline. " Long Text&lt;/P&gt;&lt;P&gt;DATA:END OF dt_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variable declarations for CREATE_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : dl_name TYPE thead-tdname, " Object Name&lt;/P&gt;&lt;P&gt;dl_lan TYPE thead-tdspras. " Language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Object ID for Long Text of Service Master&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONSTANTS:c_best TYPE thead-tdid VALUE 'LTXT',&lt;/P&gt;&lt;P&gt;c_material TYPE thead-tdobject VALUE 'ASMD'. " Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_file LIKE rlgrap-filename."input file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At selection-screen on Value Request for file Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the F4 Values for the File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program_name = syst-cprog&lt;/P&gt;&lt;P&gt;dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start Of Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To Upload Flat file&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = p_file&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;conversion_error = 1&lt;/P&gt;&lt;P&gt;invalid_table_width = 2&lt;/P&gt;&lt;P&gt;invalid_type = 3&lt;/P&gt;&lt;P&gt;no_batch = 4&lt;/P&gt;&lt;P&gt;unknown_error = 5&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 6&lt;/P&gt;&lt;P&gt;OTHERS = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload the Texts&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SORT itab BY asnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;dt_lines-tdformat = '*'.&lt;/P&gt;&lt;P&gt;dt_lines-tdline = itab-text.&lt;/P&gt;&lt;P&gt;APPEND dt_lines.&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;Call the Function Module to Create Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF asnum.&lt;/P&gt;&lt;P&gt;dl_lan = sy-langu.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = itab-asnum&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = itab-asnum .&lt;/P&gt;&lt;P&gt;move itab-asnum to dl_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;fid = c_best&lt;/P&gt;&lt;P&gt;flanguage = dl_lan&lt;/P&gt;&lt;P&gt;fname = dl_name&lt;/P&gt;&lt;P&gt;fobject = c_material&lt;/P&gt;&lt;P&gt;save_direct = 'X'&lt;/P&gt;&lt;P&gt;fformat = '*'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;flines = dt_lines&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_init = 1&lt;/P&gt;&lt;P&gt;no_save = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Long Text Creation failed for Service No'(001),&lt;/P&gt;&lt;P&gt;itab-asnum.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Long Text Created Successfully for Service No'(002),&lt;/P&gt;&lt;P&gt;itab-asnum.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH dt_lines.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2007 10:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229083#M479412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-28T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229084#M479413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;As you said the problem is not with the program&lt;/P&gt;&lt;P&gt;the problem is with the field (key) col-jal-10 1.1 which is used as distinguishing factor to know the related Long text&lt;/P&gt;&lt;P&gt;as you said if it is a full number field it is working fine and I feel that problem is with the characters like '-' and '.' and space.&lt;/P&gt;&lt;P&gt;if there is any other field which is used instead of this field to distinguish the log text better to use that &lt;/P&gt;&lt;P&gt;try that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2007 11:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229084#M479413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-28T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229085#M479414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur response. it is also not taking characters also like coljal10.&lt;/P&gt;&lt;P&gt;and also wat is the maximum character length of long text that can be uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2007 11:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/2229085#M479414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-28T11:32:49Z</dc:date>
    </item>
  </channel>
</rss>

