on 08-22-2006 12:35 PM
Hi,
I want to update a field having data type as DEC with length 11 in APO system using JCO.Whatever i give as input is not getting reflected in APO system. Instead i get some different value.
It seems that there is some data type conversion for that field..
Thanks
Archana
Hi
Can you post the source code how you set the value
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if(tableName.equals("BAPI10001LOCPRDVERS2"))
{
table.appendRow();
//System.out.println("getting inside table "+tableName);
table.setValue("SOP112","PRODUCT");
table.setValue("SCMTEST111","LOCATION");
table.setValue("1001","LOCTYPE");
table.setValue("SCMTEST111","LOCATION_INT");
table.setValue("000","PLANNING_VERSION");
table.setValue("5000","SAFETY_DAYS_SUPPLY");//this is the field having problem
table.setValue("5","SAFETY_STOCK");
table.setValue(" ","SAFTY_STOCK_CALC_METHOD");
table.setValue("5.00","OPENING_PERIOD");
table.setValue("15","FORECAST_HORIZON");
table.setValue(("20000"),"VMI_PROM_LEAD_TIME");
table.setValue("0","MINIMUM_LOT_SIZE");
table.setValue(bd1,"TARGET_DAYS_SUPPLY");
}
Hi Giri,
Thanks for the reply.
I tried this but it is not working for me.
Let me give an example :
table.setValue(new BigDecimal("5000"),"SAFETY_DAYS_SUPPLY");
If I do this, the value updated in APO is 0.03.
How this conversion occurs?? Again if I try to display
new BigDecimal("5000") on console, the result is 5000.
Archana
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.