I am writing a custom iview that will return information in tabular form from a R/3 Function Module.
Does any one know how:
1. To format number such that there is a comma after each hundred? I am getting back 1500.50, I want it to display as 1,500.50.
2. When text columns are displayed, they are wrapped. How can I make them not wrap.
Can I define the attributes of a table?
Here is the code I use to display the columns of my table:
colCount = 7;
AbstractDataType headerTable[] = new AbstractDataType[colCount];
headerTable[0] = new DataString(_res.getString("<b>Begin Date</b>"));
headerTable[1] = new DataString(_res.getString("<b>End Date</b>"));
headerTable[2] = new DataString(_res.getString("<b>Wages</b>"));
headerTable[3] = new DataString(_res.getString("<b>Amount of Increase</b>"));
headerTable[4] = new DataString(_res.getString("<b>Currency</b>"));
headerTable[5] = new DataString(_res.getString("<b>Annual Salary</b>"));
headerTable[6] = new DataString(_res.getString("<b>Reason</b>"));
Thanks,
Mike
1. Have a look at the class java.textNumberFormat
http://java.sun.com/j2se/1.3/docs/api/java/text/NumberFormat.html
2. Not sure
Add a comment