<?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/1714435#M312326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check standard program structure it has Header long texts &amp;amp; Line long texts.  Most of the header structure fields can be constants . All you have to do is pass line long texts in the form of flat file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 16:59:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-31T16:59:17Z</dc:date>
    <item>
      <title>Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714428#M312319</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;Can anyone tell me how to upload long text in VD51(Customer Mterial Inforecods) , this is the field corresponding to which user should be able to upload  N number page text/document.While recording it looks like SAPScript editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sonal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 06:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714428#M312319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T06:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714429#M312320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sonal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please try using FM: &amp;lt;b&amp;gt;SAVE_TEXT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Parameters to be passed:&lt;/P&gt;&lt;P&gt;  1. Text-ID: '0001'.&lt;/P&gt;&lt;P&gt;  2. Text Object: 'KNMT'.&lt;/P&gt;&lt;P&gt;  3. Language: SY-LANGU.&lt;/P&gt;&lt;P&gt;  4. Text Name: Combination of Sales Orgranization, Distribution Channel, Customer Number, Material Number.&lt;/P&gt;&lt;P&gt;  5. Text in internal table of type TLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Below example might give you some idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: head type THEAD.&lt;/P&gt;&lt;P&gt;head-tdname = name. -&amp;gt; Combination of Sales Orgn + Dist. Chn + Customer + Material.&lt;/P&gt;&lt;P&gt;head-tdspras = sy-langu.&lt;/P&gt;&lt;P&gt;head-tdobject = 'KNMT'.&lt;/P&gt;&lt;P&gt;head-tdid = '0001'.&lt;/P&gt;&lt;P&gt;data: it_tline type standard table of tline with header line.&lt;/P&gt;&lt;P&gt;it_tline-tdline = 'testing only'.&lt;/P&gt;&lt;P&gt;append it_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
*   CLIENT                = SY-MANDT
    HEADER                =  head
   INSERT                = 'X'
   SAVEMODE_DIRECT       = 'X'
*   OWNER_SPECIFIED       = ' '
*   LOCAL_CAT             = ' '
* IMPORTING
*   FUNCTION              =
*   NEWHEADER             =
  TABLES
    LINES                 = it_tline
 EXCEPTIONS
   ID                    = 1
   LANGUAGE              = 2
   NAME                  = 3
   OBJECT                = 4
   OTHERS                = 5
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 07:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714429#M312320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714430#M312321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Eswar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i upload 3-4 pages texts through save_text ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what should be the approach for upload as i already have created a LSMW to upload VD51 and now suffering for LONG TEXT. Will it require development of one more load program ? can't i use SAVE_TEXT in my LSMW ?&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;regards&lt;/P&gt;&lt;P&gt;Sonal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 07:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714430#M312321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T07:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714431#M312322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Inside LSMW we can use direct input option if any standard SAP program available for updating long text. you can just check..or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SAVE_TEXT function module.Yes with the help of SAVE_TEXT function module you can save 3-4 pages text even more than that also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But be cautious as SAVE_TEXT function module is not saveing text in first line of your upload file for each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example of ABAP code you can use if require :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM upload_file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Source file name is mandatory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p_path1 IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE I001 WITH TEXT-002.&lt;/P&gt;&lt;P&gt;      LEAVE LIST-PROCESSING .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload source file from presentation server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_ws_path = p_path1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = l_ws_path&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator     = '#'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of revision for DG1K982887&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      codepage                = '6300'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of revision for DG1K982887&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = i_aenr&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(rlb) WITH text-001.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_file&lt;/P&gt;&lt;P&gt;&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;P&gt;*&amp;amp;      Form  save_long_texts&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;      Subroutine to save long text of ecm&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      None&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;&lt;/P&gt;&lt;P&gt;FORM save_long_texts.&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;Loop at interal table to find out unique tdname.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT i_aenr into wa_aenr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-object TO i_header-tdobject.&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-name TO i_header-tdname.&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-id TO i_header-tdid.&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-lang TO i_header-tdspras.&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-format TO i_line-tdformat.&lt;/P&gt;&lt;P&gt;    MOVE wa_aenr-line TO i_line-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND i_header.&lt;/P&gt;&lt;P&gt;    APPEND i_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt; Delete adjacent duplicate from i_header to find out unique name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      DELETE ADJACENT DUPLICATES FROM i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Call function module 'SAVE_TEXT' to save ECM header long text.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          client          = sy-mandt&lt;/P&gt;&lt;P&gt;          header          = i_header&lt;/P&gt;&lt;P&gt;          savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          lines           = i_line&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          id              = 1&lt;/P&gt;&lt;P&gt;          language        = 2&lt;/P&gt;&lt;P&gt;          name            = 3&lt;/P&gt;&lt;P&gt;          object          = 4&lt;/P&gt;&lt;P&gt;          OTHERS          = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        WRITE : /1 'Change number ',&lt;/P&gt;&lt;P&gt;                    i_header-tdname,&lt;/P&gt;&lt;P&gt;                   'Could Not be Saved.'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        WRITE : /1 'Change number :',&lt;/P&gt;&lt;P&gt;                    i_header-tdname,&lt;/P&gt;&lt;P&gt;                    'Has been Saved.'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REFRESH i_header.&lt;/P&gt;&lt;P&gt;      REFRESH i_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt; Shilpa K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 09:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714431#M312322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714432#M312323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose my text is of 1000 line/char , i hve uploaded it to my internal table and when i try to append this to internal table i_line(as per ur code sample) , its length is only 132 char. How u'll process this ?&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;&lt;/P&gt;&lt;P&gt;Sonal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 09:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714432#M312323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714433#M312324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Standard longtext program available in LSMW Object = 0001 and method = 0001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 16:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714433#M312324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T16:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714434#M312325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Venkatesh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me further like what will be the source file structure and no of files and their links ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sonal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 06:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714434#M312325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T06:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Long Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714435#M312326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check standard program structure it has Header long texts &amp;amp; Line long texts.  Most of the header structure fields can be constants . All you have to do is pass line long texts in the form of flat file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 16:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/1714435#M312326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T16:59:17Z</dc:date>
    </item>
  </channel>
</rss>

