<?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: No default value for Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923729#M383580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can not get the 0 as a Default value in the selection screen because the data type for this KKBC-VALUTYP is NUMC, so we can not get the 0 as a first charecter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 12:30:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T12:30:55Z</dc:date>
    <item>
      <title>No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923724#M383575</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 SAP 5.0, I have the following statement in one program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P_VALUT LIKE KKBC-VALUTYP OBLIGATORY DEFAULT 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is, the parameters is not filled with the default value provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me why this happens...and what is the work around for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in anticipation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923724#M383575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923725#M383576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS P_VALUT LIKE KKBC-VALUTYP OBLIGATORY DEFAULT &amp;lt;b&amp;gt;'0'&amp;lt;/b&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923725#M383576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923726#M383577</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;I think it wont accept zero  as default value  you can use 1 as default&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923726#M383577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923727#M383578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KKBC-VALUTYP  is a numeric. As numeric are also char type only the difference is it accepts digits..so use single quotes..as ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DEFAULT ' 0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923727#M383578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923728#M383579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default value g should be a literal, since the value is placed in the parameter p so early in the SUBMIT sel statement that a field g would not actually have a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_VALUT(1) type c  default '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: NUMBER(4) TYPE P DEFAULT 999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: NUMBER1(4) TYPE P DECIMALS 2 DEFAULT '123.45'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are referring to a numc data type which will not hold default value 0 .&lt;/P&gt;&lt;P&gt;&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923728#M383579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923729#M383580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can not get the 0 as a Default value in the selection screen because the data type for this KKBC-VALUTYP is NUMC, so we can not get the 0 as a first charecter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923729#M383580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923730#M383581</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;As this is of type MUNC for blank or '0' it will give only space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can give that by using C.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameter: p_typ(1) type c  default '0'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923730#M383581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923731#M383582</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;thanks a lot for ur response. &lt;/P&gt;&lt;P&gt;I need this field as an OBLIGATORY and need the default value as '0'. Even if I use as literal its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in SAP 4.6 this works well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923731#M383582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923732#M383583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deeps , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it does not accept 0 as a value , even if you enter 0 in the parameter and press enter , the value disappears , so i dont think you can assign 0 as a default value for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923732#M383583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923733#M383584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I declare a field as mandatory that means the value is required in this parameter/select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this is valid when i say a legitimate value in the default section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if i say a field mandatory and put a default 0 will not be the criteria cause &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user removes the 0 and tries to process then he cannot run till a valid value is given there since u have given obligatory .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to run i need to give a value other than 0 to run it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so why do i maintain a default 0 when im not using it? i have no idea why he has to maintain this scenario.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923733#M383584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923734#M383585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see, VALUTYP is Valuation view in cost controlling. And there are three valuation views configured in system : 0, 1 and 2. The report need to be prepared for Legal valuation ( VALUYP = 0 ) by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user runs the report, by default it should run for legal valuation (0). This is the requirement. &lt;/P&gt;&lt;P&gt;We can remove the obligatory addition and set the value in initialisation. But in SAP version 4.6C the same code worked fine. But oce upgraded to 5.0 this default value is not getting populated. I would like to knw the reason if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you response....Thanks alot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923734#M383585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923735#M383586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deeps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The VALUTYP has a data type NUMC. And the initial value for Type NUMC is 0. Thats why it is not getting populated. If u populate it with the value like 1 or 2 that time it will get populated. You cannot populate selection screen 0 as default for type n. You need to type it on selection screen manually.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;PARAMETERS P_VALUT TYPE VALUTYP OBLIGATORY DEFAULT 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will clear your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923735#M383586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: No default value for Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923736#M383587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im working on 4.6c &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : P_VAULT(1) TYPE C OBLIGATORY DEFAULT '0'.
DATA : VAULT LIKE KKBC-VALUTYP.


VAULT = P_VAULT. "CONVERTING TO STD DATATYPE
WRITE:/ VAULT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when i want to run the valuation code assign the value of vault to the selection/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause for enduser we will show him a char variable to enter 0/1/2 &lt;/P&gt;&lt;P&gt;but internally we use this KKBC-VALUTYP which is NUMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see if this works for u in 5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-default-value-for-parameter/m-p/1923736#M383587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:32:20Z</dc:date>
    </item>
  </channel>
</rss>

