cancel
Showing results for 
Search instead for 
Did you mean: 

InputField problem for negative currency value

Former Member
0 Kudos

Hi All,

I'm new to the forum and to SAP in general but I do have years of programming experience behind me. I'm working on a WebDynpro application that is monitoring promotional funds. The user at times may want to increase or decrease a fund. The initial fund value is stored in one table while all subsequent changes will be stored in another table. The user merely has to input the amount they wish to change the fund by whether it be positive or negative.

The problem is, when I input a negative value into the InputField (e.g. 25000-), my onEnter event gives me the error: "The Sign Is Invalid".

The data type is Currency and I can input negative values directly into the table using the Data Dictionary without a problem.

Any suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In WebDynpro java, InputField does not support attribute of

type java.util.Currency to be bind to it's value property..

Take attribute type as integer or double

Regards

LakshmiNarayana

Former Member
0 Kudos

My manager found a solution by which a domain of type DEC was created with output characteristic 'sign' selected. In my data dictionary, I declared my currency field as a type of that domain.

Edited by: Scott Fischer on May 9, 2008 5:29 PM

Answers (0)