cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal Notation in Forms as per his SAP Decimal Notation

Former Member
0 Kudos

Hi,

We need to display all numeric fields in the Adobe Form as per the Decimal notation of the User in his SAP user defaults.

Also, we need to take care that the currencies have current decimal places.

Please let us know if this is achievable in Adobe Forms. Is there a way we can set the number format of a field dynamically in Adobe.

Any pointers in this regard is highly appreciated.....Thanks in Advance.,

Raghavendra

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

This can be achieved by setting the Locale to Viewer's System Locale from Object Palette. Assuming the viewer's locale on his PC and in SAP is same.

In case they are different then you need a program to get the locale from SAP for a user and then dynamically set the locale.

Answers (2)

Answers (2)

Former Member
0 Kudos

Closed

Former Member
0 Kudos

Hi Raghavendra,

to be bale to decide in your abap-printprogram, which format to use for printing, you can read the decimals and number format from customizing (or user) and then pass into form through an additional interface parameter format_string of i.e. CHAR060.

Place your format string in a hidden textfield on your form

This format string can then be used in the adobe form to format the text-field using script:

this.format.picture = your_hidden_textfield.rawValue;

we do so for date-formats and currency-formatting we read out of the country customizing.

regards

Former Member
0 Kudos

Resolved using Data format option of the UI attribute.

chintan_virani
Active Contributor
0 Kudos

Can you please elaborate more on the solution?How will Data Format, determine what is the locale of an user?!

Former Member
0 Kudos

Chintan.

Please see my Blog

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/22481

Edited by: Raghavendra Prabhu on Dec 22, 2010 11:27 AM