<?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: On Hardcoding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972372#M948832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hard coding is nothing but....passing the value directly to the parameters of the statemtn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of passing value directly...we can first initialize the value with the variable...then that variable will assign to the parameter of the statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose we need to passed the value more than 2 or 3 times in the program...&lt;/P&gt;&lt;P&gt;in future if we want to change the value...we need to do changes explicitly in the program where exactly we passed that value...that is some what hectic..&lt;/P&gt;&lt;P&gt;so if we pass the variable...simply we can change one time at the variable value...automatically where ever this variable is using there all the places will be effected..&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;venkat n&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 03:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T03:46:50Z</dc:date>
    <item>
      <title>On Hardcoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972370#M948830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers and developers alike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for discussion pusposes, I would like your feedback on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) What is hardcoding in ABAP programming?&lt;/P&gt;&lt;P&gt;2) Why do you hardcode?&lt;/P&gt;&lt;P&gt;3) What are the disadvantages of hardcoding in ABAP?&lt;/P&gt;&lt;P&gt;4) Would elimination of hardcoding make the program run faster (see sample code below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* which would have faster runtime between the code variations?

* code 1:
if V_1 = 'A'.
  ...
elseif V_1 = 'B'.
  ...
endif.

* code 2:
constants:
  c_a type c value 'A',
  c_b type c value 'B'.

if V_1 = c_a.
  ...
elseif V_1 = c_b
  ...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Why NOT to hardcode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your inputs regarding this. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 03:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972370#M948830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T03:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: On Hardcoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972371#M948831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first code is faster. in second code  retrieving the values of c_a and c_b takes some time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally Hardcode means...assigning CONSTANT VALUES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from MARA where MATNR EQ '00000000456'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 03:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972371#M948831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: On Hardcoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972372#M948832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hard coding is nothing but....passing the value directly to the parameters of the statemtn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of passing value directly...we can first initialize the value with the variable...then that variable will assign to the parameter of the statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose we need to passed the value more than 2 or 3 times in the program...&lt;/P&gt;&lt;P&gt;in future if we want to change the value...we need to do changes explicitly in the program where exactly we passed that value...that is some what hectic..&lt;/P&gt;&lt;P&gt;so if we pass the variable...simply we can change one time at the variable value...automatically where ever this variable is using there all the places will be effected..&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;venkat n&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 03:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/on-hardcoding/m-p/3972372#M948832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T03:46:50Z</dc:date>
    </item>
  </channel>
</rss>

