Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg: Quantity field taking as decimal values

Former Member
0 Likes
826

Dear Experts

In the Bapi BAPI_SALESORDER_SIMULATE the structure BAPIITEMIN contains a field Req_qty that has the data element WMENGC which is taking the input with 3 decimal points even though the domain doesnt contains any decimals, because of this im facing the problem while giving the input.

Is there any functional requirement to avoid that quantity field taking those 3 decimals

eg: Original Value: 1000

Input Value(Converted Value) : 1.000

Kindly suggest me a solution to sort out the issue.

Regards

Arun.P

Dear Experts

In the Bapi BAPI_SALESORDER_SIMULATE the structure BAPIITEMIN contains a field Req_qty that has the data element WMENGC which is taking the input with 3 decimal points even though the domain doesnt contains any decimals, because of this im facing the problem while giving the input.

Is there any functional requirement to avoid that quantity field taking those 3 decimals

eg: Original Value: 1000

Input Value(Converted Value) : 1.000

Kindly suggest me a solution to sort out the issue.

Regards

Arun.P

3 REPLIES 3
Read only

Former Member
0 Likes
726

multiply your original value with 1000 before giving it to the bapi?

Yeah sure i know understanding would help you more, but still even this scrapband-method should help out.

Read only

0 Likes
726

Hi Florian

Thank you for the reply

i tried it already, but is there any standard way to handle this?

Regards

Arun.P

Read only

Former Member
0 Likes
726

well i suspect that this bapi also has a currency field, which you should fill.

If he knows the currency he should be able to find out how much decimals there are customized for this currency, and then probably he will do it right.

oh lol you are talking of quantities and not values... sorry forget about my comment...

Edited by: Florian Kemmer on Jul 22, 2010 2:37 PM