<?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: sap scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089134#M434131</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 FM READ_TEXT allows reading a standard text in a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read all type standard text, particularly the text linked to document (sales order, bill, invoice,....) and several objects (material, customer, vendor,...). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go to std transaction, for example VA03 (to display sale order) and then go to text header, you can see all standard texts of the document (left column). If you do a double click on a text, the system will show you the text (long text) at the right side, so if you do a double click on long text the system will open the editor where you can change the text and see the header data of this text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key of each text is formed by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thead-tdobject =&amp;gt; Object type&lt;/P&gt;&lt;P&gt;thead-tdname =&amp;gt; Text name&lt;/P&gt;&lt;P&gt;thead-tdid =&amp;gt; Text id (subobject)&lt;/P&gt;&lt;P&gt;thead-tdspras =&amp;gt; Text language ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always find out these information to use fm READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should know the ID of the text you want to read (You can see in the customizing to know which texts are linked to your object) and find out the text name in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&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;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;id = thead-tdid&lt;/P&gt;&lt;P&gt;language = thead-tdspras&lt;/P&gt;&lt;P&gt;name = thead-tdname&lt;/P&gt;&lt;P&gt;object = thead-tdobject&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = inline&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;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 06:02:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T06:02:18Z</dc:date>
    <item>
      <title>sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089133#M434130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;         i need to call function module &amp;lt;b&amp;gt;READ_TEXT&amp;lt;/b&amp;gt; in sap script. Can u please tell me how this can be done. If possible please send me a sample code for the same. its very urgent please reply soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 05:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089133#M434130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T05:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089134#M434131</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 FM READ_TEXT allows reading a standard text in a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read all type standard text, particularly the text linked to document (sales order, bill, invoice,....) and several objects (material, customer, vendor,...). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go to std transaction, for example VA03 (to display sale order) and then go to text header, you can see all standard texts of the document (left column). If you do a double click on a text, the system will show you the text (long text) at the right side, so if you do a double click on long text the system will open the editor where you can change the text and see the header data of this text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key of each text is formed by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thead-tdobject =&amp;gt; Object type&lt;/P&gt;&lt;P&gt;thead-tdname =&amp;gt; Text name&lt;/P&gt;&lt;P&gt;thead-tdid =&amp;gt; Text id (subobject)&lt;/P&gt;&lt;P&gt;thead-tdspras =&amp;gt; Text language ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always find out these information to use fm READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should know the ID of the text you want to read (You can see in the customizing to know which texts are linked to your object) and find out the text name in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&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;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;id = thead-tdid&lt;/P&gt;&lt;P&gt;language = thead-tdspras&lt;/P&gt;&lt;P&gt;name = thead-tdname&lt;/P&gt;&lt;P&gt;object = thead-tdobject&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = inline&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;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089134#M434131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089135#M434132</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;use PERFORM and ENDPERFORM ... and call perform form the layout editor..&lt;/P&gt;&lt;P&gt;and in the driver program call this function module...!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;bhargavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089135#M434132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089136#M434133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;           U need write a SUb_routine in the Editor(SE38) and u need to call it in the script editor ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: perform sub_readtext using  t_input changing t_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:endperform . &lt;/P&gt;&lt;P&gt;data: v_temp1 type char10 .&lt;/P&gt;&lt;P&gt;form sub_readtext tables   t_input structure itcsy    t_output  structure itcsy.&lt;/P&gt;&lt;P&gt;read tables t_input index 1.  &lt;/P&gt;&lt;P&gt;v_temp1  =  t_input-value .&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                      = c_0004                &lt;/P&gt;&lt;P&gt;            language                = c_en                  &lt;/P&gt;&lt;P&gt;            name                    = w_name                &lt;/P&gt;&lt;P&gt;            object                  = c_ska1                &lt;/P&gt;&lt;P&gt;       tables                                               &lt;/P&gt;&lt;P&gt;            lines                   = t_lines               &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;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089136#M434133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089137#M434134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhaskar,&lt;/P&gt;&lt;P&gt;         what is this t_lines in the function module. please be a bit more ellaborate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089137#M434134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089138#M434135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T_LINES is the internal table contianing the Text&lt;/P&gt;&lt;P&gt;has 2 columns defining para format and antoher col containing txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 07:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089138#M434135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T07:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089139#M434136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please check out the code:&lt;/P&gt;&lt;P&gt;data:      i_lines TYPE STANDARD TABLE OF tline 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                            = 'ETX2'&lt;/P&gt;&lt;P&gt;      language                      =  sy-langu&lt;/P&gt;&lt;P&gt;      name                          = l_objnam&lt;/P&gt;&lt;P&gt;      object                        = l_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                         = i_lines&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;  READ TABLE i_lines INDEX 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    l_doship = i_lines-tdline.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;i_lines is the result table.&lt;/P&gt;&lt;P&gt;It contains the text corresponding to the id and object in the FM READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Swathi A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 07:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2089139#M434136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T07:11:31Z</dc:date>
    </item>
  </channel>
</rss>

