Repricing of all items in an Order

Hi All,
Can anyone help me out with the issue i am stuck with.
I need to recalculate the pricing of all items in an order when EEWB fields of a particular item is changed.
Any hints are appreciated.
Thank you.
Chan

Use TCODE CRMV_EVENT to trigger an appropriate Callback Function
Since this is an EEWB filed in the ITEM, you can use the following are any other based on your real requirement.
(1) Execution TIme = Immediately or END OF CUSTOMER_I or End of Item Processing or you can choose any other appropriate Execution Time - This will depend on what other fields are already available and if repricing can be really performed with the available information.
(2) Object name  = CUSTOMER_I
(3) Event = BEFORE_SAVE
(4) Callback Function = CRM_PRICING_I_NEW_PRICING_EC
See for yourself other options by selecting the right execution time, object and event.

Similar Messages

  • "All items from purchase order cannot be invoiced"

    Hello,<br />
    <br />
    I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
    <br />
    - Created via POWL (create with reference -&gt; invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
    <br />
    I am able to create invoices without reference.<br />
    <br />
    I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
    <p />
    I have not set up the following (do i need to?):<br />
    - Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
    - I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
    - Tollerances<br />
    <br />
    <b>edit</b> -&gt; i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
    <br />
    Help is very much appreciated

    Solved! Added SYS attribute for back-end system in organisational scheme.

  • Copy Sales Order Plant in Header to all items

    HI,
    can anyone tell me how to copy sales order header plant down to all items.  I looked in sales order maintain settings and can't config here.  Thanks in advance for your assistance.
    Stacey

    These were the first things I  checked when the issue started happening and have not found the source of the issue, all of the orders I checked. 
    1º  Customer Material Information (Info-Record) (sold-to/material)
    2º  Customer Master Data > Ship to Party
    3º  Material Master Data
    the issue is that the rush orders are intermittenly incomplete for some items missing plant.
    They have had different ship to's, sold to's and different materials on each order that has had the issue.  I have checked each one that is incomplete and it has the plant in the material master, the plant has been in the customer material info record, and the customer master data ship to party as well as in the material master mrp data itself. 
    I have not been able to consistently see a reason that this should occur so for a short term solution I wanted to use a user exit, set config or something to populate the plant in all incoming rush orders so they wont be incomplete.   The rush orders come in and ship the same day, they can't wait for someone to check the incomplete orders and manually populate the plant in the item on the order. 
    thank you for your help and explanations, but do you know where I can add this to user exit or something to fix short term always have the same plant in all items on this order type?
    Stacey

  • Partial delivery per item in sales order and ATP - schedule lines

    Hi,
    I've problem regarding ATP- schedule lines and partial delivery flag.
    In sales order there is flag Partial delivery per item B / 1 . That means create only one delivery even with quant 0. That comes from customer master or customer info-record and it is OK.
    Please look at next example.
    Customer requires:
    10 PCS of materail A on date X. Only 5 PCS are available on date X.
    10 PCS of material B on date X 0 PCS are available on date X, 10 PCS are available on date Y.
    So if we create outbound delivery on date X it will contain only 5 PCS of material  A. No successive deliveries will be created for material A because of the flag B/1. That item is closed.
    Problem is with material B.
    The sales order will be open because of material B and on date Y we can easily create another delivery with 10 PCS of mat B.
    That is wrong. Agreement with customer is only one delivery for ALL items in sales order. If we create delivery on date X it should contain only materials which are available on date X and sales order should close.
    Do you know how to fix this problem?

    Hi,
    I've think you didn't understand my requirement. I allways get schedule lines but they are confirmed on different dates.
    Example in same sales order we have:
    Schedule line for item A:
    DATE X confirmed quantity 10
    Schedule line for an item B.
    DATE X confirmed quanitity 0 (zeroe)
    DATE Y confirmed quantity 10.
    I would like to create outbond delivery on date X with:
    item A quantity 10
    item B quantity 0.
    And if that hapens than B/0 rule will work or reference customzing that you suggested before. So order will be closed because all items are processed or referenced once.
    Do you know how to do that?
    Regards

  • Reg WBS Element in Sales Order Line Item For Sales Order BOM

    Hi ,
    Greetings!!!!
    I have a requirement, in a Sales Order I am Exploding BOM. After that Projects will be Created.
    Once Project will be created i need to Assign WBS element for All Items in Sales Order.
    My requirement is When I assign WBS element for Header Material (Parent Item) system will auto assign WBS for Child Items.
    for this what Configuration I have to do.
    Please do need full.
    Thanks,
    Regards,
    Prasad.

    Hi Dayananda
    Check in transaction VTFL for given item category what copying routine are set. Check those copy routine and see if there is any data is being copied from table VBAP
    Similar to above also check transaction VTFA for copying routine (if any)
    As a standard SAP even we create an invoice with reference to the delivery document, still there are some data which is being copied from a sales order i.e. all pricing relevant information is copied from your sales order and not from delivery.

  • PURCHASE ORDER STATUS :When Deleting ALL ITEMS.

    Hi experts,
    I need  to make purchase order status stay  " Release Compleated " when deleting all items.
    Anyone Know How to do it?
    Or anyone Know how to use BAPI_PO_CHANGE in BAdI : ME_PROCESS_PO_CUST 
    In my project , I use Release Strategy of purchase orders, and there is a case of deleting all items.
    In this situation, purchase order status returns to "Active " and release strategy tab disappears.
    This is our problem.
    I need to make purchase order status stay  " Release Compleated " and prevent  release strategy tab disappearing.
    I tried to update the fields EREKZ(final invoice) and ELIKZ(delivery completed) in
    BAdI : ME_PROCESS_PO_CUST  Method : PROCESS_ITEM using BAPI_PO_CHANGE according to SAP Note 456691.
    But BAPI_PO_CHANGE couldn't update EREKZ because of our customize , and I couldn't find how to use
    BAPI_PO_CHANGE in the BAdI.
    Anyone know solutions to solve this problem?
    Thanks a lot.
    Regards,
    TKD

    Hi,
    please review the following information in SAP Note No. 456691 as
    copied below:
    18. Question:
    When are the header conditions updated if a purchase order item is
    deleted?
    Answer:
    If a purchase order item is deleted, the item is marked as 'statistical'
    (field EKPO-STAPO = X) and the change is reflected in the header
    conditions.
    However, if for the item the final invoice indicator(EKPO-EREKZ) or the
    inward delivery completed indicator (EKPO-ELIKZ) is set, the item is not
    marked as 'statistical' (EKPO-STAPO is not set) and thus the header
    conditions are not updated.
    I hope this helps you
    BR
    Nadia Orlandi

  • Order Output should be supressed when all items are rejected

    We have a requirement, where when all schedule lines in a sales order are rejected the order confirmation output should be suppressed.
    This is what we did to achieve it.
    Using the customer modification structure KOMKBZ3, add a new field ZZ_ALL_SL_REJ . This field is an indicator that will be set if all all items in a sales order are rejected.
    Call function KOMKBV1_FILL to populate the communication structure KOMKBV1. The function calls USEREXIT_KOMKBV1_FILL, which is the header level user exit routine.
    In this user exit, through a select statement read table J_3AVBUE, and check for all schedule lines if 'ABSTA' equals C, if this is true the ZZ_ALL_SL_REJ  indicator is set to ‘X’.
    Then in the output requirement routine 900, see if KOMKBV1-ZZ_ALL_SL_REJ is set to 'X', if so set the return code to be 4.
    However when we reject items in sales order and save it, we have to go back in again and save it for the second time for the output determination to be carried out again.
    Could someone help with this...
    Thanks.
    Anne

    I believe an easier method would be to check KOMKBV1-ABSTK in the output requirement. If it's 'C', then all items have been rejected.
    Cheers, Paul.

  • Unable to cancel - open purchase order where all items are removed

    Hi all,
    When We try to cancel/close open purchase order where all items are removed from item master ?
    It showing error message,
    "No matching records found  'Items' (OITM) "
    Purcahse order was created on may-2007.
    As purchase order showing in open item list.
    Any solution for this problem ?
    Jeyakanthan

    SAP does allow items to be removed from the item master with open documents, but only if the documents have not created journals.
    It does create headaches though, and this situation is one of them.
    If there are not many items, I suggest you recreate the items, close the PO and just cancel the items rather than remove them.
    The other workaround is to change the items on the PO to something different that is in the item master, then close it.

  • Calculate sales tax based on all line items on the order

    My users have asked to determin tax on the sales order, based on all the line items on the order. For example, if all the items are for product only, or if all the line items are for labor only, or if there is a mix of product and labor,
    Order 1
    line 1 product flag as both for vertex
    line 2 labor flag as both for vertex
    Order 2
    line 1 product flag as product only
    line 2 product flag as product only
    Order 3
    line 1 labor flag as labor only
    line 2 labor flag as labor only
    I do not see away to do this while the order is being created. In the order 1 example above, line one is entered, priced, and taxed as product only (it is the only line on the order at that time and it is product only). Line two is entered, it is marked as both. But I cannot send line item one back through vertex marked as both. Vertex processing is already complete.
    I have looked at using both FYTX0001 and FYTX0002. With both of these exits I can only work with a single line item, i.e. once item one is processed it will not go through the exit when item two is added.
    Any assistance would be appreciated.
    Jay

    Hi WCG,
    Our business is located in California as well. California is a modified-origin state, where state, county, and city taxes are based on the origin of the sale, while district taxes are based on the destination of the sale. You only need to add Sales tax when your customer's billing address is in California. I do not believe that Catalyst currently supports district based sales tax. You could look into a third party solution like TaxJar and see if it could be integrated into Catalyst. We currently charge our California based customers exactly what we would charge them in our retail store.
    So you want to do something like this:
    -Ryan

  • Cancel all items in the purchase order

    we need a program to cancel all items in the purchase order   .
    exists any BAPI or funcion or metod to do this ?
    becuase if we to do this for the TC ME22N we need to do this item by item.   
    our programmer  suggest us an update of the table EKPO

    Here is an example program using the BAPI to set the deletion indicator on all line items of a PO. 
    report zrich_0001.
    data:   return type table of bapiret2 with header line,
            poheader type bapimepoheader,
            poheaderx type bapimepoheaderx,
            poitem type table of  bapimepoitem with header line,
            poitemx type table of  bapimepoitemx with header line.
    data: iekpo type table of ekpo with header line.
    parameters: p_ebeln type ekpo-ebeln.
    start-of-selection.
      poheader-po_number = p_ebeln.
    clear iekpo.  refresh iekpo.
      select * into table iekpo from ekpo
                     where ebeln = p_ebeln.
      loop at iekpo.
        poitem-po_item = iekpo-ebelp.
        poitem-delete_ind = 'X'.
        append poitem.
        poitemx-po_item = iekpo-ebelp.
        poitemx-po_itemx   = 'X'.
        poitemx-delete_ind = 'X'.
        append poitemx.
      endloop.
      call function 'BAPI_PO_CHANGE'
           exporting
                purchaseorder = p_ebeln
                poheader      = poheader
                poheaderx     = poheaderx
           tables
                return        = return
                poitem        = poitem
                poitemx       = poitemx.
      commit work.
      loop at return.
        write:/ return.
      endloop.
    Regards,
    RIch Heilman

  • Need help in query to have all items in sap with PO data on order, date

    Hello Everyone,
    I need some help in writing a query to show all items in sap db to have itemcode, itemname, onhand, sellable(onhand-committed), on order, and the delivery date when that time should be received.  I need to know what items are regular items, which ones are master and components.  For the master I need to have the deliver date of the PO for the component.
    I have written this.
    SELECT DISTINCT TOP (100) PERCENT T1.ItemCode, SUM(T1.Sellable) AS Sellable, T1.OnOrder, MAX(T1.Docduedate) AS DeliveryDate, T1.WhsCode
    FROM         (SELECT     ItemCode, Sellable, OnOrder, '1/1/1900' AS Docduedate, WhsCode
                           FROM          dbo.V_RAZ_StoreInv
                           UNION ALL
                           SELECT     TOP (100) PERCENT ItemCode, '0' AS Sellable, Quantity AS Onorder, DocDueDate, WhsCode
                           FROM         dbo.V_RAZ_OPENPOSDATA
                           ORDER BY ItemCode) AS T1 LEFT OUTER JOIN
                          dbo.V_RAZ_ItemInfo ON T1.ItemCode = dbo.V_RAZ_ItemInfo.ItemCode
    GROUP BY T1.ItemCode, T1.OnOrder, T1.WhsCode, dbo.V_RAZ_ItemInfo.OnHold
    HAVING      (dbo.V_RAZ_ItemInfo.OnHold = 'n')
    ORDER BY T1.ItemCode, T1.WhsCode
    and for the v_raz_openposdata I have the following query
    SELECT     dbo.OPOR.DocNum, dbo.OPOR.DocStatus, dbo.POR1.WhsCode, dbo.POR1.ItemCode, dbo.POR1.Dscription, dbo.POR1.Quantity, dbo.POR1.OpenQty,
                          dbo.POR1.LineStatus, dbo.OPOR.DocDueDate
    FROM         dbo.OPOR LEFT OUTER JOIN
                          dbo.POR1 ON dbo.OPOR.DocEntry = dbo.POR1.DocEntry
    WHERE     (dbo.OPOR.DocStatus = 'O')
    Any help is greatly appreciated. 
    Right now I do get the delivery date for regular items and components but the master sku for the component all of them have 1/1/1900. 
    Thank you

    Thank you for replying Gordon.  I did not remember I had asked this before.  I no longer have access to the other account. 
    What I need on the query is that I want  a list of items with the on order quantity and when we are expecting this order to be received.  The receiving date is based on the PO delivery date.  The trick here is that  I need to Master sku to show the delivery date of the component sku.  In my scenario all components have the same delivery date for the Master sku.  If there are mulitple delivery dates because each warehouse is getting them on a different date then I want to get the delivery date for that warehouse.
    Let me know if this is possible and if yes please guide towards a query for it.
    Thank you.

  • Sales Order BADI need to change all items on save

    Hi,
    I have a specification where I need to set the delivery priority of all items on a sales document on save of the document, according to the gross weight of the items.
    I have tried to implement the user exit MV45AFZZ forms USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT unsuccessfully. This is because the changes made to table xvbap in the exits are only effected on the items that were either created or changed (the items that initially appear in yvbap in the exit).
    I have searched for a classic BADI (this is a ECC 5.0 system - no enhancement spots etc) and found BADI_SD_SALES_ITEM but am unable to implement this as I get the error "for SAP internal use only".
    I am out of idea.. please, some help would be highly appreciated.

    Check enhancements below using SMOD transaction.
    Create implementation using CMOD.
    SDTRM001  Reschedule schedule lines without a new ATP check
    V45A0001  Determine alternative materials for product selection
    V45A0002  Predefine sold-to party in sales document
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal
    V45E0001  Update the purchase order from the sales order
    V45E0002  Data transfer in procurement elements (PRreq., assembly)
    V45L0001  SD component supplier processing (customer enhancements)
    V45P0001  SD customer function for cross-company code sales
    V45S0001  Update sales document from configuration
    V45S0003  MRP-relevance for incomplete configuration
    V45S0004  Effectivity type in sales order
    V45W0001  SD Service Management: Forward Contract Data to Item
    V46H0001  SD Customer functions for resource-related billing
    V60F0001  SD Billing plan (customer enhancement) diff. to billing plan
    Especially pay attention to those which have name starting with
    V45A because VA01 transaction has been attached to SAPMV45A program.

  • Restriction of number items in sales order

    hi,
    how can i restrict no of items in sales order?
    eg:
    sales order has been created for 10 items and all the 10 items
    quantity should be 72 not more than that and system should
    not allow to enter the quantity.where we can configure for
    this.
    regards,
    balajit

    You have to try with User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT or USEREXIT_SAVE_DOCUMENT in the same program
    thanks
    G. Lakshmipathi

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • Report for deleted line-items in Transfer Orders

    Dear All,
    Please help me in writing the code for "Report for deleted line-items in Transfer Orders".
    regards,
    nishu

    Thanks. Repor completed.

Maybe you are looking for

  • Run ALV in Background JOB (DUMP)

    HI Experts, Before post  i have already  look at this forum and tried many solutions , im on  SAPGUI 7.20 and already creatde a doc container... so nothing has work yet... Im trying to run a alv report in a  scheduled JOB...!! Below the Dump Descript

  • How Do I Create A Link To  A Different Page?

    I'm using the v10.1.2 Portal. I created 6 Oracle Portlets implemented using JSP. I then created 2 pages within the same page group. On page 1 I put Portlet_1a, Portlet_1b and Portlet_1c. On page 2 I put Portlet_2a, Portlet_2b and Portlet_2c. In Portl

  • ISync: Sony Ericson 750i: How do I sort contacts by last name?

    Unlike apples adressbook, my cellphone (Sony Ericsson 750i) does not have different fields for "first name" and "surname", which means, that all my contacts are sorted by first name. How can I change this?

  • Oracle Development

    Job Title: ORACLE DEVELOPERS ALL LEVELS Reference No: OC636 Type of Company: TELECOMS Type of role:PERM Location:Central London Salary: #28-50k depending on experience Benefits bonus 25% of base salary, 10% contributory bonus, medical and dental care

  • IPhoto imports pictures in small resolution!

    This issue wasn't happening until a couple of weeks. When connecting my iPhone 4 to the computer and starting iPhone to import my photos, the result files are smaller than the original files. The information consigned in the iPhoto panel is that my p