<?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 Coding in Call function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379791#M1041999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on ur rquirement whether to hard code or not. Maximum we should try to avoid hardcoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moroever in call function , if you want to pass a structure the it shouldn't be in single quotes. It should be kept open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Ravi Amistapur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2008 07:33:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-20T07:33:20Z</dc:date>
    <item>
      <title>Hard Coding in Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379788#M1041996</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;   In a call function statement if we hardcode the parameter values, whether it will be a hard coding?&lt;/P&gt;&lt;P&gt;It should be avoided are not? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION ' REUSE_ALV_GRID_DISPLAY '&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;        STRUCTURE_NAME = &lt;U&gt;' MARA '&lt;/U&gt;&lt;/P&gt;&lt;P&gt;        ....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this &lt;U&gt;' MARA '&lt;/U&gt; is a hardcode or not? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379788#M1041996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coding in Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379789#M1041997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This would NOT mean as hard coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Bcos it is the format in which we want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Hardcoding is hardcoding of variable values / business parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. if company code is 1000, and if we use this '1000'&lt;/P&gt;&lt;P&gt;directly in our code, then it is called hardcoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another eg. would be of a particular material number. If&lt;/P&gt;&lt;P&gt;we directly use that material number in our variable, then&lt;/P&gt;&lt;P&gt;it is hardcoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379789#M1041997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coding in Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379790#M1041998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is Hardcoding, you can avoid doing this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: STR TYPE  DD02L-TABNAME .

STR = 'MARA'.

CALL FUNCTION ' REUSE_ALV_GRID_DISPLAY '
EXPORTING
STRUCTURE_NAME = STR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379790#M1041998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coding in Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379791#M1041999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on ur rquirement whether to hard code or not. Maximum we should try to avoid hardcoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moroever in call function , if you want to pass a structure the it shouldn't be in single quotes. It should be kept open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Ravi Amistapur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379791#M1041999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coding in Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379792#M1042000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hard coding means .....I will explain in your case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If suppose you expect the structure name to be more than one and anything may come in that place and if you are giving one value only among a set of values, Then we can say that it is hard coded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in your case the structure name is only MARA then you can give it directly as you mentioned in the code above. This is not considered as hard coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-coding-in-call-function/m-p/4379792#M1042000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:36:22Z</dc:date>
    </item>
  </channel>
</rss>

