Partner function in header level of sales order

Hi All,
During the sales order create/change (VA01/va02).
Depending upon the business unit i want to populate partner function.
I have modified the user exit "MV45AFZZ - userexit_save_document_prepare " and userexit_save_document .
i tried both the exit.
During debugging its deleting from the XVBPA table but its not reflecting in the final screen.
in final screen its showing the partner function from master data it is not updating from the exit.
<< Moderator message - Everyone's problem is important >>
Thanks in Advance.
Edited by: Rob Burbank on Nov 11, 2010 3:49 PM

you can populate  XVBPA-UPDKZ = 'D' for the row you want to delete from XVBPA.
I Hope it will work for you.
Thanks
Raj

Similar Messages

  • Rounding at Header Level in Sales order

    Hi all SD Expert,
    Question:
    Can rounding mechanism be applied at Header level in Sales Order?
    Summary:
    The government of Malaysia have implemented the rounding mechanism to the nearest multiple of 5 cents over the counter transaction. This mechanism shall apply to the total amount of a bill.
    Example:
    - $1.01 or $1.02 will be rounded down to $1.00
    - $1.03 or $1.04 will be rounded up to $1.05
    - $1.06 or $1.07 will be rounded down to $1.05
    - $1.08 or $1.09 will be rounded up to $1.10
    refer http://www.bnm.gov.my/index.php?ch=209&pg=657&ac=567 for more info
    My Problem:
    SAP Note 1165950 suits well enough for 1 item per sales order.
    Example:
    Total Bill =  $1.38 (posted to a dedicated G/L account)
    Rounding Adjustment = +0.02 (posted to a dedicated G/L account)
    Total customer to pay = $1.40
    But, if I have 2 or more item per sales order, my rounding mechanism does not meet the requirement. Example:
    Item 1:
    Total Bill =  $1.38 (posted to a dedicated G/L account)
    Rounding Adjustment = +0.02 (posted to a dedicated G/L account)
    Total customer to pay = $1.40
    Item 2:
    Total Bill =  $1.38 (posted to a dedicated G/L account)
    Rounding Adjustment = +0.02 (posted to a dedicated G/L account)
    Total customer to pay = $1.40
    Total Item 1 + Item 2 shown in header level  = $2.80
    In Header Level, the rounding figure shows +0.04 (rounding adjustment item 1 + item 2). I dont want my sales order to round the value at item level.
    The correct calculation to suit the regulation is:
    Item 1 + Item 2: $1.38 + $1.38 = $2.76
    Rounding Adjustment at Header: -0.01
    Total customer to pay = $2.75
    can someone help me?
    TQ
    Ezwardi

    Dear Tengku
    Please try with this.
    Go to V/08, for the net value field, maintain Routine 16 in the Alt. Cal. Type. Also add Routine 17 to Netvalue.
    As you know Condition types are assigned at each item level. So rounding off is calculated at each item level. But by assigning a tick in the Group Condition while defining Rounding off Condition, you can do rounding off at invoice level. The difference is automatically adjusted at each item.
    thanks
    G. Lakshmipathi

  • Partner Function "Vendor" missing when the sales order is replicated to ECC

    Hi Gurus,
    We are facing a problem on replication of functions partners between
    sales order of CRM and ECC.
    We have downloaded vendors (partners of table LFA1) from ECC to CRM
    following note 883162 and this replication was ok!
    We have mapped all partner functions from ECC to CRM and from  CRM to
    ECC for distribution of partners between systems.
    We must include a vendor using partner function '0000092 - Carrier' on
    our sales order, which is transferred to ECC. However, when the sales
    order is transfered to ECC, the vendor (which was included on CRM) is
    missing.
    When the sales order is created on ECC and the partner (type carrier)
    is included in,  the order arrives on CRM missing only the partner
    number, because the partner function is there.
    How to fix this problem?
    Best Regards,
    Nivea Faria

    Hi,
    See this Note : 975195
    Hope this helps.
    Best Regards
    Shiven

  • 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

  • Change the Payment Method at header level in Sales order document.

    Hi Experts,
    I have a doubt and a problem; I want to change the Payment Method at the header level however that is not possible never at header level is the same even either I chose other when I was creating the sales order document or I tried to change after that. The system allows changing the Payment Method but when I display the document after that the change is not done always is the same payment method. Maybe it is defined at customer or sales organization level.
    At item level it is possible change the payment method with any problem.
    Thank you and best regards.

    Dear Alberto
    Payment Terms can be changed both at header level and at item level in sale order.
    thanks
    G. Lakshmipathi

  • Modify Partner Function from Header level to Item level

    Hello experts,
    A help please!!!
    Scenery:
    I need to have: - When I create a Sales Order, I can have differents Carrier Partner Fuction for each line.
    Currently we have a Partner Function (Carrier) defined at Header Level.
    I need to modify it in order to have a Carrier Partner at Item Header.
    Many Thanks all,
    Barbara

    Hello Barbara,
    Go to SPRO - SD - Basic Functions - Partner Determination - Set Up Partner Determination -
    Select - Set Up Partner Determination for Sales Document Header
    Select TA - Standard Order & select "Partner Functions in Procedure" from left side.
    Go to the Partner Function of Carrer & make sure that there is NO TICK MARK in the "Not Modifiable" check box. (This will let you change the Carrier at Header level also, if required.
    Go to SPRO - SD - Basic Functions - Partner Determination - Set Up Partner Determination -
    Select - Set Up Partner Determination for Sales Document Item
    Select N - Standard Item & Select "Partner Functions in Procedure" from left side.
    Go to New Entries & Enter Carrier Partner Function & make sure that there is NO TICK MARK in the "Not Modifiable" check box. This will let you change the Carrier at Item level.
    Hope this helps.
    Thanks,
    Jignesh Mehta

  • Partner determination at item level in sales order

    Dear experts,
    I have 2 payers in customer master(sold to party). Is it possible to determine the partner function (Payer) at the item level in a sales order? I need to generate 2 billing documents with 2 line items. (1) Delivery related billing document (Item1) for which I want to bill to Payer 1. and (2) Order related billing document (item2) for which I want to bill to Payer 2.
    Currently the in the above process I am able to do it manually by changing the partner (payer) at the item level.
    Can the partner determination happen automatically based on the line items (Item category)? If possible, can it be restricted to document type?

    Dear Friend,
    The best option would be to enter / change the Payer manually in Partner Function.
    Or the other option is as you have entered 2 payers in Customer Master for a single sold to party, sustem woild be give a pop-up for selecting one of two Payer while creating Sales Order. But still you will have to change the Payer at Item Level...
    Also if Ship to Party is different then we have some option...
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Can the same partner function be entered in the sales order more than once.

    Hi
    I know that as per standard same partner function cannot be entered more than once in Sales order.
    If somebody has tried ways to do this please share.
    THanks
    Alags

    Yes. You can have multiple Ship to Party, Bill to Parrty & Payer in Sales Order. But Sold to Party will have to Unique & single.
    This functionality of having multilpe Partners is widely used & just follow as Deepak suggested above & you too can have multiple Partners of same type in single Sales Order.
    But there has to be a strong Business case in doing so... say different Ship tp Party for different line items in Sales Order or different BIll to Party for some line Items in Sales Order.
    Hope this helps,
    Thanks,
    JIgnesh Mehta

  • Business Area in header level of sales order

    hi Gurus
    i have one query that the szystem dont take the business area automaically(default) on header level
    whts the setting oftha
    i have already assigned the business are4 to Sales Are & Plant & division too
    and taken the rul 3 for that.................
    plz give me the solution for thi
    Suitable answers will be rewarded
    Regard
    Amol Gawai

    Hi,
    I think since plant and division both are derived from material master into the sales order, and your business area is assigned to your plant and division, then in that case it wont default from the header.
    Also if you assign it to your sales area, it will still take at item level.
    Hope this helps.
    Reward if helpful.
    Regards
    Ravi

  • Deactivation of Pricing Conditions at header level of Sales Order

    Hello there,
    We have used a routine in pricing procedure (BaseType Routine) to deactivate condition MWST in the MWST condition line in pricing procedure, transaction V/08.
    In the routine, We played with the KINAK (set to K )and KOBLI (set to space) flags of structure KOMT1 and XKOMV and delete the MWST entry in the TOBLI table and succeeded to deactivate the MWST at item level of the sales order. (MWST condition appear in the conditions tab at item level as inactive)
    We have created a sales order with only one item that has the MWST condition deactivated at item level.
    But in the conditions at header level the MWST condition does not appear. Shouldn't the MWST condition appear at header level but deactivated (with a yellow triangle next to MWST)?
    If yes is there a flag that we forgot to set?

    Hi,
    what is the table name you had mentioned
    TOBLI is it correct?
    Thanks
    mano

  • Pricing Conditions deactivation at header level of Sales Order

    Hello there,
    We have used a routine in pricing procedure (BaseType Routine) to deactivate condition MWST in the MWST condition line in pricing procedure, transaction V/08.
    In the routine, We played with the KINAK (set to K )and KOBLI (set to space) flags of structure KOMT1 and XKOMV and delete the MWST entry in the TOBLI table and succeeded to deactivate the MWST at item level of the sales order. (MWST condition appear in the conditions tab at item level as inactive)
    We have created a sales order with only one item that has the MWST condition deactivated at item level.
    But in the conditions at header level the MWST condition does not appear. Shouldn't the MWST condition appear at header level but deactivated (with a yellow triangle next to MWST)?
    If yes is there a flag that we forgot to set?

    Hi experts,
    Has anyone done the above mentioned before, please reply...

  • Profit Center at header level in sales order

    Hi Friends,
    Is it possible to have profit center entered at header level in a sales order. If yes then where.
    Regards,
    Wasim.

    No, profit center is always assigned at item level.
    One of the reason could be, items in a sales order can have different profit centers, hence assigning at header level will impact all the items.
    Regards

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Function Module to update the sales order header status

    Hi,
      I am looking for a function module to update the Sales order header status.
      Pls. let me know if anybody has used any FM to update the SO status.
    Thanks,

    By mentioning status do you mean Object status or Document status??
    For Object status you may use FM: STATUS_MAINTAIN
    For document status it changes according to flow.
    Regards
    Eswar

  • User Exit for Partner Determination in VA01, VA02 transaction ( Sales order

    Dear All,
    I have an issue in which i need to determine partner for every change in ship to party both at header and item level during sales order creation or change.
    Can you please suggest an appropriate user exit for the same.
    I have tried
    EXIT_SAPLV09A_003
    EXIT_SAPLV09A_004
    but they get triggered only when we enter into VA01 transaction and not when the ship to party is manually changed.
    If possible i want to avoid MV45 exits as there are chances of regression due to too many different functionalities already present in my system.
    In worst case scenario please specify the place wherein i need to code in MV45 exits and what are the fields i need to change.
    Most probably i filtered out on "USEREXIT_MOVE_FIELD_TO_VBAP" but i am not 100 percent sure on this, please suggest.
    Thanks in advance
    Ronak

    Hi,
    please use User exit function: EXIT_SAPMV45A_003
    Put your coding in include: ZXVVAU05 (create it by double clicking, if not already created) and activate.
    Regards,
    Sanjay Gogikar

Maybe you are looking for