<?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: Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262987#M148188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem with the character format for the first line? The issue is not clear, could you please explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2006 11:40:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-16T11:40:29Z</dc:date>
    <item>
      <title>Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262986#M148187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all, &lt;/P&gt;&lt;P&gt;In a Smartforms we must print in a text node the first line of a long text. &lt;/P&gt;&lt;P&gt;To do so we read the long text and put its first line in a global data. Then we print the global data. &lt;/P&gt;&lt;P&gt;The problem are the character format founded in the first line of the long text that are printed as text...... &lt;/P&gt;&lt;P&gt;Help me please. &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Franco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 11:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262986#M148187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T11:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262987#M148188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem with the character format for the first line? The issue is not clear, could you please explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 11:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262987#M148188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262988#M148189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;In our Smartforms we must print the first line of a long text.&lt;/P&gt;&lt;P&gt;To do that we insertd a program lines where, via function module READ_TEXT, we read the long text and put the first line of it in the global data w_text.&lt;/P&gt;&lt;P&gt;Then we print w_text in a text node.&lt;/P&gt;&lt;P&gt;As result we obtained this text in output:&lt;/P&gt;&lt;P&gt;&amp;lt;H&amp;gt;ST1000 MATERIAL  1014 &amp;lt;/&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;H&amp;gt; and &amp;lt;/&amp;gt; are character formats put by the user when he wrote the text in the document.&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Franco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 11:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262988#M148189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262989#M148190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there Franco... maybe you have to specify to put in the variable w_text only the field TDLINE of the result table in FM READ_TEXT, i think that the format info of the line are stored in another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262989#M148190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262990#M148191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesus&lt;/P&gt;&lt;P&gt;Testing function module via transaction SE37, the content of the first row of table TLINE is as follow:&lt;/P&gt;&lt;P&gt;TDFORMAT = '*'&lt;/P&gt;&lt;P&gt;TDLINE = &amp;lt;H&amp;gt;ST1000 MATERIAL 1014 &amp;lt;/&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Franco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262990#M148191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262991#M148192</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 this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data :wa_lines type tline.
	

DATA: BEGIN OF lt_line occurs 0.
        INCLUDE STRUCTURE tline.
DATA: END OF lt_line.

move wa_vbrk-vbeln to gv_Tdname.

CALL FUNCTION 'READ_TEXT'
  EXPORTING
*   CLIENT                        = SY-MANDT
    ID                            = C_ZH01
    LANGUAGE                      =  wa_kna1-spras
    NAME                          =  gv_tdname
    OBJECT                        =  'VBBK'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
  TABLES
    LINES                         = lt_line
 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

DESCRIBE TABLE lt_line LINES wa_lines.
CHECK NOT wa_lines IS INITIAL.


LOOP AT lt_line.
  SEARCH lt_line-tdline FOR '.   .'.
  MOVE lt_line-tdline TO gv_text.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally print gv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262991#M148192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262992#M148193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gayathri,&lt;/P&gt;&lt;P&gt;I hope to solve using this code putted after the READ_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... Function READ_TEXT&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_TEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      format_type = 'ASCII'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      foreign     = tline&lt;/P&gt;&lt;P&gt;      itf_lines   = tline.&lt;/P&gt;&lt;P&gt;  LOOP AT tline.&lt;/P&gt;&lt;P&gt;    SHIFT tline BY 2 PLACES RIGHT.&lt;/P&gt;&lt;P&gt;    tline-tdformat = '*'.&lt;/P&gt;&lt;P&gt;    MODIFY tline.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;... Assigning W_TEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/1262992#M148193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:33:49Z</dc:date>
    </item>
  </channel>
</rss>

