How to update partner functions in customer master

Hi all,
I want to update the partner functions for the customer master using transaction code XD02. I created the LSMW by means of recording but it doesn't work because the partner functions for the customer changes.
for example , certain customers have shipto paty, sold to party , bill to party payer and forwarding agent. some customers wont have all the above mentioned category.they may have only ship to party, sold to paty & bill to party.
Is there any other alternative way to update the partner functions for the customer. 
Regards,
A.Rathinaprakash

Hi A.Rathinaprakash,
Please use the FM 'SD_CUSTOMER_MAINTAIN_ALL' to maintain the partner functions in the customer.
Pass the partner details in the TABLES parameter T_XKNVP.
Regards
Chetan

Similar Messages

  • How to update partner function in PO.

    Hi guys,
      Please help me, How to update partner function in PO.(Transaction ME23N),BAPI_PO_CHANGE is not updating this.it gives error like partner roles not change.

    DATA :  li_return         TYPE TABLE OF bapiret2 WITH HEADER LINE,
                 li_popartner    TYPE TABLE OF bapiekkop WITH HEADER LINE,
                 lv_error           TYPE  FLAG  .
    li_popartner-partnerdesc = X1.
      li_popartner-langu       = sy-langu.
      li_popartner-buspartno   = 'vendor1'.
      APPEND li_popartner.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder = ebeln
        TABLES
          return        = li_return
          popartner     = li_popartner.
      LOOP AT li_return.
        WRITE / li_return-message.
    Check error
        IF li_return-type = lc_E OR li_return-type = lc_A.
          lv_error = 'X'.
        ENDIF.
      ENDLOOP.
      IF lv_error IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Is there any config issues are there And also I am going to pass any values .
    HI,
      How to update the confirmation tab in PO item level.
    I write this code tell me i am going to pass any values or not.
    DATA:
        li_ekes               TYPE STANDARD TABLE OF uekes .
      CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
                          EXPORTING
                            I_EBELN = lwa_z1confirmations-ebeln
                          TABLES
                            XEKES   = li_ekes.
                        IF sy-subrc EQ 0.
                        ENDIF.

  • Creation of partner functions for customer master with LSMW

    Hello,
    I try to create partner functions together with a customer via Batch Input in LSMW.
    Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
    I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
    When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
    Is it only possible to update partner functions with that BI or what is going wrong ?
    Thanks in advance and regards
    Alex

    Hi Alex,
    Could you specify what error message you are getting?
    Thanks!
    Rudra

  • BAPI to add additional partner functions in customer master(KNA1)

    Hello All,
    I wanted to add additional partner functions(2) to the list of partner functions which gets added by default while creating a customer. I am currently using BAPI_CUSTOMER_CREATEDATA1 to create the customer master. There i do not find any option to add my partner functions.
    NOTE: I need to update KUNN2 field as well while adding my partner functions.
    Could anyone please help here?
    Regards,
    Jay

    Hi,
    No you should not feel confident with SD_CUSTOMER_MAINTAIN_ALL.
    It is used for only one very special case. The maintenance of consumer. And this should only be true from the transaction itself.
    There exists other cases, one of the oldest one is the BAPI_CUSTOMER_CREATEFROMDATA1. But is is exclusively reserved for SAP Online store.
    Despite the fact CMD_EI_API is quite difficult to use, it has the main benefit that is it supported if being triggered directly.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    The only valid solutions are :
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Hope this helps
    BR
    Alain

  • Account Group and partner functions in customer master records

    Hi Gurus,
    I need your help to confirm the following understand if correct:
    1. To create customer master record for partner function Ship-To, need to create a customer master record using the uniquely assigned account group for Ship-To , that is, 0002 . In this ship-to master record, define in its partner function tab, the other partner functions related to it. 
    2. To create the above, it cannot be achieved by just assigning the partner functions in the partner function tab of SOLD-To customer master record , created using account group 0001.
    Question:
    1. How does the system know or allow what codes a user can select (f4) or enter manually when defining in customer master record's partner function tab, the partner functions and their respective codes?
    How is this controlled? Is it by user authorization? or will user / sales administrator be able to select any codes tied to a partner function?
    2. Lets say there are 2 partner functions : Sales employee VE and 9E called Sales Representative. Both of these partner functions are of Partner Type PE.
    When defining in customer master record's partner function tab, how does the system know what codes is selectable for the administrator for each of these partner functions?
    best regards
    M Russo

    hi russo,
    this is to inform you that,
    1. yes you are right.
    2. you need to follow the steps as you said.
    Question:
    1. that you can find in the search basing on account group for partners.  that assignment we should know russo which SH to be assigned to which SP.  no need to have authorization for that, make a note of the list of SH and SP to be assigned that's all.
    yes, he will able to select any SH from the list but make sure that we assign the correct SH to the list of SP.
    2. that you will be defining it in Partner Determination Procedures.  at the time of CMR creation you have to select the correct code that will get populated in sales order.
    hope this clears your issue.
    balajia

  • Add partner functions to customer master

    Hello,
    how can I add new partner functions to a customer master. Is there an IDOC available for that ? With DEMAS / DEBMAS06 I can only change the standard partner functions.
    Thanks for your help.
    Regards
    Alex

    Hi,
    No you should not feel confident with SD_CUSTOMER_MAINTAIN_ALL.
    It is used for only one very special case. The maintenance of consumer. And this should only be true from the transaction itself.
    There exists other cases, one of the oldest one is the BAPI_CUSTOMER_CREATEFROMDATA1. But is is exclusively reserved for SAP Online store.
    Despite the fact CMD_EI_API is quite difficult to use, it has the main benefit that is it supported if being triggered directly.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    The only valid solutions are :
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Hope this helps
    BR
    Alain

  • LSMW problem with Partner functions in Customer Master

    Hi All,
    Requirement is to load the Customer Master Data using LSMW.
    Loading General data is ok, But when I am planning to load the
    partner function using the recording method in LSMW, How do I upload
    more than '1' Ship to party partners and more than '1'
    Bill to party partners using LSMW.
    Normally in table control there is a "+" button at the end of the
    table control which when pressed enters one line in table control,In
    Partner function screen , there is no such button available, so how
    can I determine which line am I supposed to enter data using LSMW.
    One partner can have multiple no of BP and SH partners like more than 10
    of both types. How do I upload these partner functions in SAP using LSMW?
    Regards,
    Ajay

    That a customer master has several business partners is just usual, a customer can have as well several company codes and sales areas. So where exactly is the problem?
    Most problems come with recordings, recordings should be the last option, not the first.
    What import method do you use?

  • Partner functions in Customer master

    Hi,
    Can we maintain partner functions with out maitain customer sales area data, we need to maintain only general and company code data.
    Business scenario - 1. We have some certain customers like carrying only address purposses we dont need maintain company code and sales area, so is sytem creates partner functions once save this type of customers.
    2. same as said in point one some customers need general and company code data, dont need sales area, can system creates partner functions for this.
    regards
    Satish

    Hi Satish C,
                As already expressed by all other friends,
    Just would like to add,
    SAP has given 3 levels to maintain cusotmer relevant data ( General , Company Code & Sales area) & you are already aware of the same.
    But each level has its own importance & it can be based on how you would like to use the respective partners in specific transactions.
    for eg:
    in Billing- Bill to / Payer is required to have Company Code data & Ship to doesnt need to have Company Code data.
    In FI transactions- Customer doesnt need to have Sales area data.
    similarly, it all depends on how you want to use.
    NOte: if any partners using in Sales documents, should have General & Sales area data is mandatory. Company data is in billing.
    Just to maintain the address, if its ok with your client, you can go for different partner function ( if required in sales transactions) & add in sales area data.
    Regards,
    Reazuddin MD

  • Upload partner functions to customer master using LSMW

    Dear Friends,
    I'm trying to uplaod customer partner functions data through LSMW. I have tried to upload the data using recording method in LSMW(Tr. code: XD02).
    As per the business requirement, I need to upload multiple number(For example: 10 records) of SP(Sold to) partners to a single customer.
    While executing session, instead of adding all 10 records of partner functions, only the last record(i.e 10th records) is adding in the customer master.
    Your response will be highly appraciated.
    Regards
    Satish

    Hi Satish,
    You can't use XD02 to upload multiple partner functions by recording the transaction. It will not create multiple entries, always it will replace the existing ones with the new entry. you need to use the standard BI program or Idoc method do the same.
    I know the scenarios for the vendors it didnot work in that way for me at that time I used Standard BI method to create the multiple partner associations.

  • How to update partner function in ME_PROCESS_PO_CUST

    Hi,
    does anyone know how to update the partner function in PO? transaction ME22N or ME21N.
    I have checked the BADI ME_PROCESS_PO_CUST and there is no way for me to set the partner.. there is a method get_partners but i didn't find a way to set it..
    I cannot just modify the table EKPA since when creating PO, there is no PO number yet.
    Can anyone help? Please.
    Thanks

    Hi Esaki,
    1) Define new field selection in configuration "Define screen layout at Document level"
    2) write code in fieldselection_item_refkeys as follow
    get item data
    if your condition
      ch_key0 = new field selection
    endif
    Hope it can help u.
    Grace

  • Rg: How to upload Partner Functions in vendor master

    Hi All,
    I am doing LSMW batch input for vendor master. Since the client has different address for a single vendor, we use partner functions. So two lsmw are used, one for the different address and the lifnr is system generated. another lsme for the original vendor master witl the partner functions like Ordering Address, Invoicing party. The vendor number which is cretaed in first lsmw will be provided in the partner numbers for vendor the field is gparn. But while uploading the datas the partner numbers are not getting updated..
    so does any one have solution..
    thanks
    srivatsan

    Hi,
    You can make use of this Tgt Structure BWYT3,
    BWYT3 - Vendor Master Record: Partner Functions (Batch Input)
    In this you need to  pass the combination values of
    PARVW           Partner function
    PARNR           Number of contact person (batch input only),
    In field mapping you need use Conversion exit for both.
    Reward for helpful answer.
    Regards,
    Sivaram.

  • RE:Business partner functions in customer Master creation

    Do we need to send the Business partner functions while creating record in R3 thru MDM.
    For any account group i pass the Idoc is expecting all Business partner functions to be defined for the account group to which am trying to create Customer.(As SH,BP,PY..)
    Can anyone please explain me in brief the Business partner function -Problem in my scenerio............................Concept of  Business Partner function while creating Customer.

    In ECC partner functions are used when you have multiple addresses for the same customer.  The partner function links those address records together.  You could have multiple unique customer numbers on the KNA1 table, but in the KNVVP table (partner functions) you maintain the linkage between the main table records. 
    Partner functions are not recommended in MDM.  These are generally not considered to be "enterprise level attributes" and therefore shouldn't reside in your customer repository in a central create scenario.  Additionally, some of the complexity required to model partner functions can't be modeled in MDM at this time.  When 7.1 comes out, there is a new data type called "tuples" which supports deeply nested structures, and therefore you could model a true partner function table inside the sales area table.

  • How to maintain Partner Function for Customer

    Hi Guys,
                  I create customer using SD_CUSTOMER_MAINTAIN_ALL.
    Is there any provision to maintain partner type as well in this FM or any FM I can use to maintain partner type after creation ?
    Thanks

    I got it fixed my self.
    here is the solution.
    in user exit :EXIT_SAPMM06E_012.
    call below FM: MM_CALL_UPDATE_PARTNERS
    Trick is pass the partner values the one you wanted to below table: x_mmpa and xuekpa.
    you can calculate partner records from wyt3 table depends on your logic/requirement.
    CALL FUNCTION 'MM_CALL_UPDATE_PARTNERS'
         EXPORTING
           ebeln       = wa_ebeln
           bstyp       = 'F'
    *     knuma       = wa_knuma
           application = 'P'
         TABLES
           x_mmpa      = it_mmpa1
           y_mmpa      = it_mmpa2
           xuekpa      = it_uekpa1
           yuekpa      = it_uekpa2
           i_mmpa      = it_mmpa3
           u_mmpa      = it_mmpa4
           d_mmpa      = it_mmpa5.
    Thanks,
    Mahesh

  • How to update Partner function tab in ME21N Transaction

    Dear Guru's,
    I have a requirement to call a selection screen in ME21N transaction which will show list of vendors available. the selected vendor in the selection screen should be updated with parnter function 'CR' in the Parnter function tab of ME21N Transaction and EKPA table also.
    Thanks & Regards,
    Sridhar R Perumalla.

    Hi,
    Use the function module MM_UPDATE_PARTNERS  for updation ....and wite the code in ME_PROCESS_PO_CUST badi in process_header method...
    in PROCESS_HEADER method use GET_DATA to get the entered vendor number in PO.
    Thanks,
    Shailaja Ainala.

  • BAPI to Retrive the Partner Function in Customer Master

    Dear All,
    I wand to read the parner function list of an customer thorugh BAPI. please help me out.
    Kannan .S

    Hi,
    I think these will work for your scenario,
    BAPI_BPCONTACT_CHANGE
    SD_SALES_PARTNER_MAINTAIN.
    Regards,
    Ravi shankar

Maybe you are looking for

  • Preview "Slideshow Mode"

    Hey everyone, When I view a PDF in "slideshow mode" in Preview, I miss two features. Maybe I am blind and you can point out what to do: 1) The PDF always opens up on the main screen (I have a second screen attached to the MacBook, which I normally wo

  • Preview - where is the add link function ?

    Under Lion, Preview had a 'add link' function (useful to implement navigation from page to page in a PDF document). Do I undersand this function is gone in Mountain Lion ? Help still refers to it but iy is nowhere to be found ???

  • Move-in with a wrong Acct.det.id

    Hi, Please help me in rectifying a error : There is a consumer who was moved-in with a wrong acct.det.id, after move-in if we correct it by going through es21, is it a right procedure or should we do reverse move-in and then move-in with a correct ac

  • Is there an upgrade for IPad 1

    Is there an upgrade for IPad 1?

  • Demonstration of Web Services' power

    Hi, We have to give a presentation to our clients on Web Services. Most of the literature on Web Services say that applications hosted as Web Services are better than conventional distributed systems. It also say that "Changes introduced to the Servi