on 07-21-2008 12:35 PM
Hi
I am developing application for Sales Order Processing using Webdynpro Java.
I use BAPI_SALESORDER_CHANGE and I need to update Quantity field.
But when I try to give value from WebDynpro,its not updating.
In WebDynpro Quantity field having BigDecimal data type and when you check it in SAP R/3 its "QUAN".
I used following line in Viewer implementation part.
BigDecimal dec = new BigDecimal((double) 0000000000125.000);
wdContext.currentOrder_Item_InElement().setTarget_Qty(dec);
If any one knows How to assign Data Type "QUAN" from WebDynpro.
Please let me know.any help is appreciated and points will rewarded
Thanks
Sunil Pawar
Edited by: Sunil Pawar on Jul 29, 2008 12:36 PM
Hi ,
Change the Quantity Type from BigDecimal to SAP R/3 "QUAN" .
In the Properties Tab .. click on the type , now click on the "..." (extreme right) button to change the value.
In the Dictionaries , expand BAPI_SALESORDER_CHANGE and the select the data type "QUAN" and click OK.
hope this will work .
Regards,
Sunitha Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
according to me what your doing is right but why you type casting into double,
try with this
String s="125.00";
BigDecimal dec = new BigDecimal(s);
wdContext.currentOrder_Item_InElement().setTarget_Qty(dec);
Thanks,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.