Function to get the standard sales price

Dear all,
is there a bapi/function I can call to get the standard sales price of an article?
Kind regards
Roman

Hi~ Roman
There is a fuction for it.
    CALL FUNCTION 'PRICING'
         EXPORTING
              COMM_HEAD_I      = TKOMK
              COMM_ITEM_I      = TKOMP
              CALCULATION_TYPE = PREISFINDUNGSART
         IMPORTING
              COMM_HEAD_E      = TKOMK
              COMM_ITEM_E      = TKOMP
         TABLES
              TKOMV            = XKOMV
              SVBAP            = UVBAP.
this fuction is standard function. you can find it when you debug T-code 'VA01'.
it returns like this.
table tkomv
100            000010 011 01 V  <b>ZU01</b> 2005.10.16 C                10.00            11.80  KRW    1.00000         1  EA      1      1    X       A     30 0021410014 01
100            000010 100 01 V  <b>NETW</b> 2005.10.16 G                10.00             0.00  KRW    1.00000         1  EA      0      0  L         A     00            00
100            000010 915 01 V  <b>MWST</b> 2005.10.16 A                11.80           100.00                         0          0      0  D         A X   10 0000006903 01
100            000010 940 01 V  <b>VPRS</b> 2005.10.16 C                10.00         9,900.00  KRW    1.00000     1,000  EA      1      1  G X       A     00            00
as you can see condition type zu01, netw, mwst, vprs has it's own prices.
Try to debug it.
<b>With program : SAPFV45P
     include : FV45PF0P_PREISFINDUNG
     fuction : PRICING</b>
and look at parameters.
I wish I could help you.
good luck
Regards
Kyung Woo.

Similar Messages

  • No standard sales price shown

    Greetings,
    There is a question regarding the standard sales price in promotion. In the tab "Price Planning", there is a column named "Standard Sales Price", however, when I enter an article number, it shows as "0" while I use VKP2 to display the sales price, it can be shown.
    Is the standard sales price the same as the sales price calculated by VKP5? If not, where does the standard sales price be calculated?
    High appreciated your help. Thanks =)
    W.L

    Hi Wini,
    please be aware that you define in promotion header data an according organizational level (distribution chain) to determine the standard sales price.
    You can enter a default distribution chain in customizing per promotion type.
    Hope it helps.
    Regards
    Tobias

  • Urgent help for a function module or BAPI to get the standard price.

    Hi,
    I want to know whether there is any existing <b>funcion module or bapi</b> to get the standard price (STPRS) which is updated in the table MBEW during the execution of a costing run for standard cost through the transaction ck40n.
    helpful answers will  be rewarded !!!

    Hi,
    You can use the BAPI BAPI_MATERIAL_GET_DETAIL
    Thanks
    Naren

  • Simplest way to see Standard Sale price and associated COGS?

    Hi there,
    I'm working with some end users and analysts in the MM module and they want to have a really simple way of viewing all of their SKUs (to simplify this scenario assume 1 plant and 1 company code, single values for all key fields).
    They want to be able to quickly get info for each SKU or a range of SKUs that shows:
    Standard Sale Price / Moving Avg. Price
    SKU Cost
    Freight Charges
    Ocean Freight Charges
    For example
    SKU 123456
    Sale Price $100
    SKU cost $40
    Freight Charges $5
    Ocean Freight Charges $2
    Profit:  $53
    Could someone advise on the best way to do this in the ERP system?  I'm not sure I have a simple solution for the users...
    thanks!

    Hi ,
    Most of the time it will be customer specific ..you may need to define one ...
    Sale Price (usually a condition based )
    SKU cost ( it can be transfer price , Map or std cost )
    Freight Charges ( condition based )
    Ocean Freight Charges ( condition based )
    Thanks,
    sudhakar

  • Getting the open sales orders and open deliveries valies

    Hi SDNs,
    I have a requirement that i need to get the all sales orders open values and delivery values. I need to build a logic for this scenario. could you please provide the logic for getting the open sales order values for respective customer.
    Please provide logic instead of standard reports. That would be very useful
    Thanks in advance
    Regards,
    K

    Please provide logic instead of standard reports.
    Really surprising !!!!!!!!!
    But still I would like you to have a look at VA05 where both open quantity and open order value will flow.  If you still feel to get the related tables, you can consider VBBE where you can get open order quantity
    thanks
    G. Lakshmipathi

  • Is there a function to get the IP of this remote system

    Hello EveryBody
    Currently I have an application that runs on our network. When someone logs on to the network it checks there system and gets the pc name. I would like to also get the IP address of that system. As well I may later like to ping that computer.
    1) Is there a function to get the IP of this remote system?
    2) IS the a function to ping a remote system and receive back the response?
    Thanks a lot.
    R

    Hello EveryBody
    Currently I have an application that runs on our
    network. When someone logs on to the network it
    checks there system and gets the pc name. I would
    like to also get the IP address of that system. As
    well I may later like to ping that computer.
    1) Is there a function to get the IP of this remote system?
    2) IS the a function to ping a remote system and
    receive back the response?Is this lan only?
    Because if wan or internet then the remote computer would have to have an address that is reachable from your computer. For the internet this would mean it would have to be public. And for a wan the IP would have to be unique across the wan.

  • Use SQL function to get the original order number using the invoice number

    Hi All,
    wondering is someone can help me with this challenge I am having?  Often I need to return the original order numbers that created the resulting invoce.  This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement.  the code i currently have is:
    Use SQL function to get the original order number using the invoice number
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    RETURN @OrderList 
    END
    it is run by the following query:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number here'
    The issue is that this returns the order number for all of the lines in the invoice.  Only want to see the summary of the order numbers.  ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
    If this was a simple reporting SELECT query I would use SELECT DISTINCT.  But I can't do that.
    Any ideas?
    Thanks,
    Mike

    Thanks Gordon,
    I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice.  However, I have managed to solve my own problem with a GROUP BY statement!
    Others may be interested so, the code is this:
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    GROUP BY T6.DocNum
    RETURN @OrderList 
    END
    and to call it use this:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number'

  • Ibooks author, how do I get the standard book pages background into my document. I have published one book so far which does not display with a book pages background or options for font size.

    ibooks author, how do I get the standard book pages background into my document. I have published one book so far which does not display with a book pages background or options for font size.

    No on the book title, no problem there.
    The issue is: my book pages appear as on white paper, no background that resembles a open book and also no option to change fonts. The book was created in iBooks author, there was a problem going with the "Publish" menu route so I was instructed my Apple to "export" the file and submit that. I think that's the problem after reading that iBooks author is a hybrid epub file.
    Thanks for getting back to me.

  • Function to get the last day of the current month

    Hi friends
    Now I need to know a function to get the last day of a month. I had between my notes that function but I do not find it and I think you can give the answer faster.
    Thanks
    Joel Pérez
    DBA Oracle

    I know emoticons are a bit naff but in the absence of a UBB markup to indicate humourous intent they do serve to indicate a joke. This is useful in a purely verbal domain like these forums, especially given that many participants don't have English as their first lanaguage and so often miss the wordplay.
    Cheers, APC

  • Is there any function module getting the cpu type?

    Is there any function module getting the cpu type?

    I guess the database server...
    I would like to get the SAP system cpu type as done in transaction st06 under system information.
    Thanks.

  • Is there a deadline to get the $79 upgrade price for LR4?

    I'm currently running LR3.6, but its on a 4+ year old HP Pavilion with an AMD Althlon 64 X2 running WinXP.  Obviously I need to upgrade to Windows7 before upgrading to LR4, but from what I'm reading, I need to upgrade my hardware too (its past time anyway).  Unfortunately, its probably going to be a few months before I'll be able to spring for a new machine, so I'm wondering if there is a deadline to get the $79 upgrade price for LR4.  If so, I might need to buy it before the deadline, even though I don't have a machine I can run it on yet.

    vbnut wrote:
    Unfortunately, its probably going to be a few months before I'll be able to spring for a new machine, so I'm wondering if there is a deadline to get the $79 upgrade price for LR4.
    No, the $79 price for the upgrqade is based on the new pricing of LR4...aside from some sort of special promo at some point in the future, I'm pretty sure the new price is the normal price.

  • I have the original AIR recently it has really slowed down. Every function usually gets the pinwheel. It is up to date and has 10g of free disk space. Any suggestions as to the cause?

    I have the original AIR recently it has really slowed down. Every function usually gets the pinwheel. It is up to date and has 10g of free disk space. Any suggestions as to the cause?

    Often a failed disk or power supply. See:
    https://encrypted.google.com/search?q=%22time+capsule%22+%22orange+light%22&as_q dr=all&newwindow=1&num=100

  • How can I get the standard Adobe CS4 sample templates, like the photo slideshow?  Thanks

    I just got Flash CS4.  I think it is supposed to have several categories of templates.  I only have the advertising category. How can I get the standard Adobe CS4 sample templates, like the photo slideshow? I cannot find anyplace on the Adobe.com site for template downloads.
    Thanks
    Mark

    I have the same question-- I don't see any template categories apart from "Advertising"-- where are they?
    - Jesse

  • How to create a function to get the 16th of the current month and the 15th of the next month

    I need to create a function to get the 16th of the current month and 15th of the next month to use it in the fast formula to calculate the sick leave.
    Example:
    If an employee takes a sick leave from 16 feb 2015 to 17 feb 2015 , I want it to affect march's payroll not February.
    Please help and thanks in advance.

    Below statement gives you the result. Use the concept and write your PL/SQL function.
    select TO_DATE('16-'||TO_CHAR(SYSDATE, 'MON-RRRR')), TO_DATE('15-'||TO_CHAR(add_months(SYSDATE, 1), 'MON-RRRR')) from dual;
    Or you can use same construct directly in the fast formula by changing syntax accordingly.
    Regards,
    Peddi.

  • Get the net sales total amount

    Dear All,
    I need to get the net sales from query, would like to seek for advise.
    The calculation of getting net sales should be total $ of A/R invoice - total $ of Return ??
    Thank you very much!

    hi
    SELECT T0.[ItemCode],T0.[Dscription],
    T1.[Quantity] 'IN', T0.[Quantity] 'Out' FROM INV1 T0, RDN1 T1 WHERE T0.[Dscription] =[%0]
    SELECT T0.[ItemCode],T0.[Dscription],
    sum(T1.[Quantity]) 'IN', sum(T0.[Quantity]) 'Out' FROM INV1 T0, RDN1 T1 WHERE T0.[Dscription] =[%0] GROUP BY T0.[ItemCode],T0.[Dscription],
    T1.[Quantity], T0.[Quantity]
    Thanks
    Kevin

Maybe you are looking for