<?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: Hard Code Text - Constant vs Text Element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862069#M1321672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Keep it as a constant and not a text element.&lt;/P&gt;&lt;P&gt;This is because if your program is translated in some language then the text element value will change for that language and will not remain same as INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although in this case INT does not have any specific meaning so it might remain the same in all langugages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So declare it as a constant only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 06:46:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-27T06:46:37Z</dc:date>
    <item>
      <title>Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862068#M1321671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below code u2018INTu2019 is a hard coded text. Whether this need to be modified as u2018CONSTANTu2019 or u2018Text Elementu2019. &lt;/P&gt;&lt;P&gt;What is the difference between those?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsconn01 WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;                WITH output = ' '&lt;/P&gt;&lt;P&gt;                AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862068#M1321671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862069#M1321672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Keep it as a constant and not a text element.&lt;/P&gt;&lt;P&gt;This is because if your program is translated in some language then the text element value will change for that language and will not remain same as INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although in this case INT does not have any specific meaning so it might remain the same in all langugages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So declare it as a constant only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862069#M1321672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T06:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862070#M1321673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    It should be CONSTANT, as the value will remain same in all the languages.&lt;/P&gt;&lt;P&gt; Text elements are needed if it transported to other system with different language or executed in other language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862070#M1321673</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-07-27T06:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862071#M1321674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically, constants will be a safe bet for you in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants can be declared in your main program, and all includes / subroutines will automatically get access to the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, text-elements will typically be accessed from within the main program and won't be accessible from the include programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, constants will remain the same irrespective of the system language, while the text elements will be vulnerable to any language changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear! Do revert back if you need anything else!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shailesh.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Always provide feedback for helpful answers!&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862071#M1321674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T06:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862072#M1321675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai ,&lt;/P&gt;&lt;P&gt;constant is a constant value for the program&lt;/P&gt;&lt;P&gt;where as if u maintian as text elements u can translate in other languages where as onstants cannot , so maintian as constant and use it&lt;/P&gt;&lt;P&gt;m.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862072#M1321675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T06:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Code Text - Constant vs Text Element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862073#M1321676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Viji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ever you are using FM or Submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Import paramater field type should match to passing field types other wise the PGm goes dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to skip dump we use constants or Text elemets ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TExt elements are replicate of SY-TITLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while doing Code inspector the Consatnts or Hard code values show as errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 06:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-text-constant-vs-text-element/m-p/5862073#M1321676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T06:48:22Z</dc:date>
    </item>
  </channel>
</rss>

