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

Function Module for Amount calculation

mahesh_jagnani
Participant
0 Likes
1,230

Hi experts,

I have a requirement in which i have :-

Source quantity

Source Price/UOM

I have to calculate amount.

Example - Mango is 2Rupee/Gm

quantity - 35 KG

I want to calculate price in Euro.

Is there is any standard Method/FM for this.

Please help

Thanks

Mahesh

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
963

Hi,

Try with FM 'CURRENCY_CONVERT_TO_EURO'.

Thanks & Regards

Bala Krishna

Read only

Sandra_Rossi
Active Contributor
0 Likes
963

Hi,

You have first to use UNIT_CONVERSION_SIMPLE to convert the quantity from a unit of measure to another (here 35 KG, to be converted into Gm, will return 35 thousands),

then calculate rupees : 35000 * 2 -> 70000 rupees (easy )

then use CONVERT_AMOUNT_TO_CURRENCY (only available in ECC) to convert from one currency to another. You'll have to take care of the currency rate. Note that if you have to convert to or from a local currency (for instance EUR is the local currency of your company), you may use CONVERT_TO_LOCAL_CURRENCY (or CONVERT_TO_FOREIGN_CURRENCY if your company has rupees as local currency)

For more information, see [SAP Library: quantity conversions api - units of measures|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa013c493111d182b70000e829fbfe/frameset.htm ], and

Sandra

Read only

mahesh_jagnani
Participant
0 Likes
963

solved