<?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 Regarding scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593609#M266813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to handle long text in Script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2006 09:56:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-01T09:56:07Z</dc:date>
    <item>
      <title>Regarding scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593609#M266813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to handle long text in Script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 09:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593609#M266813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T09:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593610#M266814</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 find the text stored in tables STXH and STXL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STXH - STXD SAPscript text file header&lt;/P&gt;&lt;P&gt;STXL - STXD SAPscript text file lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the text id, text object and other details, double the long text pad, it will take you to SAP script editor. There click menu GOTO -&amp;gt; select header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find textname, lang, text id and text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read the text, use the FM READ_TEXT and pass these textname, textid, textobject and long, u will get the long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 10:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593610#M266814</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-01T10:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593611#M266815</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;adding to the above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : str(320) type c.&lt;/P&gt;&lt;P&gt;TABLES STXH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : G_TEXT,G_TEXTL.&lt;/P&gt;&lt;P&gt;CONCATENATE I_VBRPG-VBELN I_VBRPG-POSNR INTO G_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE G_TEXT NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM STXH WHERE TDOBJECT = 'VBBP' AND TDNAME = G_TEXT AND&lt;/P&gt;&lt;P&gt;TDID = '0001' AND TDSPRAS = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&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;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;ID = '0001'&lt;/P&gt;&lt;P&gt;LANGUAGE = 'E'&lt;/P&gt;&lt;P&gt;NAME = G_TEXT&lt;/P&gt;&lt;P&gt;OBJECT = 'VBBP'&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 = G_LINE&lt;/P&gt;&lt;P&gt;= 1&lt;/P&gt;&lt;UL&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 = 'Text Not found'&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;*IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*G_TEXTL = G_LINE-TDLINE.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;loop at g_line.&lt;/P&gt;&lt;P&gt;concatenate str g_line-tdline into str separated by space.&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;g_textl = str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark hlpful answrs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 10:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593611#M266815</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-01T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593612#M266816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    long text are stored in table stxh,stxl &lt;/P&gt;&lt;P&gt;   use read_text function module to read text lines&lt;/P&gt;&lt;P&gt;       edit_text to edit existing text&lt;/P&gt;&lt;P&gt;       create_text- crete new text&lt;/P&gt;&lt;P&gt;       save_text - save text&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;ID = 'ST'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;NAME = THEAD-TDNAME&lt;/P&gt;&lt;P&gt;OBJECT = 'TEXT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = TLINE_TAB&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;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 14:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593612#M266816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593613#M266817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can use INCLUDE an SCRIPT Control command for this purpose.&lt;/P&gt;&lt;P&gt;here is the syntax :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;/:&amp;lt;/b&amp;gt; INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here /: indicates its an Control command.&lt;/P&gt;&lt;P&gt;you have to use NAME, ID, LANGUAGE adn OBJECT here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you give these details in the Text editor of script layout,automatically data will be printed on the screen.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;/: INCLUDE &amp;amp;EKKO-EBELN&amp;amp; OBJECT EKKO ID X LANGUAGE E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got the Idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is brief help about INCLUDE:&lt;/P&gt;&lt;P&gt;Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.&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;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 17:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/1593613#M266817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T17:38:09Z</dc:date>
    </item>
  </channel>
</rss>

