<?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: pls tell difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074459#M429904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPscript symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overview&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;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;P&gt;*	User: &amp;amp;SYST-UNAME&amp;amp;&lt;/P&gt;&lt;P&gt;*	Page &amp;amp;PAGE&amp;amp; of &amp;amp;SAPSCRIPT-FORMPAGES(C3)&amp;amp;&lt;/P&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;Program symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program symbols are for values from the ABAP print program.&lt;/P&gt;&lt;P&gt;For example, &amp;amp;VBDPA-NETWR(11)&amp;amp; in SAPscript code represents the value of the ABAP field VBDPA-NETWR, but as text (to be printable) and restricted to 11 characters.&lt;/P&gt;&lt;P&gt;Such values are not explicitly passed by the print program.  A side effect of some of the SAPscript-related function calls that a print program makes seems to be that all the ABAP fields and their contents (as they are at that moment) become available for SAPscript-symbol use.&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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 15:18:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T15:18:43Z</dc:date>
    <item>
      <title>pls tell difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074458#M429903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are the differences between program symbols and standard symbols &lt;/P&gt;&lt;P&gt;and text symbols in the script . how they are useful in script.pls tell briefly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074458#M429903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: pls tell difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074459#M429904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPscript symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overview&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;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;P&gt;*	User: &amp;amp;SYST-UNAME&amp;amp;&lt;/P&gt;&lt;P&gt;*	Page &amp;amp;PAGE&amp;amp; of &amp;amp;SAPSCRIPT-FORMPAGES(C3)&amp;amp;&lt;/P&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;Program symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program symbols are for values from the ABAP print program.&lt;/P&gt;&lt;P&gt;For example, &amp;amp;VBDPA-NETWR(11)&amp;amp; in SAPscript code represents the value of the ABAP field VBDPA-NETWR, but as text (to be printable) and restricted to 11 characters.&lt;/P&gt;&lt;P&gt;Such values are not explicitly passed by the print program.  A side effect of some of the SAPscript-related function calls that a print program makes seems to be that all the ABAP fields and their contents (as they are at that moment) become available for SAPscript-symbol use.&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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074459#M429904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: pls tell difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074460#M429905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPscript recognizes four different kinds of symbols: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System symbols &lt;/P&gt;&lt;P&gt;Standard symbols &lt;/P&gt;&lt;P&gt;Program symbols &lt;/P&gt;&lt;P&gt;Text symbols. &lt;/P&gt;&lt;P&gt;The main difference between these is the source of their values. SAPscript provides values for the system symbols. Standard symbols and their values are defined in the TTDTG table. Program symbols represent data supplied by the program that is currently executing. The values for text symbols come either from control commands in the text itself or are supplied dynamically by the Include function in the text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPscript automatically recognizes the type of a symbol. First of all, it checks whether the symbol is a system symbol. If not, then it checks whether the symbol name is defined in the data area of the calling program. In this case, it is a program symbol. Otherwise, SAPscript reads table TTDTG. If the symbol is found in this table, then it is a standard symbol. If a symbol is neither a system symbol nor a program symbol nor a standard symbol, then it is a text symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pls-tell-difference/m-p/2074460#M429905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:42:45Z</dc:date>
    </item>
  </channel>
</rss>

