PO net value

Hi,
I am trying to get the PO net value . me23n - header section -  tab 'Conditions' - field 'Net'
on reading old threads i got some function modules
ME_FILL_KOMK_PO
ME_FILL_KOMP_PO
ME_DETERMINE_NET_PRICE
MM_NET_PRICE_CALCULATE
ME_GET_PRICE_CONDITION
ME_DETERMINE_SALES_PRICE
ME_PRICING_MARKET_PRICE
ME_SELECT_SOURCE_BY_PRICE
CALCULATE_TAX_ITEM
I am stil trying to figure out how to use these to get the PO Net value.
  I am not MM functional, I am an ABAPer
Could you please give any guidance ?
thank you in advance
dipti

Hi Dipti,
Please check this
ME_DETERMINE_NET_PRICE
  DATA:    BEGIN OF xa068 OCCURS 10.
          INCLUDE STRUCTURE a068.
  DATA:    END OF xa068.
CALL FUNCTION 'ME_DETERMINE_NET_PRICE'
        EXPORTING
          i_kotabnr = '068'
          i_komg    = komg
          i_komk    = komk
          i_komp    = komp
          i_kappl   = 'M'
          i_date    = sy-datlo
          i_kschl   = xa068-kschl
        IMPORTING
          e_komp    = komp.
MM_NET_PRICE_CALCULATE
DATA: T_KONP LIKE KONP OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'MM_NET_PRICE_CALCULATE'
    EXPORTING
      I_KOMK = KOMK
      I_KOMP = KOMP
    IMPORTING
      E_KOMP = KOMP
    TABLES
      T_KONP = T_KONP
    EXCEPTIONS
      OTHERS = 0.
ME_DETERMINE_SALES_PRICE
DATA: gtkomp TYPE t_stab_gtkomp WITH HEADER LINE.
CALL FUNCTION 'ME_DETERMINE_SALES_PRICE'
         EXPORTING
              I_EKKO                = EKKO
              I_EKPO                = EKPO
              I_T001                = T001
              I_BUDAT               = PREISDATUM  "= Buchungsdatum
              I_ONLY_LOCAL_CURRENCY = 'X'
         IMPORTING
              E_VKWRT               = GTKOMP-VKWRT
              E_VKWRA               = GTKOMP-VKWRA
         TABLES
              I_TKOMV               = TKOMV.
Best regards,
raam

Similar Messages

  • Free goods by header net value not Quantity

    Regards
    My client wants to make a sales promotions as the free goods SD. The difference is that free goods should not be given by the bought quantity of certain material, they should be given from the header net value of an order.
    For example:
    If a customer have an order with header net value of 100$ from only materials that has certain material pricin group, it should receive one free good.( All the materials in the order have the same material pricing group)
    If a customer have an order with header net value of 200$ from only materials that has certain material pricin group, it should receive two free goods.
    If there are ways to make this happen please let me know i would really appreciate it.
    Thanks
    Edited by: Ronald Caroli on Feb 13, 2008 9:13 PM

    Hi ronald,
    The userexit option is very tough to do.
    You are using a right userexit, but how are you coding it? Whats your design and flow?
    The BDC are programmable recordings of a standard transaction. Hence you will be able to record the way in which you add a line item to sales order. Ths recording is automatically converted into lines of code by SAP. Then you insert your checks and balances between these lines of code to make it behave the way you want the sequence of transactions to work.
    My thought was to make a recording of adding a new line item, in change sales order transaction(va02), with item category as Free of Charge(FOC). Then in the code, I wanted to check for material pricing group, if found correct, then would go finding the net value of sales document. If the value is above the limit, calculate the target quantity. Then follow the rest of the recording and add a new line with FOC as item category.
    But this was a seperate transaction, which could be applied seperately and not to be done automatically in sales order. This was becuase say if you switch off the promotion tomorrow, then you will not have to worry abt removing the same functionality from sales order, you just need to de-activate the transaction.
    Then there would be issues of doing hardcoding the net value limits, free good quantity in the user exit which is not at all recommended.
    Hope this helps.
    Abhishek

  • Contract net value problem

    Hi,
      I created a  material PO for net value 100 eur for a contract
    of target VALUE 1000 eur.Now i create a GR for
    that PO for 50 EUR.Now i set the delivery completed
    indicator,then i can set contract net value gets updated to 50 EUR.
    Now i created a service contract and service PO with
    same target value and net value
    But in the case of service po,i create a service entry sheet for 50 EUR,then contract net value is not getting updated to 50 EUR.
    Why it behaves differently for material and service POs?

    I have Simulated your issue..
    I have Created a Service Contract with Line Item 'D" for 1000 INR.
    Later I have raised release Order for 200 INR..
    as soon as the Release Order was approved , the Net Value in Contract updated to " 200 INR"..
    Still SES is pending for that...
    If you want I can send you screen shot...

  • Contract net value for Header Statistics is not correct

    There is issue with value contract. The net value for Header Statistics is not showing correctly for some contracts. Especially, when we delete the PO line items or reverse all entries (GR and IR) for PO line item.
    Contract has one line with account category ‘U’. The target value is 300,000.00 and total quantity released to date is 160,000. The net value for Header Statistics should be 140,000 but it is showing 600,000 which is over (double) the target value and user cannot release any further PO reference to this contract.
    Earlier I defined net price for line item 300,000 and I changed net price to zero and execute report RM06ENP0 but it doesn’t work.
    Please share your experience and thoughts.
    Thanks,
    Shah.

    Hi Jurgen,
    There are few Purchace orders with multiple line items and each line item for Purchase orders referencing the same line and same contract.
    There is only one Purchase order has two deleted lines against this contract.
    Theses deleted line's net price has changed to zero and there is no PO history.
    Contract released order value is correct as there is only one line, but net price is wrong. and user is getting error for target value is excedeed by $nnn when trying to create purchase order.
    Thanks,
    Shah.

  • Line item Net value is not coming in Header Net Value

    Hi All,
    I have four conditions
    1) A condition with condition cat.Price this is annual price condition and condition value comes from condition record.
    2) B condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes from condition record.
    3) C condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes through pricing routine(formula value).
    4) D condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes by USER EXIT (this value is basically pervious month condition C Net value) .
    5) E condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes through pricing routine (formula is condition C - D and resultant value should come in condition E)
    When i am creating sales order for Jan month sales order
    condition A , B, C is considered and value of condition E comes perfectly in net value column of line item and in net value of sales header matches.
    But When i creating sales order for Feb month sales order header net value
    condition A , B, C, D is considered and value of condition E comes perfectly in net value column of line item and in net value of sales header does not match. In net value of header system is considering only Condition value C.
    So my query is why system is considering condition C value and why not the Net value of line item.
    My PP is as follow:
    Step          Cond.type      From       to       Man      Reg     St   subtotal      Req   Caltype  Bastype      
    10     A                    X       2     
    20     B                    X       2     
    30     C                    X       2         601
    40     D                    X       2     
    50     Net value     30     40          X        1
    60     E          50                 2         25            5
    70     Total           60     
    Please help me where is going wrong.
    Thanks & regards
    Sree

    Hi Sanjay
    Just go to V/06 and check wheather header data has been checked or not. That could be the reason it has not copied to header data
    Regards
    Srinath

  • Static Credit Limit Check for Sales Orders - Net Value vs Credit Value

    We are testing order credit check and we have run into a problem with the Static Credit Limit Check.  The Static Credit Limit Check is set to use both Order and Delivery Values.  SAP uses the values in S066 and S067 to determine what values it uses to check against the credit limit.  Standard SAP uses the confirmed quantity times the credit price to get the order values - this is the credit value. 
    So the problem is, once an order is released it is set up so it does not go back on credit hold, so anything which is not confirmed (but could be) it a potential credit value which is unaccounted for in the credit exposure and the customer can go over the credit limit.
    Additionally, we run AFS and have items which are rejected with a J0 rejection code (unconfirmed) which have the potential of being confirmed and shipped and we want to include these items in the value of the order which is being checked against the credit limit (along with the deliveries, invoices and receivables).
    Here is a quick example.
    Customer has a credit limit of $100 (no deliveries, invoices or receivables - to keep it simple)
    Order 1 is placed with a credit value of $50.00 but a potential value of $100 (the other half is J0) - this passes the credit check since $50.00 is less than the limit.
    Order 2 is placed for $50.00 and has a credit value of $50.  This also gets approved.
    At this point, the credit limit used is 100% (based on standard SAP)
    Then Order1 backorder is confirmed and the new credit value is now $100.  This order now puts the customer over their limit and if the order had been released would not go back on credit hold and therefore the customer is not over their credit limit by 50%.
    What I want is for Order1 to be credit checked for the $100 not the $50 so the exposure is correct.
    Does anyone have any suggestions as to how we could use the Net Value of the order to perform the static credit check?  And any thoughts on how to determine the correct credit exposure (open order value plus items which are J0, plus deliveries, plus invoices, plus receivables)?
    I am thinking about a Z table to track the adjusted values on the orders and then use one of the customer checks to do a static credit check with the adjusted value.  And for the exposure, use the adjusted value to recalculate the values in F.35 to show a more accurate view of the credit exposure.
    Does anyone have an easier way to do this?  Any advice is appreciated.
    Thanks,
    Suzanne

    Hi Suzzane,
    In the scenario that you have provided, in the first order items worth 50$ are rejected. Hence standard SAP will not take this into account as this item is rejected.Two solutions can be provided here:
    1) The line item can have a delivery block instead of  a reason for rejection.This way the 50$ will get accounted.However, if this is against customer norms as this will appear in the order acknowledgment, this cannot be used.
    2) User exit can be used where a credit check can be triggered once the document value changes, even though the document has a released status.
    Hope this helps.
    Thanks,
    Vinu

  • Not able to cancel the Credit Note due to "Net Value could not be 0" error

    Hi Gurus
    We have created the Credit Memo Request with ref. to invoice and PGR , and  against that Credit Memo Request entered Credit Note .
    Credit Note is showing 0 Net Value and no accounting document generated .
    Further system is not allowing to cancel the billing document i.e. credit note .
    Pls. Suggest how can we cancel the billing document i.e. credit note and recreate it.
    Regds
    PR

    I wrote that system is not allowing us to create the cancel document with 0 net value.
    I need to cancel this document , so that i can recreate new one.
    Regards
    PR

  • Sales order report with Net value (NETWR) and Tax amount (MWSBP)

    Hi all,
            I would like to know if somebody know if exist a report of sales order where it can see the Net value and the Tax amount per sales order.
    Regards,
    Mariano.

    You can read those details directly in the table VBAP.
    There are fields for COST, Subtotal1, to subtotal 6, which carries values for netvalue, discounts etc. Depending on the system pricing procedure sub total set-up you can read the tax from one of the sub-total fields.
    You can develop an ABAP query by joining tables VBAK and VBAP, to get the required outputs if needed. Or you can download the VBAP values into an Excel application, where user can manipulate the details.
    Regards,

  • Sales Condition, but not totalling to net value in SO

    Hello,
    We have costs which we need to post to certain GL accounts, to do this I created new condition type (not have statistical ticked in procedure). This is for royalty process, whereby every SO which we sell to every customers, we will pay 3% of sales to another party.
    - Problem, if dont tick statistical, wrong values get posted to customer because we're adding 3% to credit customer.
    - If tick statistical, values dont get transfered to accounting.
    Is there any better way we can use to not allow values to be totalled into net value in SO, but still be able to bill and post to accounting?

    You can achieve this requirement by creating New Condition Type ( suppose XYZ ) with Calculation Type as Percentage & Plus/minus as -ve . Add this Condition Type below the Condition Type for Royalty Process (suppose ABC ) with Step Number as the one of  Condition Type ABC in From Column in the Pricing Procedure.
    You would have to mention the Account key for Condition Type ABC & maintain 100 % Condition Record for Condition type XYZ & no Account key should be assigned against Condition Type XYZ.
    Best Regards,
    Ankur

  • Net Value Key figure in Service Level: Order Items OSD_C12

    Hi,
    I'm trying to set up the Sales Analysis Business content for my Customer but I don't get the Net Value key figure to work. My customer uses TS as price unit (1 TS = 1000 PC). The net price are set to 35EUR / 1 TS. In BW the Net value don't consider the price unit and the Net value 3700EUR on the order is displayed as 3 700 000EUR.
    Another problem is that the price is not always defined in TS. Some times the price is defined by PC.
    Regards Kristoffer

    Hi,
    I'm trying to set up the Sales Analysis Business content for my Customer but I don't get the Net Value key figure to work. My customer uses TS as price unit (1 TS = 1000 PC). The net price are set to 35EUR / 1 TS. In BW the Net value don't consider the price unit and the Net value 3700EUR on the order is displayed as 3 700 000EUR.
    Another problem is that the price is not always defined in TS. Some times the price is defined by PC.
    Regards Kristoffer

  • In SES(ML81n) Dicsounted price not appearing in Net Value field.

    Hi Guru's,
    In Service po which is subjected to discount  net and gross price will display accordingly however  when i do the service entry(ML81n) for any discounted po  it displays same gross price even in the net value field in the print preview. Is this standard behavior of SAP?  if yes, then how to over come?
    Your feedback is highly appreciated.
    Thanks & Regards,
    Anil.G

    Hi Sangita,
    Pricing procedure is  MS0000 for SES. checked in both tables in header table ESSR its coming properly where as in ESLL its showing same gross value in Net which is not correct.
    Advice me on how to proceed.
    Thanks & regards,
    Anil

  • How to find the original net value for a cancelled sales order

    Hi experts,
    From VA03 or table VBAP, net value for those cancelled items is always zero. Where to find those cancelled items' original net value?
    Thanks a lot.
    Yu

    Thanks Seshu,
    I just tried it as per your suggestion but I found for non-cancelled items konv-kbert is not equal to the net value taken from vbap-netwr.  So I wonder if knov-kbert is the right original net value for those cancelled items.
    Yu

  • Excise Duty is not getting in Net Value

    Dear All
    Sales order, in condition tab  system is calculating Excise and CST. but in Net Value, its displaying Base price only
    But our requirement is Base price + excise + ecess in Net Value
    Plz suggest
    Regards
    Arun

    Better try to develop the habit of updating the forum as to how the issue is solved.  Else, just you click the "Answered" and close if you dont want to disclose in the forum.
    thanks
    G. Lakshmipathi

  • Not able to get net value in billing document vf01.

    Hello Sir,
    I am trying to create an invoice for  milestone billing plan. I have maintained copy controls  at item level as follows
    coplying req.  002
    vbrk/vbrp        001
    pricingtype     D
    billing qntty     A
    while i save contract and trying to create billing document  system is not able to show net value in billing document. 
    Please guide me to get the net value in the billing document.
    looking forward to reply.

    Sir, May I know what is the process to confirm milestone billing. as per my knowledge we release billing block and then billing document is processed.
    In my case even if i release billing block billing document succesfully created and saved but net value seems zero.
    I am not aware of complete proces.
    reply would be appreciated.
    thanks

  • In Credit Memo Net Value is coming 0.

    Dear SD Expert,
    I have created Credit Memo with Reference Credit memo request. While creating Credit memo (VF01) the Net Value is 0. But the Billed quantity is coming correct in the system. In Credit Memo request(VA01) every thing is ok, Quantity and Net Value are correct. But in credit memo net value is not coming as per credit memo request. I have also maintained Copy control(VTAF) for this. In copy control I have maintained following fields.
    Billing document to Sales document
    Choose sales document type [G2] and Billing document type [F2]
    Go to Header details
    [52] = Billing document header
    [052]:
    This routine transfers general billing header data from the reference document to target document.
    [103]:
    This routine transfers business data Ex: Inco-terms from preceding document to new document.
    [003]
    = Billing header partner:
    This routine copies Bill u2013 to u2013 party form invoice to sales document.
    Copying requirements [021]:
    (Billing header)
    This routine checks Sold u2013 to u2013 party, sales area, and currency is same or not when copying billing document to
    sales document.
    Item level
    = TAN
    153 = Item from billing document:
    This routine copies all relevant data from preceding document to new
    document at item category level (invoice to invoice cancellation).
    104 = Business data item billing:
    This routine copies business data from invoice to sales document.
    Ex:
    Inco-terms at item level.
    004 = Billing item partner:
    This routine copies Bill u2013 to u2013 party or payer from invoice to sales document.
    Copying requirements [303]
    = Always an item
    All standard items are copied into target document
    [] Uncheck copy schedule lines
    [X] Update
    Pricing type [D] = Copy pricing elements unchanged
    As per given information kindly guide me where I was wrong and what Input is requires?
    Regards,

    Hello Mancy,
    Indeed Naveen is correct to use Transaction VTFA.  Sample Standard Settings:
    HEADER:
    Target Billing Type = G2, From Sales Doc Type CR
    Copying requirements = 001:Header/order/related (can be customized of course)
    Hint: You may COPY item number from reference
    ITEM:
    Target Billing Type = G2, From Sales Doc Type CR
    Item Category Proposal <--THIS IS OPTIONAL (i suggest to leave this blank and input something only if you have a special business requirement wherein you need to change the item category in your credit memo, you may check Help/F1 for sample scenarios)
    Item Category = G2N <--this is the item category coming from your source document i.e. item cat. from your Sales Order
    Copying Requirements = 002: Item/order-related
    Data Transfer Routine = 002: Ord-rel.credit memo
    Pricing Type = D: Copy pricing elements unchanged
    Please let me know if this helps you.
    Kind regards,
    Eva

  • Error in net value

    hi all,
            in pricing procedure in i am using two condition type one is PR00 and other is TSP1 transporting cost. the netvalue is 100 + 13.50 = 113.50 is getting calculated in pricicng procedure. But the issue is only 100 is displayed in net value field of sd document and when billing is done only 100 is billed. plz give the possible solutions.
    Thank regards
    jagan

    Hi Jagan,
    If your problem is only in the output that is getting printed, then in the pricing procedure you will have to select the total of the price (PR00+TSP1) for printing and deselect Condition Types PR00 and TSP1 for printing if you want to print 113.50 as output. Or you can select both condition type so that you get the output of both value.
    If the problem is only one Price is being reflected then check in the condition type of TSP1 whether the Condition category is maintained as Surcharge. If it is maintained as Price then also the value will not reflect in the Net value. The reason being there can be only one Price in a Pricing Procedure.
    Hope this should solve the problem.
    Regards,
    Karthik.
    Edited by: KARTHIK KRISHNAN on Jun 9, 2008 2:06 PM

Maybe you are looking for

  • Configure SMTP to forward mail to a specific domain

    We have migrated all of our e-mail from on premise exchange to Office 365. To support internal applications that send e-mail such as our scanners, we have setup a SMTP relay server using IIS on Windows 2012. This is working very well however we have

  • Vendor Consingment

    Dear All, Can any one tell me how to make a consingment fill up  to customer ,from the vendor consingment  stock ( indicator K). Regards Satish

  • Table name in from clause

    Hi Gurus, Each day I am creating a table dynamically and the table name is stored in log table. End of the day I want to see that tables data(want to create a report based on that table). select * from ( select table_name from my_log where created_on

  • Unable to create content area item for RDF-report

    According to white paper "Security tips in Oracle Reports Services (release 6i with Portal 3.0)" I'm trying to integrate an Oracle Reports 6i RDF-module in my portal. All goes well including running the report from de reports definition file. However

  • Scenario: R/3 - XI - Third Party System: Manage queues

    Hi to all, my scenario is: an R/3 system which extract some datas -> XI -> datas are used in a third party system. In R/3 system I did a custom program which extracts datas and send them to abap proxy, this program is used by a key user who can execu