cancel
Showing results for 
Search instead for 
Did you mean: 

Percentage field in Adobe forms

Faaiez
Product and Topic Expert
Product and Topic Expert
0 Kudos
3,276

Hi

I have a requirement to display a percentage field with 2 decimal places in an Adobe form e.g. 75.00%.

The field has been declared as type ANZHL (DEC Length=7 Decimals=2) in a data dictionary structure.

When debugging the controlling program and the actual function module generated for the form itself the contents of the field is 75.00.

In the layout of the form the field has been created as a Decimal field with Display pattern and Data pattern of num{zzzz9.zz%}.

However, when the form is previewed or printed the field is displayed as 7500%.

Does anyone have any idea how to fix this?

Thanks

View Entire Topic

Hello

I know this is quite old topic, but for future reference another solution is to use '%' in the pattern.

For example:

you have decimal value 75.00,

     - when using pattern num{zz.99%}, it will output 7500%

     - when using pattern num{zz.99 '%'}, it will output % as a string, and the whole output will be 75.00 %

So in second case you don't need any extra (floating or text) field to have percentage in.

Former Member
0 Kudos

I just wanted to say that the putting the percent sign in quotes '%' works exactly like Space One said... That solved my issue!

saranyaharik
Participant
0 Kudos

This works correct. Thanks 🙂