BAPI_SALESORDER_CHANGE modify partner item level

Hi all,
i'm trying to modify a partner number, but i want to modify it only at item level, so the same partner in the header should not be changed. This is my code but it doesn't work
DATA: vb LIKE bapivbeln-vbeln.
DATA: cl LIKE bapisdh1x.
DATA: rt TYPE TABLE OF bapiret2 WITH HEADER LINE.
DATA: rt2 TYPE bapiret2.
DATA: pt TYPE TABLE OF bapiparnrc WITH HEADER LINE.
vb = '0001004933'. " your sales order here
cl-updateflag = 'U'.
pt-document = vb.
pt-itm_number = '000010'.
pt-updateflag = 'U'.
pt-partn_role = 'ZL'. "custom partner function
pt-p_numb_old = '0006500134'. "original number
pt-p_numb_new = '0006001502'. "new number
APPEND pt.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
  EXPORTING
    salesdocument    = vb
    order_header_inx = cl
  TABLES
    return           = rt
    partnerchanges   = pt
LOOP AT rt.
  WRITE: / rt-message.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    wait   = 'X'
  IMPORTING
    return = rt2.
The result table is something like this
TYPE ID   NUMBER  MESSAGE
S         V4     233             ORDER_HEADER_IN has been processed successfully
S         V1     041             No data was changed
Do you know what is wrong in the code? Thank you.
Best Regards,
Antonio

Hi Antonio,
Try passing the below values to the TABLES parameter PARTNERS.
BAPIPARNR-PARTN_ROLE
and
BAPIPARNR-ITM_NUMBER
Regards
HM

Similar Messages

  • 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

  • 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

  • Partner Function Address change at line item level - Item Partners checkbox

    Hi guru, we have a requirement that we need to change the address for partner function at line item level without changing the partner number. Currently the ship-to partner function address is automatically coming from the header although the number is modifiable but not the address (when double click into the partner number, the pop-up is grayed out). It is probably because the Item partner check box for the shipto partner is not checked (field name: SD_PARTNER_POSFLAG). However that field is not modifiable in VA02 either.
    If the shipto partner number is overwritten, then the item partner check-box is automatically checked and allows address chanage. Is there a way in the configuration that can default the 'item partners' checkbox for certain partner so the address can be changed without the need to overwrite the account?
    Any advice is appreciated.
    Thank you.

    If the item level ship-to party is derived from header partner function, but you want to change the address at item screen rather than header level.  On item screen, enter the same function, the same number again in a new line, "item partner SD_PARTNER_POSFLAG" is then ticked. Then proceed to the address change.
    No need to do modification.

  • 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.

  • 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

  • Line Item Level Partner Determination

    Is it possible to determine line item level payee partner based on product.
    Please advise

    Hi Mike,
    I have a similar requirement at my current client. Where you ever able to figure out a solution for this requirement, if you did could you please share the information how you guys did it.
    Thanks
    Shajeel

  • Item Level partner Details??

    Hi All,
    I do have invoice number and i can view the invoice using VF03.
    I want to know which Table store Item Level Partner Details?
    Thanks in advance.

    Thanks for your reply !!!
    from VBRP table below are the records
    VBELN        POSNR
    0090000123   000010
    0090000123   000020
    0090000123   000030
    0090000123   000031
    0090000123   000032
    And from VBPA
    VBELN        POSNR    PARVW KUNNR
    0090000123   000000   AG    UW1000
    0090000123   000000   RE    UW1000
    0090000123   000000   RG    UW1000
    0090000123   000010   WE    0000010001
    0090000123   000031   WE    0000010026
    Where in VF03, i can see partner at each line item. Partner for line item 20, 31 and 32 are not appearing.
    Let me know if you know some other table or way to get Partner deatils.

  • Is there a user exit to modify PO line item level..

    Dear Friends,
    Is there a user exit to modify PO line item level..
    Ravi

    Hi...I'm not sure on any available customer exits for this purpose. However you can use the check function exit 'EXIT_SAPMM06E_012' of customer exit MM06E005 and using memory pointers you can change the item level data.
    The other option is to use BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value. I would prefer the BADI rather than the customer exit.. Hope it works..
    Thanks,
    Jude

  • Add a partner at sales order item level?

    According to SAP note 380507 there is no partner determination on sales order item level.
    I've the following requirement: When an item with a certain item category is created a partner role/function should be added at the sales order item level.
    I've identified this userexit MV45AFZB / USEREXIT_CHECK_VBAP where I can add a line to iternal tabel XVBPA. Is use the fields:
    MANDT
    VBELN
    POSNR
    PARVW
    UPDKZ = 'I' (Insert)
    NRART = 'PE'
    FEHGR = '09'
    This works fine, the entry is correct displayed and stored in VBPA table in the sales order document.
    My challenge is that the incomplete log doesn't show that the partner role/function is still incomplete.
    When I enter the partner role/function manually (personal number = BLANK) then the incomplete log shows correctly.
    But not when I add it in the userexit.
    The behaviour should be that I add the partner role/function and the incomplete log should warn the user that he/she still has to enter a personal number for this partner.
    What to do?
    Thanks for your input, kind regards.
    Georg.

    Found the solution myself.
    Internal table XVBUV can be filled to generate incomplete log entries.
    Thx.

  • Partner Function- Sales Order item level

    Hi Gurus,
    I want to assigne Partner function -Employee responsible at sales order item level.
    i did the configuration settings and i am able to assigne the employee numner at sales order item level but i am not able to assigne partner function-employee resp more than 1. i want to assigne N number partner function- Emp Resp.
    kindly tell me the p

    Hi sumith
    As you want to assign N number of employees at item level . first of all go to IMG->sales and distribution ->basic functions->partner determination procedure->partner determination procedure at item level
    While doing partner determination procedure at item level don't check the boxes when you assign to your partner determination procedure. and just assign the sales  Employee partner function apart from the standard partner functions.(SP,SH,BP,PY).
    Now when you create the sales order and manually you can assign the sales employee number for all items.
    Regards
    Srinath

  • Change in partner at header level not getting copied to item level

    Hello,
    I would really appreciate any help from the forum on the below query.
    How is it possible that a change in the Employee Responsible(Standard Partner Function) at the header level is not triggering a change in the item level?
    Thanks,
    Sahil

    Hi Sahil,
    Please look into below note.
    It may hint you something.
    1008458
    Rgds
    Hari

  • Item Partner Indicator at Item level

    Hi,
    We have two item in sales order.For second item user make following changes,
    Requirements type changed
    MRP area changed
    Business Area changed
    Material Number changed
    Checking Group for Availability Check changed
    Net price changed
    Profit Center changed
    Tax classification material changed
    Shipping Point/Receiving Point changed
    Plant (Own or External) changed
    He has not done any changes in Partner Tab at Item level,then also indicator has been set for Item Partners.
    He has not done any changes at Header Partners too.
    Could you please help how this indicator has been set even he has not done any change in Partner TAB.
    Is this indicator depends on other item level fields in sales order?
    Thanks,
    Lalit

    In VA02, after entering the sales order number, go to menu Environment ->changes. Here you can find the details on whether the item partner has been changed by the users or not. Alternatively you can execute t.code  AUT10 and check the change details. If the partner is changed manually (even address changes made), then the flag item partner is checked by the system.
    For further details read OSS Note 380507 - SD partner determination: FAQ for the functions -POINT 2
    Regards,

  • Modify Delivery Date in PO at line item level

    Hi,
    when we create line items in PO, there is a fiels called dilivery date at line item level. I want it to modify by fetching the value of delivery date from custom table on the basis of some selection criteria during PO creation. Please anyone can tell us whcih user exit will work for this.

    hi,
          I think there is no customer exit available. Better try for the BADI.
    Use the BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value.
    Regards,
    S.Velsankar

  • Partner Functions Mandatory in Header and Item Level

    Hi Guys,
                   I want to Make Some Partner Functions as a Manatory in Header and Item Level,How to make it configure,Please give me
                   the solution.

    hi,
    please go to VOPA and select :
    after configuring the set up PD for customer master.
    then check the second and third ones
    FOR HEADER LEVEL:
    GOTO SPRO - SD - set up partner determinatin procedure- set up PDP for sales document header & select your PARTNER DETERMINATION PROCEDURE & goto partner functions in procedure and SELECT WHICH PARTNERS TO APPEAR AS MANDATORY & CHECK whether they are appearing in document header or not.
    FOR ITEM LEVEL:
    GOTO SPRO - SD - set up partner determinatin procedure- set up PDP for sales document ITEM LEVEL & select your PARTNER DETERMINATION PROCEDURE & goto partner functions in procedure and SELECT WHICH PARTNERS TO APPEAR AS MANDATORY & CHECK whether they are appearing in document item level or not.
    balajia

Maybe you are looking for

  • Bad hard disks may not be dead after all.

    I had a problem with a Tiger install - explained here - http://discussions.apple.com/message.jspa?messageID=8714240#8714240 and as a result, have found a way of 'saving' the original G5 disk, which to all intents and purposes was dead and buried. I h

  • Problem with CF MX7

    I have created a form with a results.cfm page and an info.cfm page. I checked my database against my page coding to ensure that the variable is correct in both places. However, when the info page is returned, it is blank and I get this in the url: ht

  • Apple Mobile Device Problems

    Hi guys.  I just need help on figuring this out.  My iPod was fine before but now its saying that the Apple Mobile Device is not working.  I looked up how to fix it and did what it said except I can't change it from disabled.  Please help and thank y

  • Suggest a good timesheet tool

    Hi Can anyone suggest a good open source tool for maintaining time sheet. I dont know much about the tools. Please help.

  • Why is iTunes quitting unexpectedly each time I connect my iPhone?

    All of a sudden, every time I connect my 3G iPhone, iTunes quits unexpectedly. I don't even have time to try to sync it or anything. Nyine else have this issue? What's going on?