<?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: READ_TEXT multiple lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008843#M409782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable WA_TDNAME holds the Invoice Number and from the header of that invoice we are getting the data, and which is in multiple lines.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i'll pass this WA_TDNAME in to the text node; either I am getting the invoice number by using &amp;amp;WA_TDNAME&amp;amp;or I am getting it as "WA_TDNAME".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response to this will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 11:40:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-09T11:40:57Z</dc:date>
    <item>
      <title>READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008835#M409774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who know that, how can we display multiple line in smartforms? I have used READ_TEXT but I can only display the last line, it's something like having the latest value in the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using concatenate also but the output is coming in the same line; do we have any provision of new line character or some other technique to acheive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responses will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 07:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008835#M409774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008836#M409775</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;when tou use the FM REad_tect u will ge t teh Internal table... if you want to print the total data you have to loop the internal table.. i haef done the same. in my smartform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 07:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008836#M409775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T07:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008837#M409776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use RKD_WORD_WRAP function, here you can set the column width in which you would like to fit your text (like in a newspaper article), the function nicely wraps the text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I am pasting the input/output directly from SE37 on this function after setting a width of 35 chars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT&lt;/P&gt;&lt;P&gt;THIS IS A VERY LONG TEXT AND THE GIVEN FUNCTION SHOULD WRAP IT NICELY IN A COLUMN NOT EXCEEDING 35 CHARACTERS WIDTH &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS A VERY LONG TEXT AND THE&lt;/P&gt;&lt;P&gt;GIVEN FUNCTION SHOULD WRAP IT   &lt;/P&gt;&lt;P&gt;NICELY IN A COLUMN NOT EXCEEDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that the function wraps your text in a maximun 3 lines, so for longer lines you may need to do some calculation to get it all wrapped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 07:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008837#M409776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T07:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008838#M409777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; IT_TLINE is internal table type STANDARD TABLE OF TLINE
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      ID                      = '0002'
      LANGUAGE                = V_LANGU
      NAME                    = V_TDNAME
      OBJECT                  = 'VBBK'
    TABLES
      LINES                   = IT_TLINE
    EXCEPTIONS
      ID                      = 1
      LANGUAGE                = 2
      NAME                    = 3
      NOT_FOUND               = 4
      OBJECT                  = 5
      REFERENCE_CHECK         = 6
      WRONG_ACCESS_TO_ARCHIVE = 7
      OTHERS                  = 8.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    CLEAR IT_TLINE.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop the table IT_TLINE in in you r smartforms..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008838#M409777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008839#M409778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have data; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ssdfsd&lt;/P&gt;&lt;P&gt;dsfsdf&lt;/P&gt;&lt;P&gt;dsfdsgh&lt;/P&gt;&lt;P&gt;dgdfgfd&lt;/P&gt;&lt;P&gt;sdgdsgg&lt;/P&gt;&lt;P&gt;dasfsd123456789&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the data in same way, as this data we will be getting from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any solution for like some new line character or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008839#M409778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008840#M409779</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 same parameters that you pass on to the READ_TEXT FM, use the same and pass it to the Text node with &amp;lt;b&amp;gt;node type = Include Text&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might solve the Problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008840#M409779</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-03-09T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008841#M409780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anirban&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me which parameter I need to pass.&lt;/P&gt;&lt;P&gt;This is my FM: READ_TEXT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;  ID = '0002'&lt;/P&gt;&lt;P&gt;  LANGUAGE = wa_language&lt;/P&gt;&lt;P&gt;  NAME = WA_TDNAME&lt;/P&gt;&lt;P&gt;  OBJECT = 'VBBK'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LOCAL_CAT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = it_tline_marks&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_FOUND = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJECT = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REFERENCE_CHECK = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_tline_marks into wa_tline_marks.&lt;/P&gt;&lt;P&gt;    v_packlist_marks = wa_tline_marks-tdline.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how to determine the node type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 11:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008841#M409780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T11:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008842#M409781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vishal,&lt;/P&gt;&lt;P&gt;       READ_TEXT function module will return the internal table. What u need to do is declare one internal table in global definitions and pass that internaltable as a parameter to Read_text fun module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;.....&lt;/P&gt;&lt;P&gt;1)it_lines type lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) do this in program lines. &lt;/P&gt;&lt;P&gt;note :pass this &amp;lt;b&amp;gt;it_lines&amp;lt;/b&amp;gt; as a export values of &amp;lt;b&amp;gt;program lines&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ID                      = '0002'&lt;/P&gt;&lt;P&gt;      LANGUAGE                = V_LANGU&lt;/P&gt;&lt;P&gt;      NAME                    = V_TDNAME&lt;/P&gt;&lt;P&gt;      OBJECT                  = 'VBBK'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LINES                   = IT_TLINE&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;      NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;      OBJECT                  = 5&lt;/P&gt;&lt;P&gt;      REFERENCE_CHECK         = 6&lt;/P&gt;&lt;P&gt;      WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;      OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CLEAR IT_TLINE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3) loop this it_lines and use text element to print contents for it_lines. &lt;/P&gt;&lt;P&gt;    ...&amp;gt;place this in text element &amp;amp;it_lines-text...&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   thats it! you can get the desired output. &lt;/P&gt;&lt;P&gt;[II].....&lt;/P&gt;&lt;P&gt;Same thing can be achived in another way.&lt;/P&gt;&lt;P&gt;text element--&amp;gt; include text....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HOPE UR PROBLEM WILL SOLVED.....DON'T FORGET TO GRADE POINTS IF UR PROB SOLVED...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreenivasa Sarma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 11:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008842#M409781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008843#M409782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable WA_TDNAME holds the Invoice Number and from the header of that invoice we are getting the data, and which is in multiple lines.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i'll pass this WA_TDNAME in to the text node; either I am getting the invoice number by using &amp;amp;WA_TDNAME&amp;amp;or I am getting it as "WA_TDNAME".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response to this will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 11:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008843#M409782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008844#M409783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to pass the following &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ID = '0002'
LANGUAGE = wa_language
NAME = WA_TDNAME
OBJECT = 'VBBK'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into the text Node. Use a Program Line before this to retrieve the values of the wa_langugae and wa_tdname (if required). The Text node will print all the data as found from the read text return table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that Helps&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Please reward Points if Helpfull&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 05:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-multiple-lines/m-p/2008844#M409783</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-03-12T05:19:58Z</dc:date>
    </item>
  </channel>
</rss>

