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

Similar Messages

  • 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

  • Partner function for customer through IDOC

    Hi All,
    I have a requirement in which I need to create the customer master through IDOC. I am using DEBMAS basic type for that. In its functionality, I need to assign different partner functions to it.
    When I create customer without giving any partner details,  4 entries get created by default with partner functions as BP, SP, PY, SH and KUNN2 value as INTERNAL or the same customer number which is getting created. But I want that the customer number provided by me should be assigned as partner function. Is there any way to change the default entry which is getting created so that I can replace the INTERNAL customer number with the one provided by me.
    I identified the segment as E1KNVPM in it at hierarchy level 3. I passed the partner function in the PARVW field of it and provided the customer number which I want to assign as partner function in the KUNN2 field. But I am getting error Customer INTERNAL already exists for function <Partner function>.
    Am I missing something. Any msgfn or any other input.
    Please help me on this.
    Thanks
    Natasha

    Hi,
    Im facing similar problem
    Im trying to create the customer master through IDOC.
    I am using DEBMAS06 Idoc. 
    I need to assign two partner functions to it.
    When I create a customer with  giving  two partner details, 
    6 entries get created by default with partner functions as BP, RP, EM, SH and KUNN2 value as INTERNAL,
    two others entries (ZC,ZV) are created because this partner roles i defined to be created but KUNN2 hasnt assined value and request to fill it.
    I identified the segment as E1KNVPM in it at hierarchy level 3.
    I passed the partner function in the PARVW field of it and provided the customer number which I want to assign as partner function in the KUNN2 field.
    But I am getting error when  "Customer INTERNAL already exists for function <Partner function>".
    Am I missing something. Any msgfn or any other input.
    How can avoid this error?
    Please help me on this.
    Thanks
    Armand

  • 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

  • How to populate partner function for stock transport order in ME21n/ME22n

    Please advise is there any way we can determine the partner functions to be populated in ME21n.
    I have gone through sap note 117537 they said it is not required and not available in SAP standard way.
    Then tried implementing user exit EXIT_SAPMM06E_013 and populating the required partner functions in XEKPA[].
    It is getting triggered and i can see the values in table but after save i go and see in display ME23N i can't find any partner functions.
    Later i found some interesting thread in SDN use exit: EXIT_SAPMM06E_012 and get the values from (SAPLMEPO)XEKPA[] in case of ME23N.
    even this is not working.
    DATA it_ekpa LIKE ekpa OCCURS 0 WITH HEADER LINE.
    DATA name(50) VALUE '(SAPLMEPO)XEKPA[]'.
    DATA name1(50) VALUE '(SAPMM06E)XEKPA[]'.
    FIELD-SYMBOLS <f1> TYPE any .
    IF sy-tcode+4(1) = 'N'.
       ASSIGN (name) TO <f1>.
    ELSE.
       ASSIGN (name1) TO <f1>.
    ENDIF.
    it_ekpa[] = <f1>.
    Any idea ?
    Thanks,
    Mahesh gattu

    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 maintain default values for custom table fields --  Urgent

    Hi all,
    I've a requirement wherein i need to create a Z table (with maintainence view) in which i'll have date and time as two of its field which should have current date and current time as default value. Can somebody suggest as how am i to maintain the date and time fields defaulting to current date and current time.
    Incase if someone is unable to intrepret what i'm trying to say, please query me, i'll elaborate it further.
    Please give in your quick inputs which is highly valuable to me and also will be highly appreciated.
    Thanks in advance,
    Vaishnavi Varadarajan

    We have a following custom table which contains the fields “Date on which record was created” and “Name of the person who created the object”. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.
    Using the events, we can achieve this.
    Please refer the following link:
    http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
    Also,
    Write a form routine in table maintanance generator.
    1. SE11 > utilities > table maintenance generator
    2. environment > modification > event
    define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.
    Or u can do it as:
    Table maintenance generator is basically used to do table operations like (insert, delete, modify...).
    if you create table maintenance for your table it will build a module pool program, by using you do the above operations.
    below is the procedure to create table maintenance generator.
    1) Create one function group.
    2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.
    3) then give the authorization group and function group created abobe in the next screen.
    4) Then choose the "create" button in your application tool bar, which will creates the module pool program.
    5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".
    6) in transaction field give "SM30", select the check box "Skip initial screen".
    7) in the below of that screen you can find the "Default values" frame.
    8) there under the "name of screen field" select the "View name' and 'update".
    9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.
    save it then you can straight away use this newly created Tcode to maintain your table.
    Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).
    2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.
    cheers,

  • How will i configure partner determination for customer master

    how will i configure partner determination for customer master data.

    hi
    Check this
    BUSINESS PARTNERS AND PARTNER DETERMINATION
    In the partner determination procedure you can determine whether partner functions can or should occur in a partner object (Customer Master, Sales Document, Item Category etc.) For each object, in which partner function can be created, you can define partner procedures. This also means that
    For Customer Master
    For Sales Documents
    For Sales Documents and Billing Documents: for items
    We can define our partner determination procedure for each of these levels as shown below. In Blue are given the ones wherein the Partner Procedures are assigned to the Partner Objects
    Customer Master Account Group
    Sales Document Header Sales Document Type
    Sales document Item Item Category in sales
    Delivery Delivery Type
    Billing Header Billing Type
    Billing Item Billing Type
    Sales Activity Sales Activity type
    By assigning a procedure you determine for which account groups (for the customer master), which sales document types (for sales documents) and for which item categories this procedure would be valid.
    In the partner determination procedure you can determine for each partner function
    whether the partner function is an obligatory partner function
    whether the partner function can be changed in the document
    BUSINESS PARTNER FUNCTION
    By assigning a business partner function to a partner you can determine which functions the partner fulfils in the business process. Partner Functions are classified using partner type. The partner type represents the roles played by the business partner within the business transaction.
    Following partner functions exist in the standard process of Sales and Distribution
    Partner Type Customer
    Sold-to Party, Ship-to Party, Bill-to Party, Payer and Sold-to Party authorized to release against a contract. You can define the sold-to party authorized to release against a contract in the partner screen of a contract. This partner may only schedule orders with reference to this contract, even when he is not the sold-to party authorized against a contract.
    Partner Type Contact Person
    Contact persons are natural persons whom you must contact at the customers for business processing (e.g. purchasers) Contact person can be created directly in customer master record.
    Partner Type Vendor
    A forwarding agent is an example of a business partner on the credit side, who is included in a sales process. If you commission a particular forwarding agent for deliveries to a specific customer, you can define the forwarding agent in the customer master record as the partner.
    The other possible partner functions on the credit side in the sale process are interpreters, auditors etc. The forwarding agent is an agent who performs transportation services. This includes organizing the shipment, delivery and receipt of the goods, arranging the carrier services and handling the customs issues.
    Partner Type Personnel
    Employee Responsible
    Sales Personnel
    You can enter an employee from your firm as the person responsible:
    In the Customer Master – If the employee is normally responsible for processing transactions with this customer.
    In the Sales Document – If the employee is responsible for processing the Business Transaction.
    STEP WISE PROCESS FOR PARTNER DETERMINATION PROCEDURE
    Sales and Distribution->Basic Functions->Partner Determination->set Up Partner Determination->Set up Partner Determination for Customer Master.
    First go to OVT0 – create customer account groups. Here you make new entries, click whether it is a one time customer, description. Also you can do the field selection here for general data, co. code data and sales area data.
    Now go to IMG – logistics general – business partner – customers – control – define & assign customer number ranges define the number. Here you range that you want and assign it to your customer account group.
    Now go to VOPA – here the selection will be on customer master, click on partner procedures, create the partner determination procedure. The following steps need to be done in partner determination area
    Assign partner function to account group i.e SP,SH, BP, PY to account group (debit side ). Sales and Distribution->Basic Functions->Partner Determination->Assign Partner Functions on the debit side to account Groups.
    Then create Partner Determination Procedure.
    Assign the Partner Determination Procedure to Partner Function.
    Then finally assign the Partner Determination Procedure to acc group.
    Important Points in Business Partners and Partner Determination Procedure
    Partner relationship maintained/defined in the customer master is proposed automatically in the document header when you create a sales document.
    In customizing we can decide whether several partners can be assigned to one partner function in the customer master.
    In sales documents, the system is configured so that only one partner can be assigned to each partner function.
    We can define partners at item level in the sales documents.
    Business Partners that are defined at the header level however cannot be changed at the item level.
    You can prohibit anyone from changing a partner that has already been entered in a sales document.
    It is also possible to manually change or enter the address of a partner, such as the Ship-to Party. This change does not affect the master record.

  • Partner functions for a specific customer not seen in XD03 but appears in XD02

    Hello SAP Gurus,
    I have a situation where a partner functions for a specific customer not seen in XD03 but appears in XD02, In XD03 only one partner function (Ship to) appears but in XD02 (Sold to, Ship to, Bill to and payer appears), from the customer master I can see that account group for this customer has been changes to Sold to (Z001) from Ship to (Z002).
    I checked in settings for OB20 transaction for display customer centrally, it is in Display mode as required and not suprresed would like your inputs as to why this is happening and what can be done to fix this.
    Thanks and Regards
    Mohammed Roshan

    Hi ROshan,
      Open customer master in XD02  sales view and save it then check in XD03 it should display the partner functions.
    As you said the account group has been changed I think the records needs to be saved again.

  • Function module to give all partner functions for given customer

    Can anyone tell me function module name which gives all partner functions for a customer. For ex if we give customer number and sales area then it should give the list of all partner functions of this customer.
    I know 'CUSTOMER_PARTNERFS_GET' function module. But I want other than this.

    Hi,
    U can join VBAK and VBPA table and get the parrtners of the customer..
    Regards,
    Nagaraj

  • 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

  • How to define Partner function!

    I want to create a customer as a sold-to party in order to create a sales order.I have set up a account group name is internal sold-to party and use it by this customer,but at the tab of sales data I can't assign the partner function to this customer because of no possible entries exist for the field of PF!
        What can i do ?THKS
                                                              Brian

    Create your customer with the account group 0001-sold-to party.
    In case, you have created your own account group, check as to how the same is created/maintained and assigned in Sales and Distribution-Basic functions-Partner Determination-set-up partner Determination.
    Here one defines the rules that should be used to perform for automatic partner determination.
    When a customer master record is created, the SAP system proposes the allowed partner functions for maintenance. The partners are copied from the sold-to party's customer master records into the sales documents, according to the rules one has defined.
    Regards,
    Gaurav.
    Reward Points if solution is appropriate.

  • Settign partner function for vendor

    Hi..
    I am trying to configure partner function for a vendor who has different  oredring adress,
    Can anyone explain me the stpes / details of how to configure a Partner function for vendor so that when i give the partner function in PO the adress of the partner function should be displayed.
    And secondly if i create different partner function where do i maintain the address for each partner function.
    Suggestions will be rewarded..
    Regards

    Hi,
    check this thread
    Partner function
    thanks
    suresh

  • Partner functions  for vendor master in SRM

    Hi,
    We in SRM40 and extended classic scenario.
    we would like to implement Partner functionality in SRM.
    Do share the steps for configuration with details,
    Thanks,
    RK

    Hi
    Which SRM version are you using ?
    SPRO Path ->
    SRM SPRO - Configuration Path for maintaining Partner Functions
    SPRO -> Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Define Partner Functions
    Refer to following IMG Configuartion path and ensure that Goods Recipient entry is maintained in the system.
    Function Function_type Usage Description Abbrerviation Created by
    00000020 0002 B2B Goods Recipient GR XXX
    For maintaining Pricing conditions, see the related links ->
    Conditions for Pricing
    Pricing Conditions
    Condition types from SRM to backend
    Other related links ->
    Partner function Payee in SRM
    vendor partner functions EBP
    Re: Partner function not found
    Invoicing party ADDR_BILLT
    /message/4395909#4395909 [original link is broken]
    Hope this will definitely help. Do update me.
    Regards
    - Atul

  • Creation of new partner function for VENDOR

    Hi,
    I've a requirement to create some Partner functions for vendors while creation of vendor. Some Partner functions are available by default and some we need to add. but while doing a BDC we are not able to find how many of them are available or where to put the new Partner function?
    Please let me know, if there is any BAPI availble..
    Regards,
    Anupam

    Try below LSMW batch input method its very esay to upload data
    Object               0040   Vendor master
    Method               0001   Standard
    Program Name         RFBIKR00
    Program Type         B   Batch Input

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

Maybe you are looking for

  • OS10.5.1 - EyeTV2.5.1 won't power on Mac to record

    I was running OS10.3.9 with EyeTV 1.8.5 with the 410 hardware. I would program a recording overnight, and power off the mac. The EyeTv software would power on the Mac and the recording would be done. I'd have the mac setup to power down after the rec

  • How Offiline Data loading is possible from MS Access DB to Oracle DM

    HI All, I am new to Oracle. I am trying to migrate few tables from MS Access DB to Oracle DB (10g) I have used the migration utility from the Sql Developer tool. I was successful in creating the schema and also transferring the data for tables. But i

  • App.activeDocument.name  not giving the new name entered in save as option from the script

    When I open a document and use save as option and enter a new name. The app.activeDocument.name object is still giving me the old file name, it not giving the new file name that was entered in the save as option. However this issue is comming when I

  • ITunes doesn't play MP3 file anymore!??

    So I updated to iTunes 10.5 and now MP3 files sound all weird. But MP4 files play perfectly fine? Is there a way to fix this or should I call Apple or should I wait for iTunes 10.6?

  • JDBC-BRidge driver exception(for sybase database)

    i am using the weblogic 6.1 along with sybase anyware 6.0. I am using the weblogic pool for database connection. I am making the use of jdbc bridge driver for connecting to the database. I am geeting the datasource look up properly. But i am getting