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.

Similar Messages

  • 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

  • Sales Order Approval needed when price is changed

    Gurus,
    Here is the Scenario:
    User creates a sales order. If he changes the price of an item or adds a discount, it is required that the Sales Order needs approval from the Manager. Please let me know how to proceed with this.
    P.S.I found a similar thread but it was not answered.
    Referal Thread
    Approval at the time of price difference

    Hi Manoj,
    This can be done by using status profile at the sales order header and with function module I_Change_Status, you can change the user status in background and the order would need approval from the manager before allowing to create any subsequent documents.
    So create user status in your status profile
    SPRO - SD - SALES - DEFINE AND ASSIGN STATUS PROFILE - SALES DOCUMENT HEADER
    10 - Order Created
    20 - Order Confirmed
    30 - Order changes pending approval
    40 - Order Rejected
    50 - Order changes approved
    Now your abapper can write a logic in program MV45AFZZ wherein, whenever something in the order is changed after the order has been confirmed (status 20), then the status would automatically be set to 30. ((This can be done changes made to pricing if order is still at status 10. You have to decide the best possible scenario, i am just giving you an overview))
    Now your sales manager can come and either make it 40 if he wants to reject it, or make it 50, if he is okay with the new rates or discounts if any.
    You can find what changes have been made in the order by going to Environment - Changes.
    This will give the manager a clear picture of which fields in the order have changed.
    I have used this concept and it works perfectly fine.
    Try and let me know.
    Reward points for contribution if helpful.
    Regards
    Ravi

  • Change the  sales order reason for rejection for line item

    Hi,
    i want to change the  sales order reason for rejection for line item.
    iam using bapi_salesorder_change.but i unable to change the sales order.
    if possible please provide me what are the fields necessary  for changing
    sales order reason for rejection for line item.
    Regards,
    Suresh

    This is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?

  • Sales order as complete and change the delivery status.

    Hello All,
    We  produces an order but then the customer calls and does not want the material so we in turn will scrap the material against the production order using transaction MB1A mvmt type 951 E. 
    Since the material were scrapped and no material were shipped against the sales order, the sales order u201Coverall statusu201D remains open and the delivery status is u201Cnot deliveredu201D.
    To close the order  we u201CRejected line itemu201D and moved on.
    I would like to know if there is another way we can set the sales order as complete and change the delivery status. 
    Regards
    Amit

    Hello,
    you can use the status profile for the same. but a better way would still be to use the rejection reasons . the rejectionr reasons are very well integrated with the document flow as well as transfer of requreiemnts to Production
    so a best practise would be to use rejection reason
    hope this helps
    Thanks
    akasha

  • HT1918 I have moved from south africa to the US and need to change all my billing details - I'm unable to change the country of residence part?

    I have moved from south africa to the US and need to change all my billing details - I'm unable to change the country of residence part?

    Did you click the "change country or region" link in your account information in the iTunes Store? If not, you need to do that to change your country. Note that you will need a valid US credit card or US iTunes card to enter as payment method.
    Regards.

  • Sales order display-how to change color of item with high level 0

    Please does anyone know how can i chenge the color of item with high level 0 in display of sales order in red or yellow so it can be seen better for better searching on page?
    thank you in advance...
    regards..

    You'd probably have to do a modification in SD for that. But what you can do, is make the higher level item not changeable. You could also set the display range to UHAU to only see the main items, do this in transaction VOV8. Or you could change your item category in VOV7 only to show main items.
    good luck

  • Sales Order Material Determination Cannot Change Quantity of the Sub-item

    Hi SAP Guru's,
    Has anyone encountered this scenario?
    1. Created a standard order with an item as material substitution
    2. Created a pro-forma invoice referencing the sales order created
    3. Went into VA02 to change the item quantity of the higher level item in the material substitution
    Expectation is that once you change the quantity of the higher level item, the quantity of the sub-item should also reflect whatever is in the quantity of the higher level item.
    Actual Result is that only the higher level item quantity is changed, the sub item quantity remained the same.
    Is there any configuration or copy control that we can check regarding this?

    Hi Maurice,
    Apologies! The qty of the sub item should change when you change it in VA02 even after proforma is created.
    Could you pls check the item categories TAX and TAPS config i.e. the material entered should get item category TAX and the sub item should have TAPS or the item categories should have same configuration as TAX and TAPS.
    Please check.
    Regards,
    Raghu.

  • Change sales order - for reasons of cost management item cannot be deleted

    Hello Friends,
      When I try to delete a line item from sales order below error is fired and it doesnot allows to delete the items which has a WBS element.
      The function name is :BAPI_SALESORDER_CHANGE
      The error message is as below:
        ORDER_HEADER_IN has been processed successfully
        For reasons of cost management, item 001001 cannot be deleted
        Error in ITEM_IN 001001
        KONVKOM has been processed successfully
        KONVKOM has been processed successfully
        KONVKOM has been processed successfully
        KONVKOM has been processed successfully
        KONVKOM has been processed successfully
        The sales document is not yet complete: Edit data
        Sales document 0002012766 was not changed
      Information
        Sales order: 0002012766
        Item       : 001001
        WBS element: 2012766-001 The wbs status is "REL"  
      I found a similar problem on the forum but not really a solution other than giving a suggestion as "Enter a reason for rejection at item level.".
    but when I put the field ORDER_ITEM_IN-REASON_REJ = 'Z1' and ORDER_ITEM_INX-REASON_REJ = 'X',the error is still occurring.
      'Z1'-WBS has been cancelled
      How can I remove this item from the sales order?
      Please help me.....
    Best Regards,
    bluebaby

    Hello Lakshmipathi,
      thank you very much for answering my question..
      But how I get the file SAP note 14097,I was search this file in SDN and google but cannot find this file,if you know pls give me a hyperlink to view the content,thanks a lot.
    Best regards,
    Sophia

  • Sales Order Text need to be copied to purchage order text

    Hi Experts,
    I have one  Requirement
    While creating or changing the sales order, sales engineer will enter text information in order in different text types at header and item level.  This information should get copy to PO header and item text automatically.
    How can we achive. plz give me any inputs how to proceed.
    Thank in advance.
    Venkat.

    Hi,
    You can use the functuion READ_TEXT to read the SO Text.
    Then refer to function SAVE_TEXT, you need to fill the structure THEAD with all PO Values and the fill lines directly.
    The text will be updated.

  • Converting Open Sales Orders after MM data changes

    Hello,
       We are 'upgrading' a live v4.7 system to now use MRP. We have many open Contracts/Sales Orders with the affected materials. We are looking for a way to have SAP 'recalculate' or 'reload' the material master and VC data for these open orders without having to create new contracts/orders. There are absolutely no changes to the data entered into the contract/order. But because the orders were created with the old material master information they will not generate the MRP requirements unless we go into each order and cancel the line item and re-enter it into the order. This would be a significant amount of work to do either manually or writing a program to create new orders based on the existing orders.
    Anyone know of a method or tool that will force SAP to reload the MM/VC config information into these existing open orders?
    I would think this is a common issue for SAP upgrades where the new system turns on MRP.
    Any help is greatly appreciated and good answers will get points.
    John

    hello, friend.
    i will still research the subject.  but the first thing that comes into my mind is t-code VA05.  with this, you have the option to change the Plant en masse.  so a possible workaround is for you to list a number of sales orders using VA05.  you then sort the line items by Plant.  choose all items with the same plant, change the plant via mass change... then change back to the original plant.  hopefully, the new settings should apply.
    do test a few sales orders by doing this for a larger scope.
    regards.

  • Sales order delete and rejecting the line items

    Hi,
    1 )What is the difference between deleting a sales order and rejecting all the line items of a sales order.
    2) Are there any pre-conditions for deleting a sales order.
    3) why there is a need to reject line items of a sales order
    regards

    What is the difference between deleting a sales order and rejecting
    If you delete a sale order, you cannot retrieve it or view it.  On the other hand, if you reject any sale order, at any point of time, you can retrieve that sale order and analyse as to why it has been rejected.
    Are there any pre-conditions for deleting a sales order.
    Certainly not.  Its all depends on the discretion of the user.  Of course, you cannot delete a sale order if any subsequent document exists.
    why there is a need to reject line items of a sales order
    Customer has placed an order and at a later date, due to some reason, they have asked the client not to proceed with production against that sale order.  Now if the Management decides to track such of those sale orders, you can assign reason for rejection and have it in system for record purpose.
    thanks
    G. Lakshmipathi

  • Block Sales order if pricing condition changed manually (no delivery)

    Hi,
    Requirement is to block sales orders for review by a manager if pricing condition amount is changed manually. Only a manager  should be able to review and release the sales order for billing. There is no delivery, item is service.
    Thanks

    Hi,
    This can be achieved as follows:
    1) SAP Standard updates the field KOMV->KSTEU for respective price condition type as soon as its changed Manually.
    2) Through enhancement automatically delivery block should be set at Sales Order Header, for which User (Sales End User) should not have rights to change.
    3) Respective Sales Manager should receive a mail regarding the same.
    Point '3' can be done manually i.e user will request respective Manager to do the needful.
    RB.

  • ALE / IDOC / sales order customer control record change

    I'm trying to look for a "standard" answer.  Here's my problem:
    Record comes into SAP with a non-sap customer number that needs translated to SAP customer number.
    Options I'm looking into:
    1.  Use the user exit and pull the customer characteristic from the customer master.  Based on the characteristics then convert the control record.
    2.  Use the user exit at the sales order create.  Based on the characteristics then convert the sales order and do not convert the control record.
    3.  Use standard EDPAR and convert the control record.
    The problems:
    If I use code to change the sold to custmer number at the control record level, I'd like to do the same thing at the detail level.  The standard SAP code uses EDPAR.  There are many different user exits based on the IDOC type in the system.  I really don't want to change the code for each one.
    EDPAR is maintained by IS.  However, the customer master is in the business hands and is easily used.  The customer master would be the perfered way to do things.
    Any suggestions?  Has anyone else had a problem with the customer number in the control record?  We used to do it prior to moving the record into the SAP system.  We would like to move away from that.
    Thank you!
    Michelle

    OK so we have a strange setup.  Yes, sold-to and ship-to is in the sales order.
    The customer number in the control record is really our SAP sold-to number.  It also is the partner number.   It is required for WE20.  However when the IDOC comes into our system our customer doesn't always send the partner number.  They can send their number for our company, the DUNS number or others.  We have to take that number and convert it to our partner number.
    While conversion from X12 to IDoc, based on the ISA ID or Sold-to party number you should map the correct SAP partner number onto the control record.
    Coming to non-SAP sold-to party number in E1EDKA1 segment, the same non-sap sold-to number can be mapped to this segment but you should maintain EDPAR Entries. (VOE4).   Yes, I found that EDPAR seems to be the way SAP is expecting the conversions.  However, we want our customer service to maintain the conversion.   That means that it has to be in a good format.  So I could write a Z transaction over the EDPAR table for easier maintenance, or use the customer master screens.  The customer master seems to be a logical place for custmer service to enter in the conversions.  However, EDPAR is what SAP is expecting.  So I decided to have them update the customer master via characteristics, and then use a BADI to send the information to EDPAR.  Use "standard" functionality to change the control record.  I believe it is a user exit.
    Any questions??  I always have questions.   I think the above solution will work.   We haven't prototyped it yet.   That will happen soon.    My question was very generic and probably hard to follow.  
    Hopefully this clears up what I think we are going to do.  Any other solutions would be appreciated.   The control record may or may not be correct when it is recieved.  So we need to convert.  Another requirement is that customer service has to set up the conversion values.  VOE4 is not a good transaction for non-technical people to use.   So we need a better way.  
    Again we have voted to try the above solution.  But I welcome any other suggestions.
    Thannk you,
    Michelle

  • Difference in amount in sales order and billing for one line item

    Hi experts,
    User created one sales order with three line items say line item10, line item20
    Line item 30.Line item 10 value is 5024.26 EUR in sales order. He did delivery for three line item and invoiced. But the problem is that the line item 10 value is changed i.e. 5024.28 EUR in Billing and the remaining line item values are correct. All the line items having same item category.
    I asked the user to cancel the invoice and PGI. He did that. And again he created the PGI and Invoice. But the value of line item 10 become 5024.27 EUR and again he cancels the invoice and the PGI. and again he created the PGI and Invoice. Now the value of line item 10 is correct i.e. 5024.26EUR in invoice.
    Note: No changes are carried out from sales order to billing and even in material also.
              I checked copy control settings also all are correct.

    Is the Item Category of that item different from the rest. If yes for that item probably pricing is redetermined. However if its the same somebody might have changed it manually.
    If all the item have same category then it is possible that repricing is carried out for all the items however it found new condition record only for that perticular item.
    Rings a bell ?
    Regars

Maybe you are looking for

  • BlackBerry 10 OS, Problem with Phone-book​(Contacts) applicatio​n

    Hi, I am using my Z30 as bussnes phone, thus I have over 1600 contacts in it. Many clients have 2 phone lines; one is phone only line & another that is FAX for incoming calls and it is also used as phone for outcoming calls, so the first line is not

  • How do I get my Apps back after upgrading to ios 5

    After ugrading to IOS 5 my apps are on my macbook (itunes) but cannot get them back onto the phone! How do I do it?

  • ITunes crashed while buying music...

    Alright, i bought a $25 gift card for itunes today, and i was happy, so i come home and i go on to purchase Motion City Soundtracks new album. However! when it reaches song five from downloading from itunes, my entire system freezes! so, i cant even

  • Sap note not found

    Hello, We were facing some issues with the extraction performance of price information after an update of material ledger in the ECC system. We were looking into the service system of SAP looking for applicable notes. After the search we concludes th

  • Problems with the 12.0.4 CS5 update aka poor support

    In my 30 years as a technical support director for national and global companies I would have been fired long ago if the customer suport I provided was as bad as this has been. Love the products -- regret the support. Since updating to 12.0.4 from 12