Trigger partner determination when ship-to is changed on the sales order

Hi,
Here is my scenario...
I am defaulting my rail carrier partner function based on the ship-to party partner function into the sales order using the standard configuration i.e. by maintaining SH as entry in the "source" field for rail carrier partner function of the sales document partner determination procedure. Every thing is fine until the ship-to party in the order is not changed by the user. when the user changes the ship-to party the carrier is not re-determined (the old rail carrier partner function which defaulted into the order from the old ship-to party record stays in the document). I know standard SAP doesn't re-determine partners. Can anyone came accross this issue?
I would like to know if there is an user exit that i could use and write a code to trigger parter determination when a ship-to partner is changed in the sales order.
-Sree.
Edited by: SREE on Sep 15, 2008 4:40 PM

Hi,
Try to use user exit FORM USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ.
Regards,

Similar Messages

  • Program for mass change in the sales order.

    Hi,
      I have a requirement where If we make changes in  the availability check rule of the material master(for e.g. 02 to 01),then the same rule should be changed in the sales order as well.
      Though this will be changed for the new orders but is there any program which we can run manually or in the background in order to make changes in the old sales orders.
    Regards
    Karan

    Hi,
            U cannot change checking group or checking rule for availabillity check at sales order level, u can change requirements type.
            If u want to change requirements type determined into sales orders, which  r already created go to t.code MASS and select the object type sales orders and press execute, select sales order item data on tables tab,and select requirements type on fields tab and press execute.specify sales documents number from and to and item numbers, and press execute and specify the new value and press carryout mass change button and then save.
    with regards,
    kirankumar vemula

  • No more changes in the Sales Order

    Hi,
    The user should not change any values in the sales order from the Default master data.
    Say for example , the user should not change the Terms of payment , Incoterms, Ship to Party etc.
    Is it possible in Standard SAP ?
    Regards
    M. Lakshmi Narasimhan

    Check this below link,
    Transaction Variant - A Step by Step Guide for Creation
    http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation

  • Question for Plant determination when Ship-to Party changed

    Hello together,
    SAP determines the delivery Plant as everybody knows in the following way:
    1. Material Customer-Info record of the sold-to
    2. Delivering Plant from the ship-to-party
    3. Material
    In my case I have only set-up the plant to be determined from the ship-to-party (no plant in customer-material-info-record; no in material)
    I have two ship-to parties
    1 with plant A
    2 with plant B
    When I create the order everything works fine and the plant is determined correctly.
    Now I change the order (no subsequent document yet) from ship to part 1 to 2. Still I have on line item level the plant A, even so SAP gives the pop-up: Ship-to party has been changed: Redetermine plant/shipping point ? I click on redetermine, but nothing happens with the plant. (Material is set-up for both plants)
    Userexit userexit_source_determination is not implemented.
    Did anyone made the same experience. Any idea why the plant is not updated when the ship-to is changed? I checked OSS but did not find anything helpful.
    I

    The item was a BOM according to OSS 665080. This is standard behavior because the plant is not ready for input.
    Br,
    Lukas

  • How to tranfer changes in the sales order when the delivery is created

    Can anyone please help for the following scenario:
    Sales Order created --> Delivery created --> Customer calls to make changes in Sales Order.
    In this case what customizing is required so that the changes in Sales Order (including 1. qty & 2. delivery date or 3.Addition of new Line item) triggers changes in delivery.
    Many Thanks in Advance.
    Hiren Panchal

    As per my best knowledge ther's no such setting. Copy control works only when you are creating the delivery from the SO.
    So, I think you have two options - basically:
    - modify the already created delivery manually
    - delete the delivery and create a new one form the updated SO

  • Changes in the sales order

    Hi,
    What are the tables where i can see the changes made for a position in a sales order. I want to make a program/query to see when a user change the material code for a position in a sales orders.
    Thankyou.

    I don't know how to check in the table CDPOS a certain changes of the position in a sales document.
    As i said, i want to see when the material code was changed.
    I can't see in the selection screen the sales document numer or something else that can help me to find the document and the position changes.
    Could you help me with some indication?
    Thanks a lot.

  • Stored procedure if duty status is not changed in the sales order

    Dear Experts,
    I need one SP -
    My scenario is the duty status in sales quotation i have selected is 'without payment of duty ' by default.When i am copying the same to sales order by default it will pick up 'without payment of duty ',but i want to change it to with payment of duty if the user is again trying to change it to ' without payment of duty ' than system should not allow to add the document.
    Mona.

    Dear Mona,
    This forum is for DRQ to post your requirement for future B1 development.  Please post your questions on the main forum.
    Thanks,
    Gordon

  • Change pointer for Sales Order

    Hi,
    Using change pointers I want to create an IDOC when ever a specific field in the sales order line item is changed. I have activated the change pointer for message type ORDRSP. Also maintained the following entries in BD52
    VERKBELEG(Object) VBAP(Table) ABGRU(field).
    After this when I change this field at the sales order line item, it inserts entries into change pointer table.
    But my problem is creating IDOC's from those change pointer entries. I am not sure which function module (MASTERIDOC_CREATE_XXXXX) works for this.
    Anyhelp on this highly appreciated.
    Thanks
    Ram

    Hi Ram,
    I don't think so you can use change pointer for sales order changes. Usually, it is done through transaction code<b> NACE</b> - configuring condition for output type.
    You can setup requeirement in procedure control to trigger IDoc ORDRSP for any changes in item level.
    Hope this will help you and give an idea.
    Regards,
    Ferry Lianto

  • Scehdule Line Date getting change to future date once the Sales Order is saved

    Hello Experts,
    Good Morning to you all,
    This is with respect to the Issue we are facing for the Orders having Product Allocation on multiple materials. Please find enclosed the detials below.
    Issue : Scehdule Line Date getting change to future date once the Sales Order is saved. These Order's are having Product Allocation on multiple materials.
    Description:
    We have implemented Product Allocation few months back.
    We have Product Allocation on multiple materials which are in demand and has been reserved for the Customers of different PA behaviors.
    When we are trying to create the Sales Orders for the normal customer who is not on Product Allocation. The Order Schedule Line is getting changed to future date once the Sales Order is saved after initial creation.
    These Order's are having materials of Product Allocation.
    I have enclosed the sample screen shot of the error we are getting which saving the Sales Order and also the Order Schedule Line screen shot showing future date.
    Error Message : There may be Product Over Allocation in Delivery Group 001.
    Message No : VV023
    This is a random behavior we are coming across and out of 10 Order 2 or 3 Orders is getting this Issue.
    Please share your inputs how to rack this Issue.
    Your suggestions will be highly appreciated.
    I am unable to upload the attacments dont know what the reason.
    Thanks,
    Farhan.

    Check whether you need to carry out the coding corrections as recommended in the following note:-
    Note 52067 - Message VV023/VV024, but no prod.alloc.processing    
    But I wonder this is for older versions and not sure whether this would help you to overcome from the issue.
    G. Lakshmipathi

  • Condition type not flown(not determined) into the sales order

    Hello Experts,
    There is one discount condition type which is having proper condition records, validity date.However, it is not getting determined properly and is not flown into the sales order. the user wants to know why this may happen.I tried to reason it may be the sales order date and the conditon record date may be different or the condition record is changed after the creation of the sales order.neither of the reasons seem to hold good. any ideas?
    Regards,
    Raj

    Hello,
    I have looked into the analysis and asked him to update the condition by clicking on that.also, I found that the condition record is having a proper valid date. now the user would update only after knowing the exact reason why it did not flow into the sales order,he knows he has to update the condition but would not do so till he knows the right reason why condition is not determined in the sales order. now this is the situation.
    the probable reasons as per analysis of the conditon type are as follows(for your information). can it be one ofThere are different reasons for this:
    1)The condition was deleted manually in the item condition screen.
    2)The condition record was created later. Please note that order processing and pricing have buffer mechanisms. This means that a newly added condition record might only be found after order processing has been left completely and then started again.  them?
    Regards,
    Raj.

  • Tcode for displaying the changes made to sales order

    hi,
    i want to know is dere any tcode which displays how many times and by whom and what are the changes made to sales order.

    hiii
    use VA03 for display..
    also refer to following link
    Regarding 'display of changes in the sales order'.
    regards
    twinkal

  • New/Change Indicator for Sales Order IDoc

    Hi Gurus,
    Does anyone knows if there's a field in the IDoc Segment for ORDERS that shows or indicate if it's a new or changed order.
    We are sending IDocs to our freight company for sales order, but we are trying to see if there's a way we can let them know if its a new or changed IDoc for sales order.
    Is there any field for this or any work around on this?
    Thanks for your help.

    Segment Field ACTION is not been changed. I've just tested it and made changes to the Sales Order, the ACTION field is still carrying "000".
    Like thomas said, can this be because I'm using message type ORDRSP instead of ORDCHG?
    Does this make any difference?
    Edited by: Basil Balogun on May 10, 2011 4:54 PM
    Edited by: Basil Balogun on May 10, 2011 9:43 PM

  • Partner function SP determine in the sales order

    Dear SD Gurus,
    I want to determine the partner function SP in the sales order, when not entered anyvalue, the sales should give incopleteness check.
    But what the client here wants is that, sometimes the client wont enter any value on the sales order,so he will deleted the automatcally determined part function on the partner tab of the sales order header.
    Here the partner function should be not mandatory (because when the client wants to deleted the line ofn the header tab,system doesnt allow to do it). Also the partner function should not be not modifiable, because he may want to change it when sth wrong has been entered.
    So to automatically determined the partner function on the sales order,either modifiable or mandatory should be selected as I know.But when both are selected, this is not a good way for usage.
    Do you have any suggeston to make this partner functon automatically determine on the sales order and when wanted, deleted?
    Thanks
    Jack

    Hi,
    Try this way and see whether it's what is require by the customer.
    First of all what is this Partner function your talking about?
    Can you maintain this Partner function for each customer? If possible you can try this method.
    Go to below IMG path:
    Sales and Distribution / Basic Functions / Partner Determination / Set Up Partner Determination / Set Up Partner Determination for Customer Master
    Then highlight the "Partner Determination Procedure"
    Double click on "Partner Functions in Procedure" node
    If you haven't maintained your partner function there, add it
    Set it Mandatory if you want it to be set mandatory for each customer.
    Save
    Then go to below IMG path:
    Sales and Distribution / Basic Functions / Partner Determination / Set Up Partner Determination / Set Up Partner Determination for Sales Document Header
    Highlight the relevant Partner Determination Procedure for Order Header
    Double click on "Partner Functions in Procedure" node
    Add If you haven't maintained your partner function there, add it
    Don't Mark it as mandatory or not modifiable
    Save
    Now go to you customer master from XD02 transaction.
    System will ask you to add new partner function as it is Mandatory.
    Now create a Sales order from that customer.
    System will automatically copy that Partner function to you Order Header.
    If user wants to delete it, he can delete it from there.
    If user want to change it, he can change it from there.
    Hope this helps !
    Best regards,
    Anupa

  • Condition value getting changed when open the Sales order in VA02

    Hi Experts,
    i have creating Sales order manually in VA01, and for first line item of sale order, i have assigned value in custom field of additional tab B, to populate Condition value for condition type ZK01 and checked in VA02, VA03 same Condition value is there for condition type ZK01.
    And created delivery document and billing document for newly created Salesorder.
    When i have open the Sales order in VA02, then i am getting changed Condition value for conidition type ZK01 in bothe header and first line item and in VA03 there is no change in value.
    Kindly let me know the user exit or any related programs to this issue.Thanks in Advance.

    Hi Rajani,
    this sound like VOFM -> conditions. Do you know which conditions are active during the determination?
    Cheers,
    Stefan.

  • Billing Plan Billing Block Change when saving the sales order

    Dear Gurus,
    We have SD Integrated with PS. We create the sales orders and pull the billing plans milestones from WBS.
    Once we generate the billing plans, system will propose the billing block for all the line items of the milestones which normally comes from the billing plan configuration/item category.
    Would like to know the appropriate userexit to change the Billing block to "XX" if some of the requirements are not met when we create or change the sales document.
    Below is what i am able to see but seems to be not helpfull.. please guide..
    User exits in program RV60FUS1
        BILLING_SCHEDULE_DELTA
        For milestone billing a percentage value is fully invoiced for each billing deadline. In the case of deviations between the original item value and any later changes, you can use the user exit to determine whether the difference should be stored in the final invoice or sent to the next deadline.
        USEREXIT_MOVE_FIELD_TO_FPLT
        This user exit allows you to create your own fields in table FPLT.
        USEREXIT_MOVE_FIELD_TO_FPLA
        This user exit allows you to create your own fields in table FPLA.
    Reward points for the right answers..
    Regards
    Ram

    Dear Friend,
    I hope you can make it with the above user exits.Consult your abaper and try it.
    Thank you,

Maybe you are looking for