Skip to Content
0
Former Member
Feb 24, 2010 at 04:05 PM

need help with htmlb:inputField and Currency format

31 Views

Hi all,

i'm looking in vain for the possibility to prepare a field with currency.

I have a local field in which an amount is available.

Unfortunately, the amount is spent but not formatted for currency.

current layout: 123456.78

requestet layout: 123.456,78

How do I get through it?

Here is my code:

DATA: ld_betrag         TYPE ZBETR.

definition: the domain of "ZBETR" = 'WRTV7'

LOOP AT.....
  ADD wa-betrag TO ld_betrag.
ENDLOOP.

The amount will be added in a loop.

<htmlb:inputField id = "betrag"
            disabled = "TRUE"
            value    = "<%= ld_betrag %>" />

Output is via a htmlb:inputField

I have the same definition for a amount field in a htmlb:tableView...

in this tableView i get the correct layout for my amount. But I haven´t give a special formatting to the tableView...

Why the BSP works differently at htmlb:inputField and htmlb:tableView

Thanks 4 help.

Regards

Markus