Application Development 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: 

displaying 0.00 on the selection screen parameter

0 Kudos

Hi Abap'ers,

Can any one help me with displaying of 0.00 on the selection screen parameter.

eg: parameters p_dmbtr type bseg-dmbtr.

i cannot able to display 0.00 when i press the enter button.

thanx in advance,

4 REPLIES 4

Former Member
0 Kudos

Hello,

Declare the data as

parameters: P_data type p decimals 2 default '7.30'.

With the specification of the built-in ABAP type p, you can use DECIMALS to define the number of decimal places dec. Without the specification of DECIMALS, the number of decimal places is 0.

Hope this helps you.

Regards,

Tarun

Former Member
0 Kudos

Hi Abhishek,

It is because <b>0.00 is an initial value</b>.

The initial values are not displayed on the screen.

It is the same for all datatypes.

PARAMETERS: p_int TYPE i DEFAULT 0.

If you want to display 0.00. The possible solution would be to declare it as a character field and convert it to bseg-dmbtr in your processing.

Regards,

Wenceslaus.

0 Kudos

Hi,

the problem i have is when i press enter at the screen, if the value is 0.00 then it vanishes.

i want to display the value of 0.00 even when i press enter,

is there any datatype i can use which might solve the problem.

thanx and regards

Abhishek

0 Kudos

Hi,

You can just declare a character field.


PARAMETERS: p_str(13) DEFAULT '0.00'.
DATA g_dmbtr LIKE bseg-dmbtr.


START-OF-SELECTION.
g_dmbtr = p_str.

Ps: Reward points if helpful.

Regards,

Wenceslaus.