cancel
Showing results for 
Search instead for 
Did you mean: 

Display values of type QUAN

Former Member
0 Kudos

Hello,

I am facing problem regarding display of values of type QUAN. In my internal table I have qty field whose value is populated based on some conditions. If it is not populated, it is displayed as 0.000 which is the default value. Instead of 0.000 I want it to be displayed as space.

Please help me out.

Thanks,

Tejal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

If the output is produced by smartforms, you need use following formating option for your field:


&field(I)&

.

This option suppresses display of initial values.

Former Member
0 Kudos

Thanks EVGUENY. I had no idea about this. This looks so much more elegant.

Regards,

Subramanian V.

Former Member
0 Kudos

Thanks, Subramanian.

Former Member
0 Kudos

Hi Subramanian,

Thanks for your response!

But I am not using ALV list/ALV grid. This qty I am supposed to display in smartform.

Former Member
0 Kudos

Hi,

Why don't you have a character type field for the quantity and move the quantity values into this field when they are not Zero.

Regards,

Anand Mandalika.

Former Member
0 Kudos

1) Create a new global variable in the smartform of type character of sufficient length and assign this quantity value to this character field, by creating a CODE inside the loop.

2) Display the character field.

If value is still displayed as 0.000, you can write something like this in the CODE

if v_qty is initial.
  clear v_qyt_character.
endif.

Regards,

Subramanian V.

Message was edited by: Subramanian Venkateswaran

Former Member
0 Kudos

Thanks Subramanian for a perfect answer!

Regards,

Tejal

Former Member
0 Kudos

If you are using REUSE* Function Modules, try this:

a) In fieldcatalog for the given field, put <b>no_convext = 'X'</b>.

And I almost forgot, also try this <b>no_zero = 'X'</b>.

Not sure about this one, let us know if it works though.

Regards,

Subramanian V.

Message was edited by: Subramanian Venkateswaran