Purchase contract Net Price

Hello all,
Is there a FM to determine the net price of the purchase contract.
The field EKPO-NETPR works fine when only one condition extist, but if u create a new one with a new validity of dates the EKPO-NETPR does not get updates.
So what i need is a FM to determine the NETPR from the current condition values.
Thank you
Nuno SIlva

try this program .. it retreive tax.. i think the structure taxcom will also give you net price
REPORT zreport10 .
TABLES : ekko , ekpo , t001 , komk , komp .
DATA mwsbp TYPE komp-mwsbp .
PARAMETERS : p_ebeln TYPE ekpo-ebeln ,
             p_ebelp TYPE ekpo-ebelp .
START-OF-SELECTION .
  PERFORM calculate_tax USING p_ebeln p_ebelp CHANGING mwsbp .
  WRITE mwsbp .
*       FORM calculate_tax                                            *
FORM calculate_tax USING    p_ebeln TYPE ekpo-ebeln
                            p_ebelp TYPE ekpo-ebelp
                   CHANGING p_mwsbp TYPE komp-mwsbp .
  CONSTANTS: bstyp-info VALUE 'I',
             bstyp-ordr VALUE 'W',
             bstyp-banf VALUE 'B',
             bstyp-best VALUE 'F',
             bstyp-anfr VALUE 'A',
             bstyp-kont VALUE 'K',
             bstyp-lfpl VALUE 'L',
             bstyp-lerf VALUE 'Q'.
  DATA : taxcom TYPE taxcom ,
         t_konv TYPE TABLE OF komv WITH HEADER LINE .
  DATA: BEGIN OF tkomv OCCURS 50.
          INCLUDE STRUCTURE komv.
  DATA: END OF tkomv.
  DATA: BEGIN OF tkomvd OCCURS 50. "Belegkonditionen
          INCLUDE STRUCTURE komvd.
  DATA: END OF tkomvd.
  DATA : BEGIN OF tkomvh OCCURS 50.
          INCLUDE STRUCTURE komv.
  DATA : vtext LIKE t685t-vtext.
  DATA : END OF tkomvh.
  SELECT SINGLE *
    INTO ekko
    FROM ekko
   WHERE ebeln = p_ebeln .
  SELECT SINGLE *
     INTO ekpo
     FROM ekpo
    WHERE ebeln = p_ebeln
      AND ebelp = p_ebelp .
  SELECT SINGLE *
    INTO t001
    FROM t001
   WHERE bukrs = ekko-bukrs .
  taxcom-bukrs = ekpo-bukrs.
  taxcom-budat = ekko-bedat.
  taxcom-waers = ekko-waers.
  taxcom-kposn = ekpo-ebelp.
  taxcom-mwskz = ekpo-mwskz.
  taxcom-txjcd = ekpo-txjcd.
  taxcom-shkzg = 'H'.
  taxcom-xmwst = 'X'.
  IF ekko-bstyp EQ bstyp-best.
    taxcom-wrbtr = ekpo-netwr.
  ELSE.
    taxcom-wrbtr = ekpo-zwert.
  ENDIF.
  taxcom-lifnr = ekko-lifnr.
  taxcom-land1 = ekko-lands.
  taxcom-ekorg = ekko-ekorg.
  taxcom-hwaer = t001-waers.
  taxcom-llief = ekko-llief.
  taxcom-bldat = ekko-bedat.
  taxcom-matnr = ekpo-ematn.
  taxcom-werks = ekpo-werks.
  taxcom-bwtar = ekpo-bwtar.
  taxcom-matkl = ekpo-matkl.
  taxcom-meins = ekpo-meins.
  IF ekko-bstyp EQ bstyp-best.
    taxcom-mglme = ekpo-menge.
  ELSE.
    IF ekko-bstyp EQ bstyp-kont AND ekpo-abmng GT 0.
      taxcom-mglme = ekpo-abmng.
    ELSE.
      taxcom-mglme = ekpo-ktmng.
    ENDIF.
  ENDIF.
  IF taxcom-mglme EQ 0.
    taxcom-mglme = 1000.
  ENDIF.
  taxcom-mtart = ekpo-mtart.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE'
       EXPORTING
            bukrs                = ekko-bukrs
            component            = 'BR'
       EXCEPTIONS
            component_not_active = 1
            OTHERS               = 2.
  IF sy-subrc IS INITIAL.
    komk-mandt = ekko-mandt.
    komk-kalsm = ekko-kalsm.
    IF ekko-kalsm = ''.
      komk-kalsm = 'RM0000'.
    ENDIF.
    komk-kappl = 'M'.
    komk-waerk = ekko-waers.
    komk-knumv = ekko-knumv.
    komk-lifnr = ekko-lifnr.
    komp-kposn = ekpo-ebelp.
    komp-matnr = ekpo-matnr.
    komp-werks = ekpo-werks.
    komp-matkl = ekpo-matkl.
    komp-infnr = ekpo-infnr.
    komp-evrtn = ekpo-konnr.
    komp-evrtp = ekpo-ktpnr.
    CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
         EXPORTING
              comm_head_i = komk
              comm_item_i = komp
              language    = 'E'
         TABLES
              tkomv       = tkomv
              tkomvd      = tkomvd.
    CALL FUNCTION 'J_1B_NF_PO_DISCOUNTS'
         EXPORTING
              i_kalsm = ekko-kalsm
              i_ekpo  = ekpo
         IMPORTING
              e_ekpo  = ekpo
         TABLES
              i_konv  = t_konv.
    IF NOT ekko-llief IS INITIAL.
      taxcom-lifnr = ekko-llief.
    ENDIF.
  ENDIF.
  CALL FUNCTION 'FIND_TAX_SPREADSHEET'
       EXPORTING
            buchungskreis = t001-bukrs
       EXCEPTIONS
            not_found     = 1
            OTHERS        = 2.
  CALL FUNCTION 'CALCULATE_TAX_ITEM'
       EXPORTING
            i_taxcom            = taxcom
       IMPORTING
            e_taxcom            = taxcom
       EXCEPTIONS
            mwskz_not_defined   = 1
            mwskz_not_found     = 2
            mwskz_not_valid     = 3
            steuerbetrag_falsch = 4
            country_not_found   = 5
            OTHERS              = 6.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  p_mwsbp = taxcom-wmwst  .
ENDFORM.                    " calculate_tax

Similar Messages

  • Problem with Purchase Contract Item Price - 2lis_02_itm

    Hello !
    I used 2lis_02_itm extractor in order to extract the Purchase contracts (transaction me33k in R/3) with Item Prices. The problem is that the extractor takes the price
    from ekpo table but the Contract item prices exist in konp table and its very complicate to calculate the net price.
    Somebody know the solution ?
    Thanks In advance,
    MM. michal

    Thanks for your answer.
    I found out that all the subtotal1-6 are empty in my extractor.
    If you interest I found in R3 transaction  ME3P
    That update the prices from konp in  EKPO and all my problems solved.
    Again thanks , michal

  • PO net price updation with respect to contract net price change

    We have a requirement: Whenever net price in Contract is changed, net price in open purchase orders (for which GR has been not done yet) which are created with reference to that contract updated automatically.
    For example net price in a conract is 13 USD and there are 5 open POs. now net price (PB00) in contact is changed to 13.5 USD without changing the condition validity date, then it should be automatically updated in those 5 POs.

    Hi Manoj,
    This is possible using "Automatic Document Adjustment" functionality (MM - Purchasing -- PO - Follow-on Functions - AAA).
    Here's the process.
    1. Set Document Index active flag in pur. view of vendor master.
    2. Create work list (MEI4)
    3. Run MEI1
    2 & 3 above can be run daily via batch jobs which will pick up contract price changes and update relevant PO's.
    Cheers !
    Rajesh

  • Purchase Order Net Price not editable after GR/IR

    Hi Friends!
    I am facing a problem that, I want the price of the Purchase Order document should not be changed after the GR or IR is posted for this document.
    I have checked that making the net price field as display or M/06 is not the solution of the above mentioned problem.
    Can anyone help?

    Hi,
    If you want the price not to be changeable, set the tolerances in the IMG menu:
    MM -> PUR -> PO -> Set tolerance limits.
    Cheers

  • PO with reference to contract nett price decimal place

    In a PO  with reference to contract when user ordered qty 0.046 and contract price = $100.00 with a 7 % tax rate, SAP takes (0.046 * 100) * 1.07 = 4.922
    However as PO is up to 2 decimal place, the nett price is cut off to 4.92
    Thus calculation of PO price (4.92 / 0.046) = 106.95652173u2026
    When rounded off to 2 decimal places, it becomes 106.96
    But in actual fact, it should 107.00
    Is there any way I can bypass this error?

    HI,
    The only solution I see is to create smaller unit of measure in a way that instead of ordering  0.046 you order 46, 0r 460.
    Best Regards,
    Arminda Jack

  • MM purchase order net price clearing

    hie gurus
    after a field extension for MM fields in transaction me21 the net price is being cleared after pressing enter and an error message saying enter a net price greater than 0 is being displayed. hw cn i fix this problem?

    Hi
    Yet again another classic example of making structural changes to standard table field definitions.  The screen structure passess values to the work area and clears the screen field, calculations take place and the data is passed back to the screen fields but because of the changes effected the field definitions differed and thus a background error occured.
    regards
    Isaac Prince

  • To add Net price in Purchase order

    Hi,
    I have a sceneria where i need to add net price against line item which was marked as free in purchase order (Net price is 0). Subsequently material was deliverd from vendor and GI also was done. Goods receipt is also completed. This material batch number is consumed for custmer sales orders subsequently. There is 0 quantity available for this material in the plant. Now the user wants to change the net price to 2 for the line item. To change net price in purchase order, we tried to cancel GR material document.But we get an error that 'Deficit of unrestricted use' for the batch number.
    Can any one give us solution for changing the net price in purchase order?
    Regards,

    Hello,
    the only chance to add a PO price is to unflag the free flag in ME22N.  This is only possible when quantity received for the PO is zero. Therfore you must reverse the quantity received by doing a dummy receipt for the batch, reverse the GR for PO, you change the flag, set a price, redo GR for the PO, reverse the dummy receipt.
    Hope this helps, regards
    Michael

  • Default NET price reflected in to PO from contract

    Dear GURUS,
    i have one requirement as fallows,
    the net price should be reflected at the time of PO creation from contract when we create the PO wrt to the contract,
    please let me know the configuration for this in detail.
    rgds

    Hi lakshmi,
    No need to do any config settings to pick the Net price from contract to the PO.
    If you are creating the PO WRT contract system will always pick the contract net price only.
    Regards
    Karthick

  • Net Price Control in Purchase Order

    Hi
    Purchase Order Net price is coming from Info Record.
    My company want that NO changes should be made in the PO net price by user while creating PO and accept price coming from Info record only.
    How to do this. Please help.
    Sunil Kolambkar

    Hi,
    Spro>Materials Management>Purchasing>Purchase Order>Define Document Types
    Here check the "Field Selection Key" against the PO doc type
    (ex: Standard NB doc type the "Field Selection Key" would be "NBF")
    Then go to
    Spro>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level
    Select the " Field Selection Key" of ur doc type..Just Double click on that
    then click on "Quantity and Price", there you can see the "Price and price unit" field..
    against that field you can see three options, Reqd.entry  Opt. entry  Display...
    Here tick the field "Display", So that You can get this field in Change mode in ME21N trx...
    If you want you can create a NEW Doc type & Use it..
    Thx
    Raju

  • Pr created with reference to PM order , carries Net price in valuation tab

    Hi ,
    when a PR  is generated with refernce to a PM order automatically upon PM order releae, our observations are as below
    For a particulat purchasing group " Net price" is defaulted under valuation tab of PR and in some cases for another purchasing group " Do not adopt " is defaulted .
    may i know if there are any settings related to purchasing group  , user id specific for teh above values to be defaulted.
    these PM ordesr are created with refernce to contract and therefore we want theatthe Po should carry price from contract instead of carrying the price from material master .
    When the Pr is defaulted with " net price " , the po picks teh price that is maintained in material master instead of teh price in contract
    However when " do not adopt " is selected , the price in po is picked up from contract and it ignores the price in PR which comes from material master.
    we want " Do not adopt" functionality to be always on for the prices to picked only from contract.
    Kindly suggest

    hi
    try to chang eprice from item level condition tab (click on price update )
    now if this problem is persist check the inforecord for perticular pos

  • Purchase Order - Retrieve net price from Central contract (SRM or ECC)

    Hi,
    I'm doing a test by creating a PO referencing a Central Contract, which is made in SRM. When creating the PO, at this moment the net prices is retrieved from SRM.
    Question: Is it possible to retrieve the net price from the copied contract which is in the Local ECC system?
    (Customizing in ECC) SPRO -->Integration with Other mySAP.com Components >Supplier Relationship Management>Central Contract-->Price Calculation
    The value what is at this moment:   SRM Pricing Immediate
    Should the value be: 1 SRM Pricing Immediately Only for Hierarchy Contract Item
    Regards,
    Alexander

    Check for existing screen layout name from below settings -
    Goto SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define Document Types
    Check for Field selection key against the PO Type.
    Then goto below setting -
    SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define screen layout at document level
    Select the screen layout / Field selection key in this setting and modify the field selection group Quantity and price. Make Price and price unit as display only as per your requirement.

  • Net Price Calculation During Creation of PO with Reference to Contract

    Hi,
    While trying to Create Purchase Order through ME21N transaction ,
    For a line item When Contract and Contract Item is given as Reference then the Net Price of PO is calculated automatically , When Tried to Debug Standard code the Function Module "PRICING" is used to calculate this value.
    But i cannot use this FM as it has lot of Enhance ment Points / Spots .
    Please let me know if there ia any Function Module which Provides the Net Price for PO , When Contract and Contract Item is provided as reference.
    This Net Price is picked from Contract based on Scales and Number of Condition Types maintained in the Contract.

    Hi
    See SAP Note 201830 - Calculation of the net price of an item. Although it's for SD, I think that it could help you to understand how to do in MM (so, change V/06 by M/06, ie: pricing condition, V/08 by M/08 ie: pricing procedure).
    I hope this helps you
    Regards
    Eduardo

  • Creation of Purchase order - set net price in display mode

    Hello,
    During the creation of purchase order from contract or DA (ME21N-ME59N),  I want to set the net price in display mode (under any conditions) .
    Is there a parameter setting or a point of modification to make ithis?
    Thanks for your contribution.
    JLC

    Check for existing screen layout name from below settings -
    Goto SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define Document Types
    Check for Field selection key against the PO Type.
    Then goto below setting -
    SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define screen layout at document level
    Select the screen layout / Field selection key in this setting and modify the field selection group Quantity and price. Make Price and price unit as display only as per your requirement.

  • Net Price in Purchase Order

    Hi,
    We have contract with a vendor for a particular material with net price 1,483.59 EUR for 1000 PC. This net price is arrived from the below specified Item level conditions:
    Gross Price(PB00) : 1421.61 EUR for 1000 PC
    Surcharge(ZESC) : 4.360 %
    When the Purchase Order is created for 100 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,483.60 EUR for 1000 PC.
    When the Purchase Order is created for 10 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,484.00 EUR for 1000 PC.
    When the Purchase Order is created for 20 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,483.50 EUR for 1000 PC.
    When the Purchase Order is created for 300 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,483.57 EUR for 1000 PC.
    When the Purchase Order is created for 800 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,483.60 EUR for 1000 PC.
    When the Purchase Order is created for 900 PC(with reference to the above mentioned contract), then the net price picked proposed in the PO is 1,483.59 EUR for 1000 PC.
    Why is the net price fluctuating? Is there is any config setting based on which such differences are arising?
    Please guide me.
    With regards
    Krishna

    Hi Sanjay,
    There is no Scale price specified in the Contract.
    With regards
    Krishna

  • Vendor code in Purchase order changed after invoice,net price showing zero.

    Dear Experts ,
    In one purchase order , user had done GR & invoice for a line item ( service ),item category "D" , and
    thereafter somehow the system allowed user to change the vendor code. The PO line is now having amounts in
    the sub-service line items , but net price for the line item is showing as zero. Since the PO was made
    directly without any contract/RFQ/PR , there is no reference document or info record shown against the line
    item.
    In the conditions tab of Item details,the condition for basic price is not seen & since there are no amounts
    applicable for the other conditions such as insurance , octroi etc., the NET price shown for the item is
    Zero, which is also getting printed in the PO as zero , which is not acceptable , as we can not send to the
    vendor PO copy having prices for individual services printed correctly but the total gross price showing
    zero.
    Pl advise what can be done so that Net Price is shown correctly & not zero.

    I think the new vendor is having a different pricing schema than the old vendor. Check the pricing schema for the old vendor (in purchasing view in field 'Schema Group. vendor) and compare it to the new vendor. I think they're different.
    If it is then what i think happening is the user already input the price for the condition type in pricing schema A, then the vendor is changed and the new pricing schema is kiciking in thus making the old condition type missing.
    Try to either:
    A. Change to the old vendor back,
    B. Change the pricing schema of the new vendor to be the same with old vendor

Maybe you are looking for

  • Urgent: Need help in making report

    Hi, i am making a report in which i have to display the minimum level,maximum level,reorder level and stock level. Plzz tell me which tables should i use ? if there is a material which have 3 values and we have to display these as a sum of values in

  • I'm unable to log onto FaceTime on my MacBook Air

    I have recently acquired a MacBook Air but I'm unable to log onto Face Time. Any suggestions??

  • Tungsten T3 - need to access DAT file with addresses - Please Help

    I have an old Palm Tungsten T3. The desktop computer with the synced address data has died and the T3 has lost power (so no addresses anymore). I have a .DAT file backup with all my addresses. Can anyone advise how I can get access to these. Reinstal

  • OCI-22303 in by OCITypeByName

    Hi, I am getting an error OCI-22303 when trying to use OCITypeByName method. Basically I am trying to use publish-subscribe notification mode to get get notification whenever a new message comes in the queue. I am able to register my callback functio

  • Table Maintenance Generator for the table "J_1ISTATECD"

    Hi, How to create Table Maintenance Generator for the table "J_1ISTATECD". Can anyone please explain the steps for this. Thanks in advance.... Regards, Sriram.