cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting Data

Former Member
0 Kudos

Hi All

How do i format numeric data being displayed? I need to display 2 decimal places ?

Regards

Lakshmi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can use the simple type to format the data.

Go to your local dictionary of the component and choose simple type. Create a simple type. There Go to representation tab. In the format type ####.##.

Now create a context variable and assign the type to the simple type you have created.

Kishore

Former Member
0 Kudos

My requirement, I mapped my BAPI output to a table which contains numeric values. Now from your solution it seems i need to move my data from my bapi output node to the custom node and apply ur logic. is there any other way where i can directly apply with out moving the data to the custom node

Regards

Lakshmi

Former Member
0 Kudos

Hi

There is no need to move the data to the custom node. Instead you can use supply functions to achieve your requirement. You can get more information on this from this blob.

/people/sap.user72/blog/2005/03/15/supply-functions-in-webdynpro

Kishore

Answers (0)