<?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/2868021#M672846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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;&amp;lt;b&amp;gt;SCRIPT COMMANDS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADDRESS : Formatting of Address&lt;/P&gt;&lt;P&gt;BOTTOM, ENDBOTTOM : Define Footer text in a window&lt;/P&gt;&lt;P&gt;BOX, POSITION, SIZE : Boxes, Lines and Shading&lt;/P&gt;&lt;P&gt;CASE, ENDCASE : Case Distinction&lt;/P&gt;&lt;P&gt;DEFINE : Value assignment to text symbols&lt;/P&gt;&lt;P&gt;HEX, ENDHEX : Hexadecimal values&lt;/P&gt;&lt;P&gt;IF, ENDIF : Conditional text output&lt;/P&gt;&lt;P&gt;INCLUDE : Include other texts&lt;/P&gt;&lt;P&gt;NEW-PAGE : Explicit forms feed&lt;/P&gt;&lt;P&gt;NEW-WINDOW : Next window main&lt;/P&gt;&lt;P&gt;PRINT-CONTROL : Insert print control character&lt;/P&gt;&lt;P&gt;PROTECT...ENDPROTECT : Protect from page break&lt;/P&gt;&lt;P&gt;RESET : Initialize outline paragraphs&lt;/P&gt;&lt;P&gt;SET COUNTRY : Country-specific formating&lt;/P&gt;&lt;P&gt;SET DATE MASK : Formating of date fields&lt;/P&gt;&lt;P&gt;SET SIGN : Position of +/- sign&lt;/P&gt;&lt;P&gt;SET TIME MASK : Formating of time fields&lt;/P&gt;&lt;P&gt;STYLE : Change style&lt;/P&gt;&lt;P&gt;SUMMING : Summing variables&lt;/P&gt;&lt;P&gt;TOP : Set header text in window MAIN&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 08:46:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T08:46:06Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868020#M672845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir&lt;/P&gt;&lt;P&gt;please give me script commands document .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ritu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868020#M672845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868021#M672846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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;&amp;lt;b&amp;gt;SCRIPT COMMANDS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADDRESS : Formatting of Address&lt;/P&gt;&lt;P&gt;BOTTOM, ENDBOTTOM : Define Footer text in a window&lt;/P&gt;&lt;P&gt;BOX, POSITION, SIZE : Boxes, Lines and Shading&lt;/P&gt;&lt;P&gt;CASE, ENDCASE : Case Distinction&lt;/P&gt;&lt;P&gt;DEFINE : Value assignment to text symbols&lt;/P&gt;&lt;P&gt;HEX, ENDHEX : Hexadecimal values&lt;/P&gt;&lt;P&gt;IF, ENDIF : Conditional text output&lt;/P&gt;&lt;P&gt;INCLUDE : Include other texts&lt;/P&gt;&lt;P&gt;NEW-PAGE : Explicit forms feed&lt;/P&gt;&lt;P&gt;NEW-WINDOW : Next window main&lt;/P&gt;&lt;P&gt;PRINT-CONTROL : Insert print control character&lt;/P&gt;&lt;P&gt;PROTECT...ENDPROTECT : Protect from page break&lt;/P&gt;&lt;P&gt;RESET : Initialize outline paragraphs&lt;/P&gt;&lt;P&gt;SET COUNTRY : Country-specific formating&lt;/P&gt;&lt;P&gt;SET DATE MASK : Formating of date fields&lt;/P&gt;&lt;P&gt;SET SIGN : Position of +/- sign&lt;/P&gt;&lt;P&gt;SET TIME MASK : Formating of time fields&lt;/P&gt;&lt;P&gt;STYLE : Change style&lt;/P&gt;&lt;P&gt;SUMMING : Summing variables&lt;/P&gt;&lt;P&gt;TOP : Set header text in window MAIN&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868021#M672846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868022#M672847</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 commands the we can use in Layout set Text Elements are called Control Commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are always entered using /:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Trigger page break&lt;/P&gt;&lt;P&gt;/: NEW-PAGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Generate header in page for Main window TOP&lt;/P&gt;&lt;P&gt;/: TOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ENDTOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Generate Footer in page for Main window Botton&lt;/P&gt;&lt;P&gt;/: BOTTOM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ENDBOTTOM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Check the conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: CASE &amp;amp;SY-UNAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: WHEN 'ABC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/2868022#M672847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:46:55Z</dc:date>
    </item>
  </channel>
</rss>

