To change/update/delete partner function in Sales order before saving it...

Hi! All,
I am having a unique requirement to change the partner function( BIll to party and Ship to party) for standard sales order in the  order save badi implemtation.
Please sugest a FM that will be appropriate for this functionality.
One more thing that i am able to do is that i am able to add one more BIll to party and Ship to party in the order but I am not able to delete the exsisting Bill to and ship to partner function from that order, SO if there is any Fm that will delete the exsisting ship to and bill to party my purpose would be solved.
Please provide your suggetionas how can I proceed further.
Thanks and regards,
Mayank

Hi,
use the CRM_ORDER_MAINTAIN FM for changing the partners. Fill in the IT_PARNTER and the CT_INPUT_FIELDS parameters.
For how to fill in I advise you set a breakpoint in this FM and do a partner change in the Sales Order Document.
You can also find a lot of threads in the forums regarding the ORDER_MAINTAIN FM.
BR,
Erika

Similar Messages

  • Need a user exit to add custom partner function in sales order @ item level

    Hi,
    Need a user exit to add custom partner function in sales order at item level. Goto --> Item --> Partner.
    Thanks,
    Thiyagi

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • Multiple bill to partner function in sales order

    How can a partner function be setup that it can appear more than once in a sales order ? 
    Need to make a sales orders with more than one "bill to partner".  When I add the same partner function with another customer in the header of the sales order I get error message VPD012  :  "partner function ZX can only occur 1 times in procedure ZEXP (sales document header) .
    I searched OSS,  and debugged for a while to try to find where that "1" is coming from. 
    In function SD_PCHECK_PARVW_COUNT_OK,  a counter is set to "1" based on the field TPAER-PAREI (line 86).  Allthough the flag "unique" is not set in partner function ZX, I get this error.
    Some further in the function, there is the comment :
    102     *     currently uniqueness of a partner is mandatory in sales docs, so
    103     *     if no CAS-Doc, partner has to be unique if not AA or AW
    Perhaps, in sales orders it is not at all possible to use multiple partners with the same partner function in sales orders ?
    Anyone having experience with this ?
    Thanks,

    Hi Dries,
    Even after you created your order you can maintain different bill to party.
    Go to VA02 screen
    Enter your order number.Enter.
    Goto item details Partners tab:
    Now all the details are in editable mode.enter your bill to party.Make sure your bill to party is in same sales area and company code as of sold to party.After entering the taxes will be redetermined message will come.
    Enter.
    Save.
    Now You do the same for all other items.
    Regards,
    Mohan.

  • 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

  • Issue while uploading Partner Function in Sales Order through LSMW

    Dear All,
    I have to make change some partner function at item level in existing sales order. I have created the LSMW for changing the partner function at item level. But while recording the system field (Field Name ) will maintained as beow:
    GVS_TC_DATA-REC-PARTNER(08)
    GVS_TC_DATA-REC-PARTNER(09)
    It will run successully when at line item the Partners which i have to change are availble at 08 & 09 level. But in some cases the partners are available on differnet position, in that case my LSMW will not work.
    Is there any solution for the same.
    Thanks in advance.
    PM
    Edited by: PM on Mar 7, 2012 6:47 AM

    Hi,
    This is the most common drawback while using LSMW. The position should be the same for all records to update the partner function. Else, think of of writing a BDC or manually updating it.
    Regards,
    Raghav

  • How to include a new Z Partner Function in Sales order header drop down lis

    Hello SAP experts,
    We have come up with a new requirement to include a custom Partner Function-ZI  in dropdown of SO header-Partners field.
    Current scenario- Presently we are maintaining this partner function  ( Say ZI-  Institute ) in customer master data-Sales area tab.There could be more than one partners under this PF in master data. While entering sales Order, all partners associated are displayed in Header- partners tab, where only SP, SH, BP, PY partner functions are displayed.
    Requirement- 1. Is to  provide Drop down of this ZI-Institute partner function (which I did not find presently) in SO header-partners field and user should be able to provide one of partner function as available in Customer master ( as there are more than one partners that can be set in Customer master data but user need to be able to provide ONE of this ZI partner fucntion in DROPDOWN of PF tab in SO header ).
    2. In addition, How can I link this new partner function in related sales reports against that particulat order and invoice?
    Kindly suggest your valuable inputs as what should be the procedure to get this.
    Many thanks in advance.

    Hi,
    Go to partner determination by VOPA
    OR
    IMG >> SD >> Basic function >> Set up partner functions >> set up partner function for sales document header
    click on partner function and Maintain partner function ZI  and back
    Then select your existing partner determination procedure (Standard is TA) and click on PARTNER FUNCTIONS IN PROCEDURE and add partner function. and make it mandatory so even user forget to mention then at the time of saving system can remind user 
    Then double click on PARTNER DETERMINATION PROCEDURE ASSIGNMENT
    Assign partner procedure to sales document
    Now when you creating sales order go to header partner tab and enter you institute partner number
    For sales order and invoice report
    Execute this report by selecting partner function ZI in VA05N and VF05 respectively
    kapil

  • Can we view  SH's partner functions in Sales Order?

    Hi All,
    SP has a different SH and FA is assigned to SH in master record. When we create order we can see all the partner functions of SP but we can't see partner functions of SH. User wants to see which FA is assigned to SH. We can only view partner functions of SH in delivery document. Is it possible to view partner functions of SH in sales order as well? Please suggest the ways to configure this setting.
    Thanks!!

    Hi,
    Yes, you can view . Check the Partner determination procedure, include the partner function SH to your partner determination procedure assigned for your sales order.
    Regards,
    Murali

  • Mandatory partner function at sales order item level

    Hi all,
    I'm customizing partner schema at item level for sales order. I have created a custom partner function, I put it in a new sales order item partner procedure and i set this partner function as mandatory (I want that system show me a message if this function is missing at item level in sales order). This partner function is defined only at sales order item level (not at header level or customer master).
    If i create and save a sales order with an item type that use the item partner procedure I have created, system don't show me any message for the item custom partner function missing, else if it is set as mandatory in sales order item partner procedure.
    I have read some posts in these forums about this functionality, but it seems a different situation.
    Someone had a similar type of problem?
    Thank you in advance for any possible suggestion.
    Regards
    Gianpaolo

    Hi,
    First you have to create a new partner function.
    Then assign that partner function to the account group.
    Then assign that partner function to partner determination procedure for the item category.
    Over here click on the mandatory button also.
    Then assign that partner determination procedure to item category.
    Then to XD02 and give your customer number and in the partner tab maintain the data for that partner function.
    Now go to VA01 and create your sales order you will see you partner function.
    If you wont have maintained it in the customer master then it will prompt an error.
    Regards
    Raj.

  • Copy partner function from sales order to WBS element

    Hello
    Does someone know if it is possible to copy the partner function and its assignment from the sales order to the WBS element?
    In our project, we create sales order with article having a strategy group (85) view MRP3. Thanks to that a network and a WBS element is created in background based on template. In the template a partner determination procedure is maintained => partner tab in the WBS element is displayed (CJ20N) but the partners maintained in the sales order are not populated.
    Is something missing in the customizing?
    Is it possible to do it in standard?
    Kind regards
    Chris

    Hello Tison.
    I guess you have the Project created with a BAPI in your system in background. As far as I have seen I'd try the following in ABAP to create Partners in the Project Definition: BAPI_BUS2001_PARTNER_CREATE_M or the corresponding method ProjectDefinitionPI.PartnerCreateMultiple. This should happen in background when the Project is created also.
    Best regards.
    Jens Schmid

  • Making Mandatory of Partner functions in Sales Order

    Hi All,
    My requirement is as follows:
    While creating configenment Issue with ref to Fillup, In Sales Order Header(Issue) Bank Partner function should be mandatory.
    For that I have tried:
    In Partner function i have made the Partner as mandatory( I have ticked on Check box(M)).But still it is solving the purpose.In fact in the Bank Partner customer Number is getting copied.
    Please advice for the same
    Regards,
    Vinay

    Hi Vinay,
    If you set field "Mandatory function" in partner determination procedure for bank Partner function,
    then the document is incomplete when the partner is missing.
    However, bank partner function couldn't be the only one mandatory function, because sold-to, ship-to, bill-to and payer are also mandatory according to standard design. Please refer to note 381062.
    Regards,
    Smile

  • Net value of sales order before saving in VA01

    Hi there,
    I'm currently working with the transaction VOFM whereby i need to get the <b>net value</b> of the current sales order in order to compare with a deposit value which the customer has made.
    a condition type is activated whenever the net value is < the deposit which the customer makes,i.e when sy-subrc EQ 0.
    My problem is that the routine in VOFM(where i have added my code),is triggered before i save the order, hence all i get as net value is always 0.00. That routine is again triggered after i save as well, but it doesnt work as i expected even if i get the net value then.
    I have in fact used the routine USEREXIT_PRICING_PREPARE_TKOMP of include MV45AFZZ, where i could get the net value from the field XVBAK-NETWR <b>after saving the order</b>.
    i thought that now it gets the right value, it'l work as expected but the fact that the VOFM routine is triggered before saving(hence net value 0.00), the condition type doesn't change after i save.
    Hence, my condition type is not being applied properly because the condition type is being activated already when it get the net value 0.00.
    Can anyone please tell me if there is a way to get the net value before saving?
    Thanks for your help.
    Regards,
    Meenakshi

    Hi,
    I have in fact used export flag to memory in FORM USEREXIT_PRICING_PREPARE_TKOMP from which i get the net value after saving.
    In fact, i have figured out the problem but still cannot solve it.
    What happens i that the VOFM routine is triggered more than once, hoewever, the first time it is triggered, i still havent got that net value. In this pass, when the routine ends, sy-subrc eq 0. Upon the next pass to the VOFM routine, i set sy-subrc to 4(condition type not activated), however the result is wrong. The condition type is activated still.
    if i do the contrary, i.e set sy-subrc to 4 on the first pass to VOFM routine and then set sy-subrc to 0 second time(condition type needs be activated), the condition type is not activated.
    what i dont understand is why the VOFM routine is only keeping the initial value of sy-subrc?Any ideas?
    Also, am doing my validations and setting sy-subrc in the form kobev_900.
    Am not using the form kobed_900 at all. Does this make a difference?
    Also, how can i do the validation only when repricing was called form SAVE process?How do i put the condition?
    Thanks for the help.
    Meenakshi

  • Partner function for sales contract

    Hi
    I have to extract Sales related data from SAP R/3 to BW.
    Facing issue if someone just changes partner function for Sales contract as they are not captured in any of the standard extractors.
    If there is change in partner function for Sales order then it gets captured in 11 vascl but if its for contract then it doesnt get capture.
    Any solution ?
    Regards,
    monika

    Hi ! Ivy
    I guess there is a option.
    Try this out. Use the menu path IMG> Sales & Distribution> Sales> Lists> Set updating of partner index
    In the resulting screen, click on 'New Entries' make entries 0 - for sales orders and 4 - for contracts as transaction group. Under the column 'partner function' ener the partner function for which you want the report and save your entries.
    Now when you go for executing your report, click on the push button 'Partner functions' ( Say in VA05) , you will have the option for selecting the new partner functions , select and execute your report.
    Provide your feedback.
    Regards,
    PATHIK

  • Allowing Changes to Sold To from a Sales Order

    I'm trying to prevent users from double-clicking on the Sold To, Bill To or Payer fields and changing the address at will.  I have tried to change the field setting to 'display' in OB20, but that has not changed anything.  Nor has limiting the 'Partner Functions in Procedures' worked.
    Is there a way to control this function?
    Best regards,
    Wendy

    When you say OB20, your subject says sale order which is confusing.  If you dont want the end users to make any changes in partner function at sale order level, you can try with sale order exit in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT.
    thanks
    G. Lakshmipathi

  • Updating and deleting Partner functions for functional location

    Hi ,
    I am having a requirement of updating and deleting partner function for functional location .
    If anyone can suggest some BAPI or function module for same .
    Thanks n Regards
    Manik

    Hi Fritz,
    Thank you for your response,
    My need is to create a PARTNERS for the FUNCTIONAL LOCATION.
    LET ME DESCRIBE IT.
    WHEN I AM CREATING A FUNCTION LOCATION USING IL01, AS I ENTER A FUNCTIONAL LOCATION AND PRESS ENTER IN THE NEXT SCREEN.
    AND
    I NEED TO ENTER THE PARTNERS FROM THE DROP DROWN MENU  GOTO ->PARTNERS
    WHICH TAKES ME TO THE NEXT SCREEN WHERE I NEED TO FILL THE INFORMATION IN THE TWO FIELDS : FUNCT & PARTNER.
    I need a partner for the functional location that i mentioned above.and i need to upload that information in through Emigall.
    So my query was that can we customize that partner for this functional location and if yes, what should the constraints,
    what are steps required? Do we require a custom service module?
    Regards,
    Robert.

  • Change of partner analyse in sales orders

    Hello,
    I changed the partner analyse for sales orders and added a new mandatory partnerrole.
    In new documents the partner analyse works fine, but in the existed sales documents I cant´t see, that a mandotory role is missing.
    How can I see that this role is missing in the exsting documents???
    Thanks for info
    Nicole

    You can create a custom report but there is no standard way to do this.
    When a document is created in SAP, it is a "snapshot" of that configuration, master data, and information as it exists when the document is created.  On the SD side there are a few things you can influence, for example, SAP contains some standard tools for mass updating of pricing information.  Most of the document exists in its unchanged state though. 
    You *may* be able to use VA05 and do this (although I doubt it, no system in front of me right now).  Other than that transaction or a custom report there really aren't a lot of options.
    If you are familiar enough with the tables, you can do a "quick view" or an ABAP Query to get the info.  However the SAP partner table is recursive so to avoid getting lots and lots of duplicates you will either have to add some code to a full query, or do offline manipulation of the data.
    If you're looking for soild SAP experience to help through some of these hurdles, please contact me.
    Bill Wood - President
    R3Now Consulting
    http://www.r3now.com SAP thought leadership!
    Platinum SAP Solutions
    (704) 905 - 5175
    http://www.linkedin.com/in/billwood

Maybe you are looking for