Last Price history
hi all,
how can i get last purchase price of a material ?
any tcode ?
Hi,
Try the t-Code ME1P
Regards,
abi
Similar Messages
-
Dear All,
Is there any way we can have the Last Purchase Price History in SAP system?
Our customer has 2 stock transfer. In those 2 documents, she has 2 difference last purchase price on the document. But actually, she didn't issue any GRPO of that item during the period between the 2 stock transfer. So the last purchase price should be the same. How can I find out all the document during that period which may affect the last purchase price in the system? Thanks a lot.When you enter an incoming invoice # see Purchasing
PO - No
When you enter a goods receipt # see Goods Receipt
Goods Receipt: No
When you enter a positive opening balance for an item # see Inventory and Stock Postings
Not sure what. But they don't have opening balance for the items last month
When you enter a positive inventory result that triggers a goods receipt # see Inventory and Stock Postings
Not sure what?
When a product with a BOM is manufactured, where the price of the product is calculated from the last purchase prices of the components # see Production.
The item is not BOM
When Landed Costs are performed. (Note: When adding AP invoice after landed costs was created, the last purchase price will remain unchanged)
No landed cost for that item -
Vendor Evaluation - Price history
Hi
In vendor evaluation the score for the subcriteria Price History is not getting calculated.
The scoring method that I have used is : Automatic Determ. from Purch. Statistics: Price Behavior
What can be the reason? How it is calculated?
Regardsto determine how a vendor's price for a material has changed over the last few years, the material's price history is compared with the market price history.
The system first checks whether the buyer has maintained the current market price and last year's market price for the material.
If not, the system uses the price for the material group to which the material belongs.
If this price is not maintained either, the system uses the effective prices from the previous year and the current year. Prices from standard purchase orders for materials and prices from subcontract orders are dealt with separately.
The system then calculates the percentage variance between the old and new market prices.
The vendor's effective price is re-calculated with this percentage variance. The result represents the effective price the vendor should be asking if his price had changed over time in the same way as the market price.
This calculated effective price is then compared with the actual effective price, and a percentage variance is determined.
The system then awards the vendor the score you have maintained in Customizing for this percentage variance.
The system repeats this process for all the materials you procure from the vendor. Each time you start an evaluation, the system calculates the average score for all the materials. The result is the vendor's score for the subcriterion "Price History". -
Table for P.O. price history data
Is there a table that is being accessed when a P.O. gets its pricing information from the most recent P.O. for this material/vendor combination? I
I am seeing 35% being populated for an RL01 condition. I would like to find the number of the past P.O. where that pricing was used.Robert,
I assume you are using info records. The last PO number used (EBELN) is stored in the info record. You can get this information by querying the EINE table. If you are looking for an info record order price history, you may also want to have a look into tables EIPA and report ME1P.
Hope this helps.
H Narayan -
Where I find last price of a material?
Hi,
I need to consult the last price of a material, Does exists a table that has this data?
I consult the A006 table but it's very very slow. I suposse that this table has the history.
Thanks for your attention.
Maria C.hi,
You can get the price of a material from table MBEW.
Price = mbew-stprs / mbew-peinh .
You can provide the period to get teh price of material in a specific period.
Regards
Sailaja. -
Hello. I'm trying to develop a PO Price History Report for our compnay based on ME1P. This is the format I want my report to look something like this:
h5Material Code Mat.Description Vendor Code Vendor Descrip. Qty Price/ea PO Number Date
1111111111 abcaba 11111 abc abc abc 1 KWD 195 1010001002 21/05/2010
11111 abc abc abc 2 KWD 196 1010001003 21/04/2010
21111 bcd bcd bcd 1 KWD 195 1010001006 21/05/2010
Total Qty:
2222222222 xyz xyz 11111 abc abc abc 1 KWD 195 1010001002 21/05/2010
11111 abc abc abc 2 KWD 196 1010001003 21/04/2010
21111 bcd bcd bcd 1 KWD 195 1010001006 21/05/2010
Total Qty:
This is the coding I've done so far:
REPORT Z_MM_POHISTORY.
TABLES: EKPO, EKKO, LFA1, MAKT.
TYPES : BEGIN OF tw_ekpo.
INCLUDE STRUCTURE EKPO.
TYPES : END OF tw_ekpo.
types : BEGIN OF tw_ekko.
INCLUDE STRUCTURE EKKO.
types : END OF tw_ekko.
TYPES : BEGIN OF tw_LFA1.
INCLUDE STRUCTURE LFA1.
TYPES : END OF tw_LFA1.
types : BEGIN OF tw_MAKT.
INCLUDE STRUCTURE MAKT.
types : END OF tw_MAKT.
types : tt_ekpo type STANDARD TABLE OF tw_ekpo, tt_LFA1 type STANDARD TABLE OF tw_LFA1, tt_MAKT type STANDARD TABLE OF tw_MAKT,
tt_ekko type STANDARD TABLE OF tw_ekko.
data : lt_ekpo type tt_ekpo, t_LFA1 type tt_LFA1, t_MAKT type tt_MAKT,
lt_ekko type tt_ekko.
data : begin of lt_mix OCCURS 0,
bedat type ekko-bedat,
matnr type ekpo-matnr,
werks type ekpo-werks,
lgort type ekpo-lgort,
EBELN type ekpo-EBELN,
menge type ekpo-menge,
BUKRS type ekKO-BUKRS,
EKORG type ekKo-EKORG,
NETPR type ekPO-NETPR,
STATUS type ekpo-STATUS,
LIFNR type ekKo-LIFNR,
Name1 type LFA1-Name1,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
end of lt_mix.
data : begin of lt_final OCCURS 0,
bedat type ekko-bedat,
matnr type ekpo-matnr,
werks type ekpo-werks,
lgort type ekpo-lgort,
EBELN type ekpo-EBELN,
menge type ekpo-menge,
BUKRS type ekKO-BUKRS,
EKORG type ekKo-EKORG,
NETPR type ekPO-NETPR,
STATUS type ekpo-STATUS,
LIFNR type ekKo-LIFNR,
Name1 type LFA1-Name1,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
end of lt_final.
selection-SCREEN : BEGIN OF BLOCK blk01 WITH FRAME TITLE text-001.
select-options : P_ORG FOR EKKO-EKORG, C_CODE FOR EKKO-BUKRS OBLIGATORY, PLANT for ekpo-werks, MATNR for ekpo-matnr,
PDOC_NO FOR EKKO-EBELN, PDOCDATE FOR EKKO-BEDAT OBLIGATORY, STATUS FOR EKPO-STATUS, LANG FOR MAKT-SPRAS,
VENDOR for ekKO-LIFNR.
selection-SCREEN : end OF BLOCK blk01.
START-OF-SELECTION.
select a~bedat A~EKORG B~STATUS b~matnr b~werks b~lgort b~EBELN b~menge a~bukrs d~spras d~maktx a~lifnr c~name1 b~netpr
into CORRESPONDING FIELDS OF TABLE lt_mix
from EKPO as b INNER JOIN ekko as a on b~EBELN = a~EBELN
JOIN LFA1 AS c ON c~LIFNR = A~LIFNR
JOIN MAKT AS d ON d~MATNR = b~MATNR
WHERE
A~BUKRS IN C_CODE AND A~BEDAT IN PDOCDATE AND a~ebeln IN PDOC_NO AND D~SPRAS IN LANG AND b~matnr IN MATNR
SORT lt_mix by matnr LIFNR BEDAT ebeln.
loop at lt_mix.
lt_final = lt_mix.
AT END OF menge.
SUM.
append lt_final.
ENDAT.
ENDLOOP.
LOOP AT lt_final.
write: / lt_final-MATNR, lt_final-MAKTx, lt_final-LIFNR, lt_final-NAME1, lt_final-MENGE, lt_final-NETPR, lt_final-EBELN, lt_final-bedat.
at END OF matnr.
sum.
skip.
ULINE.
write: / 'Total qty', lt_final-menge, 'Total Price: ' , lt_final-netpr.
ULINE.
SKIP 2.
ENDAT.
ENDLOOP.
IF sy-subrc ne 0.
WRITE: 'No records found!'.
endif.
When I run the report, Materials with same PO date are grouped together but the same material with another date doesn't get added to that group.
I would really appreciate if anyone could help out.REPORT Z_MM_POHISTORY.
TABLES: EKPO, EKKO, LFA1, MAKT.
TYPES : BEGIN OF tw_ekpo.
INCLUDE STRUCTURE EKPO.
TYPES : END OF tw_ekpo.
types : BEGIN OF tw_ekko.
INCLUDE STRUCTURE EKKO.
types : END OF tw_ekko.
TYPES : BEGIN OF tw_LFA1.
INCLUDE STRUCTURE LFA1.
TYPES : END OF tw_LFA1.
types : BEGIN OF tw_MAKT.
INCLUDE STRUCTURE MAKT.
types : END OF tw_MAKT.
types : tt_ekpo type STANDARD TABLE OF tw_ekpo, tt_LFA1 type STANDARD TABLE OF tw_LFA1, tt_MAKT type STANDARD TABLE OF tw_MAKT,
tt_ekko type STANDARD TABLE OF tw_ekko.
data : lt_ekpo type tt_ekpo, t_LFA1 type tt_LFA1, t_MAKT type tt_MAKT,
lt_ekko type tt_ekko.
data : begin of lt_mix OCCURS 0,
matnr type ekpo-matnr,
bedat type ekko-bedat,
LIFNR type ekKo-LIFNR,
werks type ekpo-werks,
lgort type ekpo-lgort,
EBELN type ekpo-EBELN,
menge type ekpo-menge,
BUKRS type ekKO-BUKRS,
EKORG type ekKo-EKORG,
STATU type ekKo-STATU,
WAERS TYPE EKKO-WAERS,
BPRME TYPE EKPO-BPRME,
NETPR type ekPO-NETPR,
Name1 type LFA1-Name1,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
end of lt_mix.
data : begin of lt_final OCCURS 0,
matnr type ekpo-matnr,
bedat type ekko-bedat,
LIFNR type ekKo-LIFNR,
werks type ekpo-werks,
lgort type ekpo-lgort,
EBELN type ekpo-EBELN,
menge type ekpo-menge,
BUKRS type ekKO-BUKRS,
EKORG type ekKo-EKORG,
STATU type ekKo-STATU,
WAERS TYPE EKKO-WAERS,
BPRME TYPE EKPO-BPRME,
NETPR type ekPO-NETPR,
Name1 type LFA1-Name1,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
end of lt_final.
selection-SCREEN : BEGIN OF BLOCK blk01 WITH FRAME TITLE text-001.
select-options : P_ORG FOR EKKO-EKORG, C_CODE FOR EKKO-BUKRS OBLIGATORY, PLANT for ekpo-werks, MATNR for ekpo-matnr,
PDOC_NO FOR EKKO-EBELN, PDOCDATE FOR EKKO-BEDAT OBLIGATORY, LANG FOR MAKT-SPRAS, STATU FOR EKKO-STATU,
VENDOR for ekKO-LIFNR.
selection-SCREEN : end OF BLOCK blk01.
START-OF-SELECTION.
select a~bedat A~EKORG B~STATUS b~matnr b~werks b~lgort b~EBELN b~menge a~bukrs d~spras d~maktx a~lifnr c~name1 b~netpr a~waers B~BPRME
into CORRESPONDING FIELDS OF TABLE lt_mix
from EKPO as b INNER JOIN ekko as a on b~EBELN = a~EBELN
JOIN LFA1 AS c ON c~LIFNR = A~LIFNR
JOIN MAKT AS d ON d~MATNR = b~MATNR
WHERE
A~BUKRS IN C_CODE AND A~BEDAT IN PDOCDATE AND a~ebeln IN PDOC_NO AND D~SPRAS IN LANG AND b~matnr IN MATNR AND a~lifnr in vendoR
AND b~werks IN Plant AND a~ekorg IN P_Org AND A~STATU IN STATU
SORT lt_mix by matnr bedat ebeln lifnr.
loop at lt_mix.
lt_final = lt_mix.
AT END OF menge.
SUM.
append lt_final.
ENDAT.
ENDLOOP.
LOOP AT lt_final.
ON CHANGE OF LT_FINAL-MATNR.
WRITE: lt_final-matnr, LT_FINAL-MAKTX.
ENDON.
write: /60 lt_final-LIFNR, lt_final-NAME1, LT_FINAL-BPRME, lt_final-MENGE, LT_FINAL-WAERS, lt_final-NETPR, lt_final-EBELN, lt_final-bedat.
at END OF matnr.
sum.
ULINE.
write: /'Total qty', lt_final-menge, 'Total Price: ' , lt_final-netpr.
ULINE.
SKIP 2.
ENDAT.
ENDLOOP.
IF sy-subrc ne 0.
WRITE: 'No records found!'.
endif. -
How to develop a report with current price & the last price in the pre.yrs
hi ,
guys,
my client want a report to list of material with respective vendor and to make a price comparison betn the current price & the last price in the privious year.
can any one help how to develop the report, shall go for generic extrc.
thanks in advace.
ramnathCR CR 2011 / "Crystal reports For Visual Studio 2010", you are correct.
Re. the database thinggy. You can connect to a database via ODBC, OLE DB or in some instances natively. Once a report is created you an change the datasource. A good sample app on how to do this is csharp_win_dbengine / vb_win_dbengine. A link to the samples is here:
Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
More info on connecting to dbs and changing them is in the developer help files:
SAP Crystal Reports .NET SDK Developer Guide
SAP Crystal Reports .NET API Guide
More info on CR APIs for .NET (applies to all versions of CR and VS):
Crystal Reports for Visual Studio 2005 Walkthro... | SCN
You can also use ADO .NET Datasets and in this way you handle the database connections in your app. A good sample is csharp_win_adodotnet (also available in VB) - same link as above.
More info on datasets:
Crystal Reports Guide To ADO.NET
Crystal Reports for Visual Studio .NET - Walkthrough - Reporting Off ADO.NET Datasets
For more complicated operations (e.g.; changing a report from ODBC to OLE DB, changing one table, etc., you will want to use the InProc RAS SDK that is also available in CRVS. Developer help files are here:
Report Application Server .NET SDK Developer Guide
Report Application Server .NET API Guide
Sample apps are here:
NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
and here:
Crystal Reports .NET In Process RAS (Unmanaged) SDK Sample Applications
More info on RAS SDK:
How to Use The RAS SDK .NET With In-Process RAS Server
Lastly, do use the search box in the top right corner. I find simple search strings such as 'crystal net parameter' return best results (KBAs, Blogs, docs, wikis, discussions and more).
- Ludek -
Missing functionality Request: report "last prices" with BP name
In the report "last prices" (if Checkbox "BP code" is not checked) one sees only the GP code and not the BP name. This is very unfavorable if an item was very often sold in several customers.
Edited by: Inga Babco on Jan 31, 2008 10:27 AMI am not using form , it's just done in report, that is i am not calling the report from a form , just from a menu.
:last_name is a report_paramter that i created on the report.
you're right the first assignmnt is
AND UPPER( db column) LIKE
I have a paramter form on the report with a field last name and I am letting the user enter last name there which gets stored in the :last_name
Edited by: Forms_Reports_Beginner on Aug 14, 2009 7:29 AM
Edited by: Forms_Reports_Beginner on Aug 14, 2009 7:32 AM
Rodolfo,
your solution works,
:p_where_clause := ' AND UPPER( db_column ) LIKE (' ||''''||'%'||UPPER(Replace(:p_2,chr(39), chr(39)||chr(39)))||'%'||''''||')' ;
but i dont quite understand how this is working
Replace(:p_2,chr(39), chr(39)||chr(39))
i have never used chr
Edited by: Forms_Reports_Beginner on Aug 14, 2009 7:35 AM -
Purchase Price History Report/ OM Price report
Oracle Gurus,
Can I maintain a price history for any item-supplier combination, so that it defaults while I prepare a RFQ or enter a quotation in the system? If yes, where can I do this?If no, is there any workaround?
In future based purchase price history report, will send RFQ to supplier?
Pleae advise, where we have this option in application.
Thanks
AKMe1p give u details ie.
1) A material Purchased at what Price - You can see Price details with Purchase Order wise.
2) From a Vendor you have purchased which material @ what price
By using me23n what Price history you want to see. -
Hi folks,
I am looking for a report that will provide Vendor price history for a material. Is there any standard SAP report or any table that gives this information?
Sincerely,
SanjayHi,
Use transaction ME1P.
Regards,
Naveen -
Last Prices is not working in SAPB1 2007
Hi all,
I just upgrade my sapb1 from version 2005 patch 36 to version 2007 patch 37. I found that the last prices feature, is not function in SAPB1 version 2007. Anyone have face it before?
Regards
WongHi Wong,
I'm using pl 38 & it works fine. You can call the report up from 2 different locations:
1.) From the SAP Business One Main Menu, choose Inventory-> Inventory Reports -> Last Prices Report .
2.) In a sales or purchasing document, place the cursor in the Unit Price field and press Ctrl + Tab. The values are copied automatically from the document.
To generate the report, enter the necessary information and choose Refresh.
Please be careful about your selection criteria, e.g. if you have selected a specific BP & you have not traded with this BP before with this item, there will be no data displayed.
All the best,
Kerstin -
Automatic Sub-Criteria: PRICE HISTORY in Vendor Evaluation
Hello All,
Can anybody help me in understanding what actually the following mean in Automatic Vendor Evaluation!!
1) Effective Price
2) Calculated Effective Price
3) Actual Effective Price
4) Calculated Effective Price for a particular Vendor
I see all this in the following link
http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/b97cf8414511d188fc0000e8322f96/frameset.htm
Under "How the System computes Scores:"
Under "Calculating Scores for Automatic Subcriteria:Overview"
Under "Price History (Main Criterion "Price")"
ThanksHi ZEYNEP,
1) Effective price - End price after taking all conditions (for example, cash discounts, delivery costs etc.) into account.
2) Total Price - Price arrived at after taking all discounts and surcharges into account
3) Total value = total quantity x price
When a price changes, the value of the stock changes, since the value is calculated from the price:
4) Effective (actual) price: Net price minus cash discount and plus miscellaneous provisions and delivery costs as well as non-deductible input tax
In simple - Total Cost - Expenditure on material till Goods Receipt (Procurement) and Effective cost - including all expenses till delivery from factory or some times till reach the consumer (vary depend upon the nature of business).
Here is an example
Material Price is $ 1000/-
& Discount is 10% and tax is 10% and freight is $ 50/-,Fixed( it may also %)
So Here the Material Price is called Gross Price $ 1000/-
Gross Price ($ 1000/-)- Discount {$ 100/-(10% of $ 1000/-)}= Net Price $ 900/-
Here Net Price $ 900/-
Tax $ 90/- ($ 900/- +$ 90 = $ 990/- is called sub-total)
Freight $ 50/-
$ 1040/-
The Total Price ($ 1040/-) is called Effective Price.
Hope this is helpful. Reward if useful.
Thanks -
Vendor Evaluation scores sub criteria price level and price history
Dear all,
I have configured vendor evaluation with subcriteria price history and price level as automatis.
For test, I created a vendor and a material. Assigned market price for year 2009 and 2010.
Also info record price maintained for the vendor material combination.
Vendor XYZ
Material ABC
For 2009 Market price 8 and effective price 8.5
For 2010 Maket price 8.2 Effective price 8.5
Variance calculated 8.43% and score is 15. This was calculated correctly.
Now I created another material and maintained master data for that mater
Vendor XYZ
Material DEF
For 2009 Market price 18 and effective price 20
For 2010 Maket price 20 Effective price 22
Variance calculated 1% for which the score is 50.
When I go for vendor evaluation through ME61 , system is not considering the average of 2 scores. But giving a score of 50. Score bands are as follows.
5 Price behavior 5.0 10
5 Price behavior 10.0 15
5 Price behavior 20.0 20
5 Price behavior 50.0 20
5 Price behavior 99.0 10
5 Price behavior 5.0- 50
5 Price behavior 10.0- 100
5 Price behavior 50.0- 20
5 Price behavior 99.0- 10
Pls help me resolve the issue
Regards.
Milind DugadeHi Siva,
[Vendor Evaluation|http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/b97db3414511d188fc0000e8322f96/frameset.htm]
[Price Level|http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/b97db3414511d188fc0000e8322f96/frameset.htm]
[Price History or Behaviour|http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/b97db3414511d188fc0000e8322f96/frameset.htm]
Reward if helpful.
Thanks and Regards,
Naveen Dasari
Edited by: Naveen Dasari on May 16, 2008 1:10 PM -
Price history of Text material
Hi All,
I need a report for Price history of PO for the text material. Text material includes Asset, cosumable items etc. I have tried by using me1p but coud not get the result. please let me know the correct way to get that...
Looking forward for your fruitful solution.
thanks,
mxHi,
As ME1P stores prices per inforecord, so to get the price history for the text material you
have to maintain an info record per material group. You create an info record material group wise
in ME11 t-code. In ME11 give the vendor number, plant and purchase organisation number and keep the
Material field blank. Then in the next screen, you maintian your material group and then
in the purchasing data screen maintain the price.
Then create a PO with this combination and the same will be updated in ME1P. You can also
refer table EKBE.
Thanks,
Atal -
Hi,
In PO Price History (Tx Me1P) system is showing all the items including deletion flag items also but we dont want to compare with deletion flag items hence how to get this?
we have to use z report na?
Thanks
PrasadHi Prasad
Yes u r correct, it will show the price of the deleted entries also. I think for ur requirement u have to avoid the deleted entries for ur z report.
Thanks
Ravi
Maybe you are looking for
-
How to pass the values from internal table to field groups
hi all, how can i pass the internal table values to field groups? already field groups are holding some values.. INSERT STATEMENT IS NOT WORKING as it is ovewriting the existing values.. Use full answers will be rewared. Thanks. Moderator message -
-
Problem in printing barcode in SAP script.
Hi All, I have defined ZP as char format and assigned the barcode name as Z_TEST which is defined in SE73 as system bar code. Trying to display barcode as : <ZP>12345 I hv tried using <ZP>12345</ZP> <ZP>12345</ZP> But it does not work for all above o
-
I use Function Sum to add a column and a new column pops up filled with 0s
In one of my spreadsheets, every time I try to add a column of numbers using the Sum Function, a new column is added filled with 0s. What's happening? And How do I get it to just add the column?
-
I have a printer that prints a little too red. Profiles, driver adjustments, ect. have failed to provide a reliable solution. I wonder if there could be a way to find a color adjustment in LR to apply after normal color adjustments and immediately be
-
Copy contacts from memory card to BB
Hi! I just got my blackberry curve 9300 and i'd like to know if it is possible to copy my contacts from Memory Card to BB or would I need a PC/laptop for this function? I've been trying to find the copy finctions for this but could'nt get any on th