Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default values for parameters

Former Member
0 Likes
788

Hi Friends..

How to assign Default values for parameters..

I need to initilize value to 0.

How to slove it ?

Thanks in advance.......

6 REPLIES 6
Read only

Former Member
0 Likes
752

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.

Read only

Former Member
0 Likes
752

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.

Read only

Former Member
0 Likes
752

Hi,

REPORT ZSDN.

PARAMETERS: P1(10) TYPE n default '1234'.

INITIALIZATION.

CLEAR P1.

START-OF-SELECTION.

WRITE: / P1.

- Selvapandian

Read only

Former Member
0 Likes
752

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..

Read only

Former Member
0 Likes
752

Hi Ram,

Use

PARAMETERS : var(3) TYPE c DEFAULT '100',

var1 TYPE i DEFAULT 100.

Regards,

Chandru

Read only

0 Likes
752

parameter: pa_posnr type vbap-posnr default '0'.