‎2007 Dec 20 1:23 PM
Hi Friends..
How to assign Default values for parameters..
I need to initilize value to 0.
How to slove it ?
Thanks in advance.......
‎2007 Dec 20 1:28 PM
Hi,
You can do as below :
tables : bsis.
parameters : sp_buzei like bsis-buzei default '0'.
Now the default for parameter sp_buzei is 0.
or if you want at runtime to zero.
you can do at initialization event.
INITIALIZATION.
sp_buzei = 0.
THANKS,
SRIRAM PONNA.
‎2007 Dec 20 1:28 PM
Hi,
just copy paste this code, activate it and run.
parameters: a(3) type c default '100'.
output will be a by default 100.
ie, a 100 (box).
hope this helps.
‎2007 Dec 20 1:36 PM
Hi,
REPORT ZSDN.
PARAMETERS: P1(10) TYPE n default '1234'.
INITIALIZATION.
CLEAR P1.
START-OF-SELECTION.
WRITE: / P1.
- Selvapandian
‎2007 Dec 20 2:59 PM
Hi,
As per my knowledge,you cant put null value or blank value i.e 0 for integer vaiables or space for characters.
So you can declare as char variable you can place 0 in that text box as shown below.
but for interger its impossible.
parameters:p_1(10) type c default '0'.
parameters:p_2 type I default '0'.
you check both these statements and you can get some idea.
Regds
Sivaparvathi
Please reward points if helpful..
‎2007 Dec 20 3:05 PM
Hi Ram,
Use
PARAMETERS : var(3) TYPE c DEFAULT '100',
var1 TYPE i DEFAULT 100.
Regards,
Chandru
‎2007 Dec 20 3:27 PM