<?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: Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471171#M555569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Text elements are the elements which are used to write some data under them based on some conditions, using the command '/E' in command line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are triggered along with the fun module WRITE_FORM from the driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable in SAPscript is called a symbol. There are the following types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; System symbol (e.g. the number of the current page)&lt;/P&gt;&lt;P&gt;&amp;#149; Standard symbol (usable in any document)&lt;/P&gt;&lt;P&gt;&amp;#149; Program symbol (value from the print program)&lt;/P&gt;&lt;P&gt;&amp;#149; Text symbol (&amp;#147;local variable&amp;#148;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto any PAGEWINDOW's Text elements in Script (SE71)&lt;/P&gt;&lt;P&gt;from the Menu-&amp;gt; INSERT-&amp;gt; Symbols &lt;/P&gt;&lt;P&gt;you find all symbols here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.&lt;/P&gt;&lt;P&gt;1. General system symbols&lt;/P&gt;&lt;P&gt;See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.&lt;/P&gt;&lt;P&gt;2. SAPscript system symbols&lt;/P&gt;&lt;P&gt;See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.&lt;/P&gt;&lt;P&gt;3. ABAP system symbols&lt;/P&gt;&lt;P&gt;For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User: &amp;amp;SYST-UNAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Page &amp;amp;PAGE&amp;amp; of &amp;amp;SAPSCRIPT-FORMPAGES(C3)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tools&lt;/P&gt;&lt;P&gt;Form Printout&lt;/P&gt;&lt;P&gt;Administration&lt;/P&gt;&lt;P&gt;Settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.&lt;/P&gt;&lt;P&gt;The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.&lt;/P&gt;&lt;P&gt;We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.&lt;/P&gt;&lt;P&gt;Standard symbols complicate searching a SAPscript form, since text like &amp;#145;Charity registration 211581&amp;#146; may be hiding in a standard symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;COMP_NAME&amp;amp; = &amp;#145;University of Warwick&amp;#146;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;WS_RATE&amp;amp; = &amp;amp;TAX_SUMM_C&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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>Mon, 25 Jun 2007 09:08:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T09:08:10Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471169#M555567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what r the text elements in scripts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471169#M555567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471170#M555568</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;SAPscript calls the individual text components of a form text elements. To achieve good structuring and readability, you assign a fixed name to each text element in the form. The print program then uses these names to access the elements. This name applies also for translated versions of a text element, while the contents of the text elements depend on the language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text elements are related to a window, that is, a print program can call for each window only those text elements that exist in this window. They are used in main and other windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables used within '&amp;amp;...&amp;amp;' are replaced by the system at output time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E    &amp;lt;element name&amp;gt;&lt;/P&gt;&lt;P&gt;UL    &amp;amp;fieldnam&amp;amp; text text &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Named element are written when driver program use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ELEMENT = 'BOOKING'&lt;/P&gt;&lt;P&gt;        TYPE = 'BODY'&lt;/P&gt;&lt;P&gt;        WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unnamed element are written once in MAIN windows, and each time in other windows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471170#M555568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471171#M555569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Text elements are the elements which are used to write some data under them based on some conditions, using the command '/E' in command line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are triggered along with the fun module WRITE_FORM from the driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable in SAPscript is called a symbol. There are the following types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; System symbol (e.g. the number of the current page)&lt;/P&gt;&lt;P&gt;&amp;#149; Standard symbol (usable in any document)&lt;/P&gt;&lt;P&gt;&amp;#149; Program symbol (value from the print program)&lt;/P&gt;&lt;P&gt;&amp;#149; Text symbol (&amp;#147;local variable&amp;#148;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto any PAGEWINDOW's Text elements in Script (SE71)&lt;/P&gt;&lt;P&gt;from the Menu-&amp;gt; INSERT-&amp;gt; Symbols &lt;/P&gt;&lt;P&gt;you find all symbols here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.&lt;/P&gt;&lt;P&gt;1. General system symbols&lt;/P&gt;&lt;P&gt;See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.&lt;/P&gt;&lt;P&gt;2. SAPscript system symbols&lt;/P&gt;&lt;P&gt;See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.&lt;/P&gt;&lt;P&gt;3. ABAP system symbols&lt;/P&gt;&lt;P&gt;For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User: &amp;amp;SYST-UNAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Page &amp;amp;PAGE&amp;amp; of &amp;amp;SAPSCRIPT-FORMPAGES(C3)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tools&lt;/P&gt;&lt;P&gt;Form Printout&lt;/P&gt;&lt;P&gt;Administration&lt;/P&gt;&lt;P&gt;Settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.&lt;/P&gt;&lt;P&gt;The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.&lt;/P&gt;&lt;P&gt;We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.&lt;/P&gt;&lt;P&gt;Standard symbols complicate searching a SAPscript form, since text like &amp;#145;Charity registration 211581&amp;#146; may be hiding in a standard symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;COMP_NAME&amp;amp; = &amp;#145;University of Warwick&amp;#146;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;WS_RATE&amp;amp; = &amp;amp;TAX_SUMM_C&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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>Mon, 25 Jun 2007 09:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2471171#M555569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:08:10Z</dc:date>
    </item>
  </channel>
</rss>

