How to calculate current sale price like VA01
Hi,
I am developing one report, in which I am showing open sales order.
Now, I wanted to calculate the current sales price from pricing procedures and conditions. Means I need the current sales price of the Item, like I am creating the new sales order today,
Client wanted the difference between the sales order price and the current price.
How can I get the current sales price, any Function Module for that?? Or I have to manually take all prices from condition tables and KONP, and calculate?
I need a Function Module instead to code like..........
Standard SAP pricing is try to get the price from top to down pricing hierarchy, if 1st level not find, then base on the combination of next level, try to get it,
if no found, just keep going until reach the last pricing Level ( if found on any level then it will skip & pick up that price )
For example
ZPR0 has 3 Level
Sales Org/DC/Currency/Customer/Material/Stor.Location
Sales Org/DC/Currency/Customer/Material
Sales Org/DC/Currency/Material
If the combination of 1st level no price there, there it will go to the 2nd level until it reach the end.
Thanks,
Chetan Shah
Hi,
The Procedure for calculating MAP is :-
Case 1 :- PO at different price
If in Material Master your MAP is 0.8GBP & closing stock of 30Nos, value is 24GBP
In PO if the price is 0.9GBP & qty is 10nos, then after Goods Receipt Total Value of the GR i.e. Qty * Price + any other delivery cost will be added to the material stock value. Qty is also updated. New Total Value / New Stock Qty will be MAP.
In this case Qty received 10 & price is 0.9 that means value would be 9GBP.
Total Value becomes 24GBP (Present Stock) + 9GBP (Goods Receipt) = 33GBP
Total Qty becomes 30Nos + 10Nos (Goods Receipt) = 40Nos
MAP becomes = 33GBP / 44Nos = 0.75
Case 2 : Invoice Posting (MIRO) at different price than PO
While doing MIRO is we post at different price system will check whether sufficient stock posted in GR is available. In the above case it is 10Nos,
If it is there, then the above logic as in case 1 will take place
If not available, to the extent of stock availability system will post the different value & adjust MAP & remaining is posted to Price Difference Account.
In your case it would be like this :
1. MAP 0.8 for 30Nos (Value would be 24GBP)
2. Invoice Posting 1.74GBP for 1No. That means value would be 24GBP + 1.74GBP = 25.74GBP
Qty would be 30+1 = 40
MAP = 25.74 / 40 = 0.64GBP
Hope this clarifies your doubt
regards,
JP
Similar Messages
-
HOW TO CALCULATE NET SALES AND CONTRACT PRICE?
Dear experts,
I have the requirement of sales price report
the report layout should be
Prod descr material Number Contract type contrcat name rebate net sales contract price units
we have the master data information is reside already in multiprovider and transaction information how to calculate in frond end ?
for sales pricing report how to manipulate teh net sales and contract price
value?
any standard formulaes is there?
plz suggest me
regardsHi,
For quick and best response unless someone answer's in this forum, post your question in SAP Community Network Forums » SAP Solutions » ERP - Sales and Distribution (SD) General or something related to your question.
Check this link if it helps -
http://help.sap.com/saphelp_46c/helpdata/en/93/74353e546011d1a7020000e829fd11/frameset.htm
Thanks,
Shambhu. -
How to calculate moving average price(MAP) when price variance in IV
Hi All,
My current stock for a material is 39 and MAP is 0.8 GBP.
A purchase order is created for the material for a quantity of 1 at price of 0.8 GBP per unit.
Invoice is posted for the above PO at price of 1.74 GBP.
What will be the new MAP for the material now??How to calculate MAP when there is a price variance in Invoice?
Please suggest ASAP.Hi,
The Procedure for calculating MAP is :-
Case 1 :- PO at different price
If in Material Master your MAP is 0.8GBP & closing stock of 30Nos, value is 24GBP
In PO if the price is 0.9GBP & qty is 10nos, then after Goods Receipt Total Value of the GR i.e. Qty * Price + any other delivery cost will be added to the material stock value. Qty is also updated. New Total Value / New Stock Qty will be MAP.
In this case Qty received 10 & price is 0.9 that means value would be 9GBP.
Total Value becomes 24GBP (Present Stock) + 9GBP (Goods Receipt) = 33GBP
Total Qty becomes 30Nos + 10Nos (Goods Receipt) = 40Nos
MAP becomes = 33GBP / 44Nos = 0.75
Case 2 : Invoice Posting (MIRO) at different price than PO
While doing MIRO is we post at different price system will check whether sufficient stock posted in GR is available. In the above case it is 10Nos,
If it is there, then the above logic as in case 1 will take place
If not available, to the extent of stock availability system will post the different value & adjust MAP & remaining is posted to Price Difference Account.
In your case it would be like this :
1. MAP 0.8 for 30Nos (Value would be 24GBP)
2. Invoice Posting 1.74GBP for 1No. That means value would be 24GBP + 1.74GBP = 25.74GBP
Qty would be 30+1 = 40
MAP = 25.74 / 40 = 0.64GBP
Hope this clarifies your doubt
regards,
JP -
MDX - how to calculate the sales between a certain period and the currentmember with a max date
Hi all,
1)I need to calculate the sales between W1 and the currentmember, but the max date should be W20. How can I solve this in MDX?
MEMBER [Measures].[Q1 act.period to date sales] AS
Sum(
[Date invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[1]
[Date invoice].[Bonus calendar - Week].Currentmember
*[CurrentSalesPeriod]
,[Measures].[Sales amount]
This is the measure I have, I need to add the max date is W20.
2)Also, when I calculate the sales between [Date invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[40] and the currentmember, for example being [Date invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[20],
he calculated the sales between this period. However, in theory this is not possible because W20 < 40. Is there any way I can put a constraint on this that he only calculates the sales if the currentmember is > the start period?
Thanks in advance!Y, you can put a check on to determine if currentmember > start period.
Firstly, your period keys are composite of year and period (indicated by the two ampersands in the fully qualified date above). If your period keys were non-composite (eg 201501) it would be a simple matter of
IIF([Date invoice].[Bonus calendar - Week].Currentmember.properties("key") > [Date
invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[1].properties("key"),[Measures].[Sales
amount],null)
There are advantages of having two period attributes on the dimension, one with a fully unique
key and the other with just the period of fy, but that's digressing.
With your composite keys, you could use a calc like the following for the SUM()
Sum(
[Date invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[1]
[Date invoice].[Bonus calendar - Week].Currentmember
*[CurrentSalesPeriod]
,IIF([Date
invoice].[Bonus calendar - Week].Currentmember.parent.properties("key") +[Date
invoice].[Bonus calendar - Week].Currentmember.properties("key") > [Date
invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[1].parent.properties("key")+[Date
invoice].[Bonus calendar - Week].[Bonus week of year].&[2015]&[1].properties("key"),[Measures].[Sales
amount],null))
Richard -
How SBO handles a Sale Price for a customer?
Hi,
I know that SBO has list prices, special prices per customer, volume discount prices, season temporary discounts, etc. How these are handled?, I know that first SBO looks for a item special price for the customer, but after that is not clear to me what SBO does, Does SBO Looks for a volume discount or a Item Group Discount?, What are the priorities?
Does anyone knows where I can find a work flow diagram or a step by step guide that shows the way the sale prices are handled in SBO?
ThanksThis is from the Help in SBO, hope this explains.
Automatic Price Calculation
When you enter a business transaction, such as an outgoing invoice or a purchase order, the system calculates the price for an item automatically. The system proceeds as follows here:
The system first checks whether a special price has been defined for the item for this particular business partner. This special price could also be based on a particular date or quantity.
If no special price has been defined, the system checks whether a discount group has been defined for the business partner that can be applied to the item.
If no special price has been defined, the system checks whether a special price has been defined for the item (for the price list entered in the master record of the business partner), which once again can be based on a particular date or quantity.
If no special price has been defined, the system copies the price for the item from the price list entered in the master record of the business partner.
If a discount has been granted because of a special price, the discount is indicated in the detailed information of a line in the purchasing or sales document in the Discount % field. -
How to get the sales price of sales SET
Hi,
I want to get the sales price of a sales set, is ther any fm bapi our class to doe that?
thanzs in advanced to all
JaimeProblem Solved
-
How to calculate moving average price?
hi,
i need someone to explain to me how to calculate moving average priceHi,
Follow the Link,
Re: moving average price -
How to know Last Sales Price?
Hi all,
My requirement is, at the time raising SO, I want to know the last sale price of the item for the customer to whom I'm raising SO.
Is it possible in SAP B1?
Rgds,
BalajiDear Mr. Sridharan,
As per your advise, I tried but I didn't get any details of my last sales price. In the help file, it says that if we upgrade the package to 2007 then we can see the last price details. Is it so? If not, please advise if any other settings to be done to get the last price.
Rgds,
Balaji -
How to calculate actual activity price using cost center balance
I have a problem,the case is that: i have two pro.order. orderA settlement to cost center M; orderB is a standard pro.ord,and the work center of orderB link to cost center M. when i calculate the actual activity revaluation.the activity price update the PRO.ordA and B,and the cost center is zero.
when i settlement the order A,the cost center M is not balance,so i must calculate the actual activity revaluation again.
now,i want to calculate the actual activity revaluation from the cost center's balance,not the Dredit balance.so how can i calculate the actual activity revaluationdid you also assigned the cost centre to splitting structure?
what is not working? the cost are equally distributed on both activities? -
Rolliing backword window. How to calculate and get op like this
I have date as below
with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
select *
from abc
USERID CLO_ID C_DATE ILO_ID I_DATE
1 11 05/01/2009 00:00:00 216 06/01/2009 00:00:00
1 11 05/01/2009 00:00:00 215 05/01/2009 00:00:00
1 11 05/01/2009 00:00:00 214 04/01/2009 00:00:00
1 11 05/01/2009 00:00:00 213 04/01/2009 00:00:00
1 11 05/01/2009 00:00:00 212 03/01/2009 00:00:00
1 11 05/01/2009 00:00:00 211 02/01/2009 00:00:00
Now i want to calculate rolling backword frequency of each ilo id and output should come like as based Frequency winodw
e.g. if frequency window is 2 then
USERID CLO_ID C_DATE ILO_ID I_DATE FREQUENCY
1 11 05/01/2009 00:00:00 216 06/01/2009 00:00:00 2
1 11 05/01/2009 00:00:00 215 05/01/2009 00:00:00 3
1 11 05/01/2009 00:00:00 214 04/01/2009 00:00:00 3
1 11 05/01/2009 00:00:00 213 04/01/2009 00:00:00 2
1 11 05/01/2009 00:00:00 212 03/01/2009 00:00:00 2
1 11 05/01/2009 00:00:00 211 02/01/2009 00:00:00 1
1. For each ILO ID, go back number od days given as Frequency window (in our case its 2)
2. calculate the number of ilo_id in that range
3. number of ilo_id is the frequency of that ilo_idHow can i achieve this.
Edited by: Kuldeep2 on Sep 29, 2010 2:30 AM
Edited by: Kuldeep2 on Sep 29, 2010 2:33 AMUse analytic COUNT:
variable frequency number
exec :frequency := 2;
with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
select abc.*,
count(ilo_id) over(order by i_date range between :frequency - 1 preceding and current row) cnt
from abc
order by i_date desc
USERID CLO_ID C_DATE ILO_ID I_DATE CNT
1 11 05-JAN-09 216 06-JAN-09 2
1 11 05-JAN-09 215 05-JAN-09 3
1 11 05-JAN-09 214 04-JAN-09 3
1 11 05-JAN-09 213 04-JAN-09 3
1 11 05-JAN-09 212 03-JAN-09 2
1 11 05-JAN-09 211 02-JAN-09 1
6 rows selected.
SQL> SY. -
How to calculate the sales in the last month of last year
Hi all,
I have a requirement need to implement ,
the report has three columns,
MONTH----SALES----SALES2
201201----10------------100
201202----20------------100
201203----30------------100
201204----40------------100
201205----50------------100
The Sales2 is the sales of last month of last year, that is sales in 201112, value is 100.
How to realize this requirement ?
thank you in advance!!!sorry,
I think you maybe not understand my requirement.
What I want to implement as follow,
MONTH----SALES----SALES2
201201----10------------100 (This is 201112's Sales)
201202----20------------100 (This is 201112's Sales)
201203----30------------100 (This is 201112's Sales)
201204----40------------100 (This is 201112's Sales)
201205----50------------100 (This is 201112's Sales)
201206----60------------100 (This is 201112's Sales)
If I set SALES2 =AGO(SALES,MONTH, <number of period>)
how can I set <number of period> ?
201201 should mapping to 201112
201202 also mapping to 201112
201203 also mapping to 201112
201204 also mapping to 201112
201205 also mapping to 201112
201206 also mapping to 201112 -
How to calculate current time in mp3 player.
Hello friends
i am developing a small mp3 player in flex3.it is working fine but i need to find current time for its slider movement.i already calculated th length of song .but could not calculate the current time so that i can move pthumb of slider for my song.
i know its very simple but i m not getting any clue. so please help me out.
Thanks and regards
vineet oshomathsssss
http://www.mattlefevre.com/viewExample.php?tut=flex&proj=Basic%20MP3%20Player -
How can calculate tatal price (sales price + Tax)?
Hi,
I set the pricing procedure and result of this can be appear in the net value as follow:
Net Value = Sales Price - Discount.
But I defined tax condition type that system calculated but it did not show in the sales order screen.
I know , I can not see tax in the net value , but I want to know:
1- How can I see the result of all Tax condition in the sales order?
2- Is it tax filed in the sales order?(I can not find it yet)
3- How I can have total price in the sales order, because I want to create invoice in VF01?
4- Can I have total price (Sales price - Discount + Tax) in the VF01?
Thanks a lot.Maintain Tax Condition Type as statistical in the Pricing Procedure.You will get Tax value in the Tax Tab at Item Level.
Also maintain Total Price at a new step after all the Condition Types so that you will get the Total Value at Sales Order Level.While creating Invoice ,you will get Total Price through Copy Control.
Best Regards,
Ankur -
How to show current year and last year sales in a WEBI Report
Hi Guys
How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
ThanksIf you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Query 2:
objects: Year, Sales ... etc.
filters: New Object Last Year Equal to '1.Prompt Year'
Then in your report you can drag each object on their respective columns.
If you don't want to use two distinct queries, use one like this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Or
New Object Last Year Equal to '1.Prompt Year'
Edited by: PadawanGirl on Jun 23, 2011 6:28 PM -
How to calculate cost(COGS) in Sales from project
Dear all,
I have a situation like this:
My customer do not emplement PS(project system) and when managing sales from project, i don't know how to calculate cost of good sold for the service line.
Each project (contruction site; building, ....), I use 1 material master as service item to manage. while project excecution, we issue material; collect labor cost; cost of external service, so on.... total up to COGS. but i don't know how to get this one in Sales order. Could you give me some suggestions?
thanks!Dear,
You need to create all these activities ( LABOUR CCOST/ COST OSFG EXTERNAL SERVICES)as Service Material and then put it into S.O. as Service Item and Bill the same.
Regards
AJIT K SINGH
HAPPY TO HELP U
Maybe you are looking for
-
ST.Line Mid month dep Key
Guys, I need to configure a st.line mid month depreciation key for our 39 year building asset for area AMT & ACE, The standard key ACM is not producing the correct calculation.If I assign this key the following calculation is coming up , APC=26.171
-
Corrupt .lvproj when running on a virtual machine...
Hello, I'm writing to let you all know that if you run LV 2009 on a Windows running in a VirtualBox virtual machine and save an .lvproj file to a shared folder (a folder on the host OS shared with the virtual OS) then LV corrupts the .lvproj. However
-
Searching for an entry in a file that contains 2 words or more...
Hey :) I created a Binary Search Tree that would hold a list of words located in a .txt file. So, basically, the objective of the program is to search through a typed up document for the words in the search tree, and if the word is found, return it t
-
Safari crashing often, mostly when idle
Hi. Since the Safari 5 update, my safari is crashing often. I notice it especially when Safari is idle. I've read the forum posts here so I have tried a lot to narrow down the problem, without any luck. So far I: reinstalled Safari (after deleting pl
-
Process order SLOC maintenance error message
Good Day SAP expert! Previously when we were in SAP4.5, when an SLOC is manually assigned to a component inside the process order, we get a warning message if the material is not yet maintained in the SLOC. In ECC, we get an error message that the SL