<?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: Text ID and Text Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170402#M460259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declare the following paramters:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create Long Text lines for READ_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;data v_text(70).&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 READ_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA :   v_name TYPE thead-tdname,   " Object Name&lt;/P&gt;&lt;P&gt;              v_lan TYPE thead-tdspras.   " Language&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;CONSTANTS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Object ID for Long Text of fun module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  c_id      TYPE thead-tdid VALUE 'ZP05',&lt;/P&gt;&lt;P&gt;  c_object TYPE thead-tdobject VALUE ''VBBP'. " Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the loop of the Orders data:&lt;/P&gt;&lt;P&gt;loop at ITAB.&lt;/P&gt;&lt;P&gt;    concatenate itab-vbeln itab-posnr into v_name.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;OBJECT = c_object&lt;/P&gt;&lt;P&gt;NAME = v_name&lt;/P&gt;&lt;P&gt;ID = c_id&lt;/P&gt;&lt;P&gt;LANGUAGE = sy-langu&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;P&gt;IMPORTING HEADER =&lt;/P&gt;&lt;P&gt;TABLES LINES = 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;clear : v_text, v_name.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  loop at tline.&lt;/P&gt;&lt;P&gt;    v_text = tline-tdline.&lt;/P&gt;&lt;P&gt; endllop.&lt;/P&gt;&lt;P&gt;endif.&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;reward points 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>Wed, 25 Apr 2007 10:48:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-25T10:48:43Z</dc:date>
    <item>
      <title>Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170397#M460254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How and where we use Text ID and Text Object's in the ABAP program?&lt;/P&gt;&lt;P&gt;Suppose If have a Text ID for a Text Object, in what condition I use these?&lt;/P&gt;&lt;P&gt;Please reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 08:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170397#M460254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170398#M460255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant,&lt;/P&gt;&lt;P&gt;SAP stores comments (text fields) in a separate table. STXH is the text&lt;/P&gt;&lt;P&gt;"header" table (STXD SAPscript text file header). STXH-TDOBJECT =&lt;/P&gt;&lt;P&gt;'KNA1' will bring back all the customer comment headers. STXH-&lt;/P&gt;&lt;P&gt;TDNAME='0000010744' is the header record for the comment for customer&lt;/P&gt;&lt;P&gt;10744.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not always so simple to figure out what the TDOBJECT (object needed by function below - sometimes it is a table name, other times...), TDNAME (name needed by function below - sometimes it is a document number &amp;amp; line item or customer number, other times... ) &amp;amp; TDID (id needed by function below - it is always the long text id). There are several methods that can be used. You can create the long text that you are researching and using, SE16 for table STXH search TDLUSER = to your kerberos principal and TDLDATE = to today's date. This is modify date &amp;amp; user. Alternatively, you can find an existing item with the long text and figure out the date and user who last modified it and use this information in your search. Once you have STXH row for text of interest, use ZCAFTXT to test your research. Project Titles and WBS Titles are a bit more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes to sales contract long text between 3.0F and 4.5B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is a function that will return a customer comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_comment using cur_kunnr.&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                = sy-langu&lt;/P&gt;&lt;P&gt;            object                  = 'KNA1'&lt;/P&gt;&lt;P&gt;            name                    = cur_kunnr&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            header                  = thead&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            lines                   = tlinetab&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;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    loop at tlinetab.&lt;/P&gt;&lt;P&gt;      write / tlinetab-tdline.&lt;/P&gt;&lt;P&gt;      add 1 to line_cnt.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above subroutine is called with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if p_cmnt = 'X'.&lt;/P&gt;&lt;P&gt;   tdname = cur_cust-kunnr.&lt;/P&gt;&lt;P&gt;   perform get_comment using tdname.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These data elements are defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of tlinetab occurs 100.    "table to process comments&lt;/P&gt;&lt;P&gt;        include structure tline.&lt;/P&gt;&lt;P&gt;data: end of tlinetab.&lt;/P&gt;&lt;P&gt;data: tdname           like thead-tdname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 08:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170398#M460255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T08:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170399#M460256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text id -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/3f/bd1edf1b9a421da8b84be03c86b301/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/3f/bd1edf1b9a421da8b84be03c86b301/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;text objects -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/77/571d0e492011d1894a0000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/77/571d0e492011d1894a0000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 08:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170399#M460256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170400#M460257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is: &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;Create the logic of Get Text for &amp;#147;Ship ref number&amp;#148; of ZOR order using below Text ID and Text object. **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Text ID         ZP05 &amp;amp;#12288;ShipRef.&lt;/P&gt;&lt;P&gt;Text object   VBBP    Sales Item texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I proceed to complete this assignment?&lt;/P&gt;&lt;P&gt;Please reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 10:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170400#M460257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170401#M460258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use &amp;lt;b&amp;gt;Text ID&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;Text Object&amp;lt;/b&amp;gt; while reading &amp;lt;b&amp;gt;Long text&amp;lt;/b&amp;gt; which is present for some header data or item level data.U give tht in function &amp;lt;b&amp;gt;'READ_TEXT' &amp;lt;/b&amp;gt; as parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it solves ur query&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 10:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170401#M460258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T10:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text ID and Text Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170402#M460259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declare the following paramters:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create Long Text lines for READ_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;data v_text(70).&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 READ_TEXT function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA :   v_name TYPE thead-tdname,   " Object Name&lt;/P&gt;&lt;P&gt;              v_lan TYPE thead-tdspras.   " Language&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;CONSTANTS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Object ID for Long Text of fun module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  c_id      TYPE thead-tdid VALUE 'ZP05',&lt;/P&gt;&lt;P&gt;  c_object TYPE thead-tdobject VALUE ''VBBP'. " Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the loop of the Orders data:&lt;/P&gt;&lt;P&gt;loop at ITAB.&lt;/P&gt;&lt;P&gt;    concatenate itab-vbeln itab-posnr into v_name.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;OBJECT = c_object&lt;/P&gt;&lt;P&gt;NAME = v_name&lt;/P&gt;&lt;P&gt;ID = c_id&lt;/P&gt;&lt;P&gt;LANGUAGE = sy-langu&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;P&gt;IMPORTING HEADER =&lt;/P&gt;&lt;P&gt;TABLES LINES = 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;clear : v_text, v_name.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  loop at tline.&lt;/P&gt;&lt;P&gt;    v_text = tline-tdline.&lt;/P&gt;&lt;P&gt; endllop.&lt;/P&gt;&lt;P&gt;endif.&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;reward points 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>Wed, 25 Apr 2007 10:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-id-and-text-object/m-p/2170402#M460259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T10:48:43Z</dc:date>
    </item>
  </channel>
</rss>

