cancel
Showing results for 
Search instead for 
Did you mean: 

Display Blank (Currency Field) script output

Former Member
0 Kudos

Hi All,

I am new to SAP ABAP.I am stuck with some small requirement.

Could anybody tell me how to display blank in a currency field in SAP script output?

By default currency field is having value 0.00 if there is no value...here i want to display blank instead of 0.00 in script output.in my case i am having 0.00 value.

Please help me to resolve this issue.

Thanks in advance.

-Simpol

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think addition of I at the end like

¤cy(I)&



&KNA1-UMSAT& -> 0,00
&KNA1-UMSAT(I)& ->

will help u....

Reward if ur problem is solved.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use addition <b>(I)</b> with your variable.

The option I can be use be used to suppress the output of symbols which contain inital value.

<b>Syntax:

-


</b>

&Symbol(I)&

Assuming KNA1-UMSAT contains the value 0.

&KNA1-UMSAT&         -->     0.00
&KNA1-UMSAT(I)&      -->   

If the field contains an amount other than 0, this value will be output in the normal way,

&KNA1-UMSAT&         -->    100.00
&KNA1-UMSAT(I)&      -->    100.00

Let me know if you need any other information.

Regards,

RS

Former Member
0 Kudos

Thanks Ramesh & RS,

Its works fine..but finally functional consultant said not to display blank instead of 0.00...

Thanks a lot for all your replies.

Thanks & Regards,

-Simpol

Former Member
0 Kudos

U need to go for the (I) option.

This options supresses the initial values...

for example..

<b>&KNA1-UMSAT& -> 0,00

&KNA1-UMSAT(I)& -></b>

hope it solves ur problem.

U can have another option (Z) option..

like <b>&symbol(Z)& </b>

for example

<b>&DAY& -> 01

&DAY(Z)& -> 1 .</b>

reward points if it helps u...

sai ramesh