FM to get purchasing price based on certain condition

Hi,
Is there any function module to get Price in purchasing document like PO after certain price condition like freight, discount etc.
For example I have a material no, price per unit 50 USD and we'd like to buy 10 pieces of it, we have price condition with condition type and amount  freight and discount for this, I want to know what is net value after condition calculation.
On other case I also need a gross value if I enter net value and some condition types and amounts, any FM for this case also?
So that would be to two FM, or a FM that works vice versa.
Thanks a bunch.
Bernard

Hi,
Actually PO has not been created yet, because I want to create PO using BAPI_PO_CREATE, but we a  requirement to create a PO, and user upload a net value of a material and condition type with it.
In BAPI_PO_CREATE we have to upload gross value of a material along with its conditions, then let BAPI compute net value and post to create a PO.
In this case I have to get a gross value, when user upload a net value along with its conditions.
Any idea?

Similar Messages

  • How to Override Cost Center in IT 1 based on certain conditions

    Hi,
    I have a pretty good understanding on how Cost Center gets defaulted based on Org Structure.  The standard SAP solution for Cost Center will not work for my client and I need to determine the cost center based on certain conditions. I understand that I have to write custom code in some user exit or badi. I tried user exit EXIT_SAPFP50M_001, but it did not work.
    Here is my code:
    DATA: I0001 LIKE P0001.
    CASE INNNN-INFTY.
        WHEN '0001'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING
              PRELP = INNNN
            IMPORTING
              PNNNN = I0001.
    This is just an example to test the concept
    I0001-kostl = 'COST_CENTER'.
         CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
            EXPORTING
              pnnnn = i0001
            IMPORTING
              prelp = innnn.
    endcase.
    When I change IT 1 record and hit enter, I can see that my code is being executed. I can see cost center being updated on the screen, but when I save it, its not able to retain that new cost center value. This might be because cost center is not an open field.
    How can I change my code so it retains its value after saving?.
    Thanks!

    Contd to manoj
    Cost Center will be a Open feild when the value of   the  switch PLOGI ORGA  should be balnk if it is haveing 1 than it will not default the value kindly check

  • VT02N - do PGI and Invoice for certain deliveries either based on certain conditions

    Hi Friends ,
    We are using VT04 for creating shipments . While shipment completion stage in VT02N   an activity profile has been maintained  which does both the Goods issue and Invoice.
    We have a business requirement , PGI and Invoice should be created only for specific set of deliveries based on certain conditions.
    Is there any standard way to do this or by using user exits.
    Please guide.
    Thanks,
    Nileshsa.

    what about adding a check in userexit RV60AFZZ, when the condition is not met during invoice creation, error out and disable the creation of the invoice document?

  • Purchase price vaiance of certain materials to Separate GL account

    Hi,
    Is it possible to allocate purchase price variance of only certain materials to a separate GL account? If so, what configuration needs to be done.
    Thanks for your help.
    Ram

    Hi,
    Yes the materials have standard price in the material master. In that case, what configuration do we need to do in the MM side, so that the FI person can assign the account in OBYC.
    Thanks

  • Get Item price based on Price List

    Hi all,
    anyone has some sample of how to get the price for an item based on a specified price list, selected by the user, following the SAP's rules for assigning item price?
    I've used the GetItemPrice method, but it doesn't need a price list reference and i think it gives back the basic price of the item.
    I'm able to get the price list and the item code. How can i get the correspondig price (unit price) for that item?
    Thanks in advance.
    Nick

    Thanks Rasmus,
    i've done. I get the PriceList currently selected by the combo box and update the price list used by the BP, and after that i use the getitemprice.
    So it should work now, i get the correct prices related to the pricelist selected and i think that using the getitemprice the price that i obtain follows the sap B1 logic in assigning prices.
    After that i'm considering to set back the pricelist on the BP to the one that is originally stored in the BP.
    Thanks for your help

  • BAPI to get purchasing price maintained in MEK3

    Hello Gurus,
    Which BAPI allowes to get price condition created in MEK3 transaction (purchasing price)?
    Many thanks,
    Stéphane

    Hi Pls try with this,
    CND_PRICES_INBOUND-   Exchange Conditions Prices and Rebat
    BAPI_PRICES_CONDITIONS-BAPI für Price and Rebate Usage Condition Records
    CPE_PRICEQUOT_UPLOAD-CPE - Upload of Price Quotation
    BAPI_PRICEQUOT_PROXY_UPLOAD -   CPE - Proxy upload function for saving of quotation data
    Regards,
    Seegal

  • How to get Item Price Based on Valuation Method

    Hello All,
    I want to get the price of an item based on its Valuation method (FIFO,Moving Average) for calculation .
    Is their any Objects for getting the Item Price Based on Valuation Method or any other way around for getting the
    price.
    Thanks & Regards,
    Amit

    Hello,
    You Can receive the Moving Average price of an Item :
    MovingAveragePrice property returns the Moving average price
    AvgStdPrice property returns the standard price
    sample:
    Dim oItem As SAPbobsCOM.Items = oCompany.GetBusinessObject(BoObjectTypes.oItems)
            oItem.GetByKey("ITEMCODE")
            oItem.MovingAveragePrice
            oItem.AvgStdPrice
    Best of my known in 2007 there is no interface for FiFo prices.
    You can use OINM table to query the FiFo prices
    Regards,
    J

  • OIM11gR2 show items in catalog based on certain condition

    Hi All,
    Is there a way to show the catalog items based on some condition?
    Eg: Users having only "Role A" can see some entitlements or other roles.
    Any pointers are appreciated.
    Thanks
    Vicky

    You can take guidance from this: http://www.ateam-oracle.com/oim-11g-r2-ui-customization-tips-and-tricks/
    -Bikash

  • Setting a field as Mandatory dynamically based on certain condition

    Hi All -
    I am working on ADOBE Interactive forms. I am not able to find out, How to set a particular field as a 'Mandatory field' based on some condition. I am using FormCalc as scripting language.
    i.e: I have a field "RATING". I want to make the next field "COMMENT" as mandatory when "RATING" is less than 3.

    Hi Vishal,
       You need to set the mandatory attribute of the specific field according to your condition. In FormCalc this will be similar to this,
    if (Rating < 3) then
              $.mandatory = "error"
              $.mandatoryMessage = "The corresponding Comment field is mandatory. Please fill"
    else
              $.mandatory = "disabled"
    endif
    The mandatory property can be set as:
    "error" : Makes the field compulsory to be filled before submission
    "disabled" : Makes the field optional
    "warning" : Gives a warning to the user that the field should be filled, but doesn't cause an error on submission
    The property "mandatoryMessage" specifies the message to be displayed to the user when the mandatory field isn't filled before submission.
    Regards,
    Rose

  • How to get invoice price based on order date or delivery date?

    Hi,
    Our system is configured to create invoices with pricing based on date of delivery.
    But we have a number of customers who get pricing based on date of order.
    Right now, people are manually changing the price and then generating the invoice.
    Is it possible to:
    1) add a ZZ field in the customer master that indicates which pricing date to use?
    2) have SAP generate the invoice with the correct pricing date based on this selection?
    Thx.
    Andy Jacobs

    Hi Andrew,
    We do have the exact same problem.
    One solution would be to create a new order type. Within that new type you can specify what date should be proposed as pricing date by SAP.
    Unfourtantely, here we are not able to add a new type. Does anyone know how this can be solved in another way?
    Thanks,
    Tim

  • Triggering ME_GUI_PO_CUST based on certain condition

    Hi,
    I have implemented ME_GUI_PO_CUST and ME_PROCESS_PO_CUST BAdis to display a custom tab in ME21n/22n/23n at item level. The custom tab is getting displayed but the problem is that I need to display the custom tab only for certain PO types and material types.How do handle this?
    Any ideas??

    Hi,
      to trigger certain badi   provide filters using  whatever the  po u want, i.e provide filters  using po at defination level,
    may be its usefull.

  • Funcion for masive purchase price simulation? (and conditions)

    Hello all:
    Anyone knows a function in order to use it in a report for massive price simulation? (around 4000 materials)
    The idea is to have the price and conditions like is in me33 or me23, then select item, and in menu item --> price simulation.
    I tried with the FM ME_SWP_SIC_GET_PRICING_INFO and it works when I run the report for a few materials, but when I run it for many (around 4,000) I have a dump message about low memory.
    In the previus report I made for this purpose I read the tables a905 or a903 and it is very fast but this is not standard for the other plants, so I'm looking for a SAP function module.
    The other option is to read the tables in the correct sequence but I don't know it.
    Thanks for your help.
    Miriam

    Hi
    Simply speaking the Pricing procedure in MM is basically working based on condition technique....It is nothing but Access sequence, accessing the conditions records of the condition types from the condition tables...
    Calculation schema is nothing but grouping of condition types which tells you which condition type should be kept as a basic one....and in what base and order the condition types should be calculated....and what are all the condition types should be added to the net calculation ...and what are all the condition types you want to put it in accdruals etc..Based on this calculation schema only the PO price is calculated...
    Condition records are nothing but where the condition types are stored...
    Condition Tables are nothing but where the condition records are stored...
    Access sequence is a search strategy which tells order in which the condition tables to searched for the condition records of the particular condition types.
    Hope I have given right idea...
    Thnaks:
    piyush singh

  • How to enable or disable report parameter based on certain conditions

    Hello ALl,
    I have 3 parameters in my report. Fst parameter is having a LOV which is having all status value like 'Received,Refunded, Exempted etc).
    second parameter is From date and third parameter is To Date which is having value set as "FND_STANDARD_DATE'
    Now my requirement is If Status is selected as "Exempted" then From and To Date should be disabled.
    if other than that then both should be enabled.....
    Please help me out.
    How it cna be done.
    Thanks in advance
    sheetal

    Hi,
    You can use a condition
    <?xdoxslt:ifelse(Condition,'Paragraph','')?>
    Condition is the condition that needs to be satisfied
    Paragraph is the paragraph that needs to be displayed if the condition is satisfied
    '' is what needs to get displayed if the condition is not satisfied.
    Thanks,
    Swarna

  • How to select few columns based on certain conditions

    i have a table with n columns, of which in 2 columns each may have similar values for certain number of rows
    i want to find if one of the entries in a column has same value in the next few rows
    For example the two columns are
    supplier_name supplier_code
    hll 013
    hll 013
    hll 013
    hll 013
    if i first encounter hll with 013 i have to check whether hll with 013 record is further available
    if it is so i have to display the columns for which multiple entries is available
    can anyone send the query

    Duplicate thread?
    selecting certain columns in oracle

  • Generate Absence Quota based on certain condition

    Hi Experts,
    I'm new in Time Management. I have requirement in generation quota where new employee would have their quota after december in hiring year.
    For example
    A join in 01/06/2010. In 01.01.2011 we generate absence quota and A would have 6 days in year 2011, and normal 12 days in year 2012 and 12 days in the following years.
    B Join in 01/11/2010. In 01.01.2011 we generate absence quota and B would have 2 days in year 2011 and normal 12 days in year 2012 and 12 days in the following years.
    in other word the employee must earn the absence quota first and use it in the following years.
    Can this be achieved without using PCR because i dont have any experience in PCR? Many Thanks
    Regards

    Hi,
    Thanks for the table, I've found temporary solution with this setting:
    Validity/Deduction Interval
    Deduction from End of validity Interval   - 1 days
    Deduction to end of validity interval  + 12 months
    Enter previous year period for generating quota this year.
    Best REgards
    Edited by: Hendri Salim on Nov 5, 2010 1:58 PM

Maybe you are looking for

  • Home directory is read only

    Hi - I'm having a strange problem with my home directory on my MacBook Pro that is running Leopard. The finder window for my home directory claims it is read only (the pencil with a line through it shows up). However, if I do a Get Info on it, it say

  • How to create workflow for this scenerio

    HI Gurus, I am new to workflow. I have to create a workflow. But I have a problem what the object type I have to choose. It may be simple but i dont know do it. Scenerio of the workflow given is... This workflow gets pernr and benefit plan informatio

  • Jquery

    Hi, I created an mobile app using Apex .    In that I created one check box . While creating the check box it showing very long (size of the Check box was too long). I don't know how increase/decrease the size of the Check box in apex Jquery mobile.

  • Continually Kicked Off My Subscription to CC

    This has been going on since I joined CC. At irregular invervals, I am locked out of CC. I have NEVER downloaded a trial version of any Adobe product but periodically (six times in October), I go to open Photoshop and am told my trial version has exp

  • MacPro is slow and spinning wheel shows up every other click

    It's been a couple of days that my MacPro is running slow and the spinning wheel keeps showing up. is there any way to fix this or should I take it to Apple store?