<?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 read_text in smart forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984744#M704781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use read_text in smart form...how to pass object in this fm....actually there is standard table which maintains data according username......from which we can fetch data required for this fm..i am not getting tasble name..plz can u suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2007 05:44:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-05T05:44:15Z</dc:date>
    <item>
      <title>read_text in smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984744#M704781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use read_text in smart form...how to pass object in this fm....actually there is standard table which maintains data according username......from which we can fetch data required for this fm..i am not getting tasble name..plz can u suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 05:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984744#M704781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: read_text in smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984745#M704782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;STXH is the table name which maintains the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 05:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984745#M704782</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-11-05T05:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text in smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984746#M704783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t_code s010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP READ_TEXT functions to read the SAP Long Text &lt;/P&gt;&lt;P&gt;You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc. &lt;/P&gt;&lt;P&gt;To check your long text header, go into the long text. Click Goto -&amp;gt; Header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of READ_TEXT functions reading tables PBIM - Independent requirements for material. &lt;/P&gt;&lt;P&gt;Example of READ_TEXT functions reading tables PBIM - Independent requirements for material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEXT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: PBIM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stxh, stxl, stxb - trans tables for text &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxit - text on text-ids &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxot - Short texts on text objects &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transaction MD63 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR, &lt;/P&gt;&lt;P&gt;S_WERKS FOR PBIM-WERKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF HTEXT. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE THEAD. &lt;/P&gt;&lt;P&gt;DATA: END OF HTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF LTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF DTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;DATA: MATNR LIKE PBIM-MATNR. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF DTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TNAME LIKE THEAD-TDNAME. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM PBIM WHERE WERKS IN S_WERKS. &lt;/P&gt;&lt;P&gt;MOVE PBIM-BDZEI TO TNAME. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLIENT = SY-MANDT &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ID = 'PB' &lt;/P&gt;&lt;P&gt;LANGUAGE = 'E' &lt;/P&gt;&lt;P&gt;NAME = TNAME &lt;/P&gt;&lt;P&gt;OBJECT = 'PBPT' &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;/UL&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;HEADER = HTEXT &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;LINES = LTEXT &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;LOOP AT LTEXT. &lt;/P&gt;&lt;P&gt;IF LTEXT-TDLINE NE ''. &lt;/P&gt;&lt;P&gt;MOVE LTEXT-TDLINE TO DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;MOVE PBIM-MATNR TO DTEXT-MATNR. &lt;/P&gt;&lt;P&gt;APPEND DTEXT. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;LOOP AT DTEXT. &lt;/P&gt;&lt;P&gt;WRITE:/ DTEXT-MATNR, DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table to store standard texts&lt;/P&gt;&lt;P&gt;DATA: IT_TEXTS like T_LINE occurs o with header line.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;id = "Text ID&lt;/P&gt;&lt;P&gt;language = "Laguage&lt;/P&gt;&lt;P&gt;name = "Text name&lt;/P&gt;&lt;P&gt;object = "text object&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;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_TEXTS "Internal table&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;save text&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill out following parameters of SAVE_TEXT function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER&lt;/P&gt;&lt;P&gt;TDOBJECT C 10 BUT000&lt;/P&gt;&lt;P&gt;TDNAME C 70 10 digit BP number&lt;/P&gt;&lt;P&gt;TDID C 4 Z001&lt;/P&gt;&lt;P&gt;TDSPRAS C 1 Language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT = &amp;#146;X&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINES&lt;/P&gt;&lt;P&gt;TDFORMAT TDLINE &lt;/P&gt;&lt;P&gt;| &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;|testtttttttttttttttttttttttt( Your text)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would suggest you to use some other BAPI that would attach your text to BP than SAVE_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still wanted to use SAVE_TEXT then first make sure how the TDNAME is generated. It depends on the text determination procedure. For examples, it can be guid of BP, GUID followed by date or time or else the BP number itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go to BP transaction, double click on the text pad, it will open you the SAP Script editor. Click on menu GOTO and select Header which will give you info about your TDID, TDOBJECT, TDNAME....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 05:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984746#M704783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T05:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: read_text in smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984747#M704784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;chk this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the text id name and object name from the tcode itself.Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_SH_TLINE	LIKE	TLINE (mention in form interface in the tables tab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: IT_SH_TLINE,IT_SH_TLINE, V_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_NAME = WA_ITEM-EBELN.&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                      = 'F01'&lt;/P&gt;&lt;P&gt;LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;P&gt;NAME                    = V_NAME&lt;/P&gt;&lt;P&gt;OBJECT                  = 'EKKO'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES                   = IT_SH_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;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 05:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984747#M704784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T05:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text in smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984748#M704785</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;You can use include text in SAP. then pass the value table name and taxt id to it'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work as read_text no need to write separately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 06:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-in-smart-forms/m-p/2984748#M704785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T06:01:35Z</dc:date>
    </item>
  </channel>
</rss>

