cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Data display format in Webdynpro

Former Member
0 Kudos

Hi,

My webdynpro table is connected to a BAPI in R3 and data is getting displayed in table columns and rows .

Data from the backend is diplayed as 589.00 but when it's getting displayed on browser it's coming as 589 only .

How can i diaplay the data browser in the same format as in backend i.e 589.00 .

Can anybody please help me out regarding this . If anybody can send the code then it will be great .

Thanks a lot .

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

jain,

you can set Format of R/3 return value.

in the component controller (controller which connects to model), get modifiable simple type and set the desired format

suppose in node Table is output of RFC and attribute Price you want to set the format.

you can refer the following code and use in controllers wdDoInit() method


IWDAttributeInfo priceinfo = wdContext.nodeTable().getNodeInfo().getAttribute("Price");
priceinfo.getModifiableSimpleType().setFormat(("#,###.00");

nikhil

Answers (3)

Answers (3)

PradeepBondla
Active Contributor
0 Kudos

Hi,

is this didnt solve your problem???

PradeeP

Former Member
0 Kudos

hi

Create a attribute and change the type is double and set the your value in the attribute.something like this

wdcontext.currentcontextelement.setattribute(parameter);

i think it will help you

Regards,

sundaresan

PradeepBondla
Active Contributor
0 Kudos

Hi Jain,

Same problem was posted some time ago....

see the solutions given in this thread

PradeeP