<?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: Header Text For Orders in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132925#M448529</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;Thanks for your comments on this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was passing all the parameters as mentioned by you..only mistake i was doing was not passing the leading zeroes in Sales Order ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its now working ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2007 05:14:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-20T05:14:05Z</dc:date>
    <item>
      <title>Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132919#M448523</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;How to get the Headre Text for the Sales Order Number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have to use READ_TEXT if yes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what all parameters to be passed and what will b ethe OBJECT for this ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132919#M448523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132920#M448524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Object should be VBBK.&lt;/P&gt;&lt;P&gt;Name should be the SO Number.&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, 19 Apr 2007 16:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132920#M448524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T16:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132921#M448525</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 texts you find in all SAP Object, like orders, invoice, materials, ... can be extract with FM 'READ_TEXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know the parameters of the FM, you 'll have to go to the text ( in plain page mode ), then you do "GOTO" -&amp;gt; "HEADER", and a pop-up window opens with the parameters you need ( Text name, language, text id, text object ).&lt;/P&gt;&lt;P&gt;The table "t_tdline" contains the entire text .&lt;/P&gt;&lt;P&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;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                            = w_id&lt;/P&gt;&lt;P&gt;    language                      = sy-langu&lt;/P&gt;&lt;P&gt;    name                          = w_name&lt;/P&gt;&lt;P&gt;    object                        = w_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;  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                         = t_tdlines&lt;/P&gt;&lt;P&gt;&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;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132921#M448525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132922#M448526</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;  Go to header texts and get the id, name, object of the text.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables : vbak.

DATA: BEGIN OF lines OCCURS 0.
       INCLUDE STRUCTURE tline.
DATA: END OF lines.

data : text1(60) TYPE C  ,
      text2(60) TYPE C  ,
      text3(60) TYPE C  ,
      text4(60) TYPE C  ,
      text5(60) TYPE C  .

data:  w_id       like thead-tdid,        "Text ID
      w_name     like thead-tdname,      "Name
      w_object   like thead-tdobject.    "Texts: aplication

     w_id   = 'Z100'.
     w_name = VBAK-VBELN.
     w_object = 'VBBK'.

     clear lines.
     CLEAR TEXT1.
     CLEAR TEXT2.
     CLEAR TEXT3.
     CLEAR TEXT4.
     CLEAR TEXT5.

     call function 'READ_TEXT'
          EXPORTING
               id                      = w_id
               language                = 'E'
               name                    = w_name
               object                  = w_object
          TABLES
               lines                   = lines
          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.

     ELSE .
       REad table lines index 1.
       if sy-subrc = 0.
         text1 = lines-tdline.
       endif.
       REad table lines index 2.
       if sy-subrc = 0.
         text2 = lines-tdline.
       endif.
       REad table lines index 3.
       if sy-subrc = 0.
         text3 = lines-tdline.
       endif.
       REad table lines index 4.
       if sy-subrc = 0.
         text4 = lines-tdline.
       endif.
       REad table lines index 5.
       if sy-subrc = 0.
         text5 = lines-tdline.
       endif.

     ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132922#M448526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T16:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132923#M448527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI GOTO header -&amp;gt; texts for particular sales order and select the text you want.&lt;/P&gt;&lt;P&gt;Double click on the text so that u will get a form header. in that goto HEader so that u will find the vallues to be passed to FM READ_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132923#M448527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132924#M448528</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;Yes, you can use FM READ_TEXT to read header text for sales order. &lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: TDNAME LIKE THEAD-TDNAME.
 
CLEAR: TEXT. REFRESH: TEXT.
 
TDNAME = VBAK-VBELN.
 
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    ID = '0001'
    LANGUAGE = SY-LANGU
    NAME = TDNAME
    OBJECT = 'VBBK'
  TABLES
    LINES = TEXT
  EXCEPTIONS
    NOT_FOUND = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132924#M448528</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-19T16:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Header Text For Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132925#M448529</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;Thanks for your comments on this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was passing all the parameters as mentioned by you..only mistake i was doing was not passing the leading zeroes in Sales Order ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its now working ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 05:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-text-for-orders/m-p/2132925#M448529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T05:14:05Z</dc:date>
    </item>
  </channel>
</rss>

