Last Purchase value of particular material in cube pur_c02
Dear Friends,
I have a cube PUR_C02 and i would like to get the last purchase value of any particular Material.
Can anybody help me how to get it.
Thanks with regards
Malik
Hi Malik,
You can get the last value with exception aggregation on the keyfigure you want.
For this you need to change the aggregation settings for the key figure.
Regards,
Similar Messages
-
While P.O creation material automatic capture the last Purchase value
Dear all
Please guide me for the following :
I need a scenario like while creation of new P.O if material already purchase then system automatic capture the last purchase value as per the given material....
Thanks & Regards,
NehaPrompt the last Purchase Order Price for the Material
If you want the system to take the price from the last Purchase Order, then do not maintain the conditions in the info record because it has precedence over the last PO. This means that the netprice field in the info record should be left blank.
In the case when you have already maintained the conditions in the info record (or netprice), try to delete them or make them invalid by changing the validity date.
Even though no price was maintained, the info record will still keep track of the Order price history.
To check the Order price history, go into the material info record and click Environment -> Order price history
Edited by: Sachein on Oct 20, 2011 6:54 AM -
Picking the last purchase price of the material
Hi
For the purpose of estimating the cost of material presently we are taking the cost of the material from the moving avg. price maintained in the material master.
But now the client requirement has come to take the last purchase price and the currency in which material was procured for further calculation.
Can someone please suggest me from which table will I be able to pick the last purchase price of the material and currency and use it for further calculation in estimation?
Regards,
Niraj Sikligarhi
Applied following logic and now could get the latest purchase price.
Field Field description Table / Structure
MATNR Material No. EKPO
EBELN Purchasing Document No. EKPO
NETPR Net Price EKPO
AEDAT Last changed on Date EKPO
ELIKZ Delivery completed check box EKPO
WAERS Currency EKKO
Note: The link between EKPO and EKKO Tables are EBELN and AEDAT fields.
With the material No. Purchasing documents will be sorted for that Material and all the purchasing documents will be again checked for delivery completed check, out of which the last purchasing document will be picked using changed on date and its Net Price will be picked in EKPO table. With this purchasing document no. and date, currency will be chosen from the EKKO table. This price and currency will then be displayed
Thanks all for your support.
Regards,
Niraj Sikligar -
Last Purchase order of a material
Hi All,
I have a requirement to retrieve the last/latest purchase order for a given material/plant combination. Currently I am using the following logic. Here is the pseudo code I am using.
Select EKPO records where MATNR = given material
WERKS = given material
BSTYP = 'F'
LOEKZ = space.
select EKKO records where EKKO-EBELN = EKPO-EBELN.( for all EKPO records of unique EBELN)
sort EKKO record by AEDAT DESCENDING.
read table EKKO index 1. "This is the record I need.
This logic seems to be not good. As I am reading all the purchase orders of the material for entire period which will cause more database hit and memory issue. Say if we have maintained the system for 5 years and I am reading EKPO table for a material there will be more purchase orders for this material.
Can you please suggest if there is a better logic to handle this?
Regards,
Srinivas.My approach will be to first speak with functional consultant to find what will be the most probable period in which you will find last PO for given material/plant.
For example you might get an answer that you will find last PO of given/material within last week (or last month) for most of the combination.
Once you get the period in which you will find the data, you can then construct logic as below
date : r_date type range of ekko-aedat .
fill range with last period (last week for example)
DO .
select field
from ekko inner join ekpo on ekko~ebeln = ekpo~ebeln
where ekko~BSTYP = 'F'
and ekko~LOEKZ = space.
and ekko~aedat in r_date
and ekpo~werk = given plant
and ekpo~matnr = given material
if sy-subrc = 0 .
* you got your record , sort and pick the right one
* break the loop.
else.
**Check for exceptions
* fill r_date with last to last period and so on...
endif.
ENDDO.
Now about the exceptions, there might be some NOT SO ACTIVE material/plant for which last PO was create 3 years back (for argument sake). Again here you have to ask you functional consultant if he/she really want to see that old record or NOT SO ACTIVE material. If his/her answer is yes then he/she have to live with long execution time. Otherwise logic will be not to look beyond the time limit given by you functional consultant. For example, if you do not find PO in last 1 year then stop looking.
Edited by: Pawan Kesari on Dec 11, 2009 10:35 PM
Edited by: Pawan Kesari on Dec 11, 2009 10:37 PM -
Default Purchasing value key - with NO material master & PIR
Hi,
Where do we set the default values of purchasing value key specifically for the "Number of Days for Reminder/Expediter"
in POs, when there is no material master and info record? ( These POs are done for direct consumption)
Thank you!
OwaisHi,
try following
Purchasing .value key at material group wise in customizing.
IMG-MM--Purchasing-Material master-Entry aids of items without a material master
and check following link
[http://forums.sdn.sap.com/thread.jspa?threadID=1070312]
[http://forums.sdn.sap.com/thread.jspa?threadID=1617066]
Regards
Kailas Ugale -
Highest stock value on particular date.
Hi all,
Where we can find the highest stock value for particular material for particular date .
for the insurance purpose, we want to identify on which date highest stock value is lying with us.
Thanks & Regards,
Vinay PatelHi Hareesha,
You have given me transaction code for mean stock & mean value.This is not solution for my question
total stock total value date
100 500 01.02.2007
50 300 02.02.2007
200 600 03.02.2007
225 580 04.02.2007
so here 0n 03.02.2007 its showing highest value.
Thanks & Regards,
Vinay Patel -
When i set the material master as 10 %tolerance , the system is not considering the 10% influence .or it's not getting in to the PO itself ? Why ?Where we can find the partial delivery indicator ?.Thanks for the input ..
Dear all
We need to set the Pur.value key in configuration & we need to select which Purchase Value key in material master creation.
Following field will be there in Pur.value key in customizing
Reminder 1
Reminder 2
Reminder 3
Underdel. tolerance
Overdeliv. tolerance
Shipping instructs.
Min.del.qty. %
St.del.time var
Also we can maintain the Under/overdelivery in Info-record
Regards
M.Chandra mohan -
Query to find vendor number with whom a particular item was last purchased.
Hi All,
I want to frame a SQL query to find vendor number with whom a particular item was last purchased.
I got to know that we can find this by looking at the open Purchase Order or the Material Transactions for the transaction type of ‘PO Receipt’ whichever is the latest.
Can anyone please help me in framing such query.
Regards,
ShrutiHere is a hint
Use the mtl_system_items_b table to get the inventory_item_id.
Use it in the po_lines_all table to get po_header_id
Use it in po_headers_all table to get vendor_id
Use it in po_vendors to get segment1 (i.e. vendor#)
Hope this helps,
Sandeep Gandhi -
Last Purchasing Price of Material
hii,
is there any report or txn by which i can know the last purchasing price of a particular material...
abhishek suppalI am not sure if there is a report for the same. You might have to find the latest PO for that material and look at the price.
It should not be a big deal.
Join between EKPO and EKKO should give you the required info.
Regards,
Ravi
Note : Please mark the helpful answers -
Table for Material Quantity and Value for particular month and year
Hi All
My requirement is that for a particular month and year I want to know the stock quantity and stock value for a particular material for a given plant.From which SAP table can I get this data as I want to fetch data for my Y report?
Regards
Satish KumarHi,
You can use MB5B table as suggested earlier.also you can use:
MBEW-VMKUM --> stock for previous month period
MBEW-VJKUM --> stock for previous year period
PLease view these links which migh tbe helpful to you:
http://help.sap.com/saphelp_47x200/helpdata/en/39/55fee3bc6111d4b3960050dadf0791/content.htm
TableStock
Thanks
Nisha -
Last purchase order and goods receipt for material
Hello to everyone,
is there any standard report where I can see the last purchase order and goods receipt for a material?
RegardsHi,
Latest PO you can get from ME2M, by giving input as material and scope of list as best.
Latest GR date can be get from MB51, by giving input as Material and movement type as 101.
Regards,
Prabu -
Restricting Purchase order for a particular material type
Hi All,
How do I restrict a purchase order document type to be created for a particular material type.
For eample PO document type NB should allow to create for materials with the material type ROH only and restrict the other material types by issuing an error.
Many thanks in advance.
Regard,
RaviHi Ravi,
This is not directly achievable in std. You will have to implement the check in a user exit, e.g. the BAdI ME_PROCESS_PO_CUST method PROCESS_ITEM.
But why this strange reqmt? Maybe there's another solution whuch would keep you in std?
BR
Raf -
Purchase value for a particular document type of po
I need Purchase value for a particular document type of po
Hi Thanks for the reply. Sum of net order value will give right. Any selections we have to do at headr level ? Does it hold good for SA's also ? Please help
-
Hi all,
I have A issue for creating Z report based on material stocks in plant/storage location/BUM/Cur/stock/stock value/ inspection/ Inspection value/manufacture part/ Manufacturer name/ Purchse price/ Currency.
This is the table description the client need. I have prepared the functional Specification for this issue.
I am unable to give the detials in FS like how to pick up the last PO Purchase price for the particular material in FS logic flow. All the SAP price is based on Moving average price.
In EKPO table we will get the list of PO prices but how can I give logic that particular material should pick last PO price?
Pls give solution for this issue.
Thanks in Advance,
GANESHHi Ganesh,
Get the List of POs from EKPO Table then arrange the POs list in ascending or descending by AEDAT-EKPO (last Change date). Then accordingly pick the NETPR-EKPO.
Thanks,
Neeraj
Edited by: Neeraj Saini on May 25, 2011 8:49 AM -
Price from last purchase order
Hi Experts,
I have created info record xxx with some values for XX Vendor and XX Material. Then I have created PO with for same material and same vendor combination with different values and then I am creating PO for same material and same vendor combination but I am getting default price from info record values not last from PO Price. My client wants last PO price default at the time of PO creation.
Pease advice me how can I solve this problem.
Thanks in advance,
ChandhuHello
You wered create the Info record means , system will have value PB00 in Inforecord. so when you create the PO then system fetch the PB00 value from Inforecord.
The Last purchase order saved in Inforecord, but it will not fetch the last PO value for new PO.
If you want to Last inforecord price in New PO, then do not create Inforecord for material and vendor combination,
Ex: for fresh material and New vendor create PO, then system automaticaly creates the Inforecord in background,( At Purchase org level.) then it save the last PO.
When you try to create New PO for same combination then system will fetch the data from last PO. here in PO you will get PBXX ,instead of PB00.
Regards
Mahesh Naik.
Maybe you are looking for
-
Why does it say that the updated version of Firefox (which I am trying to download) is not compatible with my operating system when I have Mac OS X 10.5.8? I had an older version of Firefox and it said I needed to update it but that was the message t
-
Hi, With the new FormattedTextView in 2004s one will be able to render xhtml compliant rich test in Webdynpro. This however only covers the rednering of rich text. There still does not seem to be a rich text editor control available for webdynpro app
-
Dear Experts, Please suggest me where can i see the change document generated while doing change in Process Order. Regards Sumit Kalyan
-
Reading or opening or unzipping .zipx files
Hello, Can anyone tell me how I can unzip and look at this .zipx file? or, is it not possible? thanks in advance.
-
Deactivated serial number runs on current copy of LR :(
I thought I ordered the wrong LR version and had it deactivated and ordered another ......long story....so when I finally got the product I needed I grabbed the wrong box off the couch and entered it...since both boxes looked the same I grabbed the o