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

Alternate Condition value formula routine.

former_member207153
Participant
0 Likes
1,063

Hi Gurus,

i have problem, i create one new routine for alternate condition value,

  • where komp-mglme = 175.000 (type pack dec 3).

XKWERT = 10000 (let say this is selling price amount per PC) * KOMP-MGLME.

what i get in XKWERT as 17,500,000 instead of 1,750,000. (1000 dollar more)

what happen to this logic? is it because of unit of measurement or else?

Hi Gurus,

i have problem, i create one new routine for alternate condition value,

  • where komp-mglme = 175.000 (type pack dec 3).

XKWERT = 10000 (let say this is selling price amount per PC) * KOMP-MGLME.

what i get in XKWERT as 17,500,000 instead of 1,750,000. (1000 dollar more)

what happen to this logic? is it because of unit of measurement or else?

4 REPLIES 4
Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
944

yes, it is a unit of measure...and thats how it works in SAP.

your work works fine.

even i was confused and then later on i got to know it ias absoluetly fine.

we need to divide it again by 1000 when we are retreiving the values.

Read only

SureshRa
Active Participant
0 Likes
944

Hi Rudy,

What you are getting is not merely $1000 more, but 1 million more.

I think the problem is with the condition value currency and not with the UOM related to the quantity (MGLME). Also the selling price (which you have mentioned as 10000) should be of data type curr with 2 decimals. If this is not the case, you would get the same problem. Please check.

Regards

Suresh

Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
944

you will be clarified, create a condition record in SAP and check the values, it will be multiplied by 10/100/1000 DEPENDING on the unit of measure...

Read only

0 Likes
944

Any easier way to have this calc by system automatically ? by Bapi or FM ?

in case user intend to change uom requirement.

thanks.