<?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: Table for Header text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550297#M249705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The long texts are stored in STXH and STXL tables, however they are not in readable formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you will have to use READ_TEXT function to read the text which will throw a exception if the text does not exist and you will have to catch the same for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2006 03:26:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-22T03:26:06Z</dc:date>
    <item>
      <title>Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550295#M249703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to retrieve the the customers with text IDs YDL3. I know this can be seen on the customer master, Sales Area Tab, and going to menu path Extras --&amp;gt; Texts. If i input any value for this text ID, i will be able to retrieve the customers with this text IDs via STXH and STXL. However, if this has no value, i can't retrieve the customers with this header text configured. Can you please tell me where to retrieve this information even without a text maintained?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 03:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550295#M249703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T03:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550296#M249704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of these "Standard Texts" or "Long Texts" are stored in table STXL but the contents are stroed in a compressed cluster format. This allows you to enter as much text as you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you enter the text, save it and view it in the SAPscript Editor. You will see an asterisk (*) in the the first column, followed by your text. Now go to the following menu path: Goto-&amp;gt;Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see a popup giving you text name, text id, language and object. Notice the text name is a concatenation of customer number (with leading zeros), sales org, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you pass this into in function module READ_TEXT, you will get your "Header Text" contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 03:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550296#M249704</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2006-08-22T03:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550297#M249705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The long texts are stored in STXH and STXL tables, however they are not in readable formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you will have to use READ_TEXT function to read the text which will throw a exception if the text does not exist and you will have to catch the same for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 03:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550297#M249705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T03:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550298#M249706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to determine whether the customer has a maintained header text, text ID YDL3 for example. I really don't need to read the content of the header text. All i need to know is check if my customer has a text ID YDL3 maintained without opening the customer master transaction. However, if my text ID does not have a long text maintained, it is not being reflected to STXH and STXL. So basically, i need to know what table to retrieve the information even if the text ID does not contain any long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 07:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550298#M249706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T07:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550299#M249707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi Jim

  Will try to address your problem in the following way. 
Hope it helps you.

Step1: Finding TEXT Details:
  i) Create some text for a customer for testing. 
  ii)Now in Change mode go to the text double click on 
the text which will take you to the EDITOR.
  iii) Use Menu path: Goto-&amp;gt; Header
  iV) Here you can find Text Name, Language, Text ID, 
Text Object.
  v) Figure out the combination of text name, whether 
itz customer number alone or cutomer number and sales 
area.
  vi) Note the Text Object, i guess it should be KNVV 
for sales texts.
  vii) Now you can use these details to code in your 
program.

Step2: Coding in your program
  Below is a sample program which can help you.

Note that my assumption is Text Name is created with 
customer number and sales area.

DATA: L_ID LIKE THEAD-TDID,
      L_LANGU LIKE THEAD-TDSPRAS,
      L_NAME LIKE THEAD-TDNAME,
      L_OBJECT LIKE THEAD-TDOBJECT.
TYPES: T_LINE LIKE TLINE.
DATA: IT_TLINE TYPE STANDARD TABLE OF T_LINE.

L_ID = 'YLD3'.
L_LANGU = SY-LANGU.
L_OBJECT = 'KNVV'.
LOOP AT IT_CUSTOMER INTO WA_CUSTOMER.

  CONCANTENATE WA_CUSTOMER-KUNNR WA_CUSTOMER-VKORG 
     WA_CUSTOMER-VTWEG WA_CUSTOMER-SPART INTO L_NAME.
  REFRESH: IT_TLINE.
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      ID                      = L_ID
      LANGUAGE                = L_LANGU
      NAME                    = L_NAME
      OBJECT                  = L_OBJECT
    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 IT_TLINE[] IS INITIAL.
    " MESSAGE CUSTOMER TEXT NOT MAINTAINED
  ELSE.
    " MESSAGE CUSTOMER TEXT MAINTAINED
  ENDIF.
ENDLOOP.

Hope the above info helps you.

Kind Regards
Eswar&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 07:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550299#M249707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550300#M249708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eswar,&lt;/P&gt;&lt;P&gt;It's a nice explanation, from the above code i need some more info, could u please email ur phone to this address:&lt;/P&gt;&lt;P&gt;mxyz123@gmail.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mxyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 05:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550300#M249708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T05:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table for Header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550301#M249709</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;Eswar has given very good explanation.&lt;/P&gt;&lt;P&gt;But before using read_text check with single select statement whether the text id is exist or not with table STXL.&lt;/P&gt;&lt;P&gt;It is for better parctise and for performance.&lt;/P&gt;&lt;P&gt;If sy-subrc = 0 then use the function to retrieve value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 05:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-header-text/m-p/1550301#M249709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T05:49:08Z</dc:date>
    </item>
  </channel>
</rss>

