cancel
Showing results for 
Search instead for 
Did you mean: 

Data Type ---QUAN

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Sunitha,

Really thanks for your reply.

Can you please explain it in more detail how can I changed Data type from big decimal to SAP R/3 QUAN.

If you have any other help link which shows changing data type in web dynpro then please do let me know.

Thanks

Sunil Pawar

Former Member
0 Kudos

Hi Sunil ,

Select the Value attribute in the context tab , and from properties tab change the type.

I have given in my previous post how to change it to QUAN.

Regards,

Sunitha

Former Member
0 Kudos

Hi Sunitha,

I tried to change type from property tab but unable to do that.

It has no effect even I clicked on it.

Regards

Sunil Pawar

PradeepBondla
Active Contributor
0 Kudos

Hi Sunil,

I think you are trying to change it from view's context structure.

go to component controller's context , then click on the attribute, go to properties tab.....

select type..... click on (...) button, you will get a pop up there you can select....

PradeeP

Former Member
0 Kudos

Hi Sunil ,

Try changing the type from Controllers context.

Regards,

Sunitha

Former Member
0 Kudos

Hi Sunitha and Pradeep,

I tried with controllers context but still unable to change the type

and it show me type as below....

com.persixxxxx.salesorder.components.model.types.Dzmeng

Regards

Sunil Pawar

Former Member
0 Kudos

Hi Sunil ,

You can select com.persixxxxx.salesorder.components.model.types.Dzmeng as type , the data type of the DZMENG in R/3 is QUAN.

Regards,

Sunitha

Answers (1)

Answers (1)

Former Member
0 Kudos

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