<?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: help-mandt declaration? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524352#M1069579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..pravin..&lt;/P&gt;&lt;P&gt;even iam using ecc.6.0.&lt;/P&gt;&lt;P&gt;here iam not getting any warning.&lt;/P&gt;&lt;P&gt;pls paste ur code here to check.&lt;/P&gt;&lt;P&gt;As above said, pls read the rules before declaring any varb in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Local Data Types in Programs
All ABAP programs can define their own data types. Within a program, procedures [Page 449]
can also define local types.
You define local data types in a program using the
TYPES &amp;lt;t&amp;gt; ... [TYPE &amp;lt;type&amp;gt;|LIKE &amp;lt;obj&amp;gt;] ...
statement. The type name &amp;lt;t&amp;gt; may be up to 30 characters long. You can use any letters, digits,
and the underscore character. Do not create a name consisting entirely of numeric characters.
You cannot use the special characters + . , : ( ) - &amp;lt; &amp;gt;. Other special characters are reserved for
internal use. You cannot use the names of the predefined ABAP types (C, D, F, I, N, P, T, X,
STRING, XSTRING) or the name of the generic type TABLE. You should not use names that are
the same as an ABAP keyword or addition. You should:
  Use names that explain the meaning of the type without the need for further comments
  Use the underscore character to separate compound words
  Always use a letter as the first character of a variable name.
You declare local data types in a program either by referring to an existing data type or
constructing a new type.
An existing type can be
  A predefined ABAP type to which you refer using the TYPE addition
  An existing local type in the program to which you refer using the TYPE addition
  The data type of a local object in the program to which you refer using the LIKE addition
  A data type in the ABAP Dictionary to which you refer using the TYPE addition. To ensure
compatibility with earlier releases, it is still possible to use the LIKE addition to refer to
database tables and flat structures in the ABAP Dictionary. However, you should use the
TYPE addition in new programs.
Known types must be visible [Page 112] at the point where you define the new type. If the
existing type is generic, you can use further additions to set the attributes of type &amp;lt;t&amp;gt; that are still
undefined.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2008 05:17:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-30T05:17:28Z</dc:date>
    <item>
      <title>help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524347#M1069574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decalred constant like this.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;constants:  help-mandt(3) VALUE '000',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is giving error as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode programs, the "-" character cannot appear in names, as it does here in the name "HELP-MANDT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall i declare it in ECC 6.0 (Unicode)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 04:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524347#M1069574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T04:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524348#M1069575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;declare it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: help_mandt(3) VALUE '000',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u cannot use '-' . u can only use '_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Padmashree RamMaghenthar on Sep 30, 2008 10:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 04:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524348#M1069575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T04:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524349#M1069576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I was trying the way you have given and it is giving a warning and not an error. Just check out once again . It is just giving a warning in ECC 6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 05:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524349#M1069576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T05:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524350#M1069577</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;Go through the ABAP documentaion, Data statement declaration rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use special characters in declaration of variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have to declare like this only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data help_mandt(3) value '000'.&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;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 05:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524350#M1069577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T05:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524351#M1069578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   '-' is used to represent table or structure fields but not for declaring variables. Use '_' instead of hyphen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 05:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524351#M1069578</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2008-09-30T05:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: help-mandt declaration?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524352#M1069579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..pravin..&lt;/P&gt;&lt;P&gt;even iam using ecc.6.0.&lt;/P&gt;&lt;P&gt;here iam not getting any warning.&lt;/P&gt;&lt;P&gt;pls paste ur code here to check.&lt;/P&gt;&lt;P&gt;As above said, pls read the rules before declaring any varb in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Local Data Types in Programs
All ABAP programs can define their own data types. Within a program, procedures [Page 449]
can also define local types.
You define local data types in a program using the
TYPES &amp;lt;t&amp;gt; ... [TYPE &amp;lt;type&amp;gt;|LIKE &amp;lt;obj&amp;gt;] ...
statement. The type name &amp;lt;t&amp;gt; may be up to 30 characters long. You can use any letters, digits,
and the underscore character. Do not create a name consisting entirely of numeric characters.
You cannot use the special characters + . , : ( ) - &amp;lt; &amp;gt;. Other special characters are reserved for
internal use. You cannot use the names of the predefined ABAP types (C, D, F, I, N, P, T, X,
STRING, XSTRING) or the name of the generic type TABLE. You should not use names that are
the same as an ABAP keyword or addition. You should:
  Use names that explain the meaning of the type without the need for further comments
  Use the underscore character to separate compound words
  Always use a letter as the first character of a variable name.
You declare local data types in a program either by referring to an existing data type or
constructing a new type.
An existing type can be
  A predefined ABAP type to which you refer using the TYPE addition
  An existing local type in the program to which you refer using the TYPE addition
  The data type of a local object in the program to which you refer using the LIKE addition
  A data type in the ABAP Dictionary to which you refer using the TYPE addition. To ensure
compatibility with earlier releases, it is still possible to use the LIKE addition to refer to
database tables and flat structures in the ABAP Dictionary. However, you should use the
TYPE addition in new programs.
Known types must be visible [Page 112] at the point where you define the new type. If the
existing type is generic, you can use further additions to set the attributes of type &amp;lt;t&amp;gt; that are still
undefined.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 05:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-mandt-declaration/m-p/4524352#M1069579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T05:17:28Z</dc:date>
    </item>
  </channel>
</rss>

