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.

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.

  • 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

  • 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 TAB" missing

    Some customers have NO "partner function tab" when you view them using XD03.
    This cannot transact VA01. error: "no customer master record exists for sold-to party"
    Other customer has partner function tab and it can transact on VA01 with no problem.
    What is happening? How can I add-up partner function tab on that screen?
    I am sorry. I am very new to this SD.
    Thank you.

    i agree with the solution proposed by phani.prasad
    one important thing about assignment of partner determination to customer gr. is sequentiality; that means the sequence in which you configure, create is very important and determines correctness.
    e.g.
    first create cust. gr. > then assign partner determination > then create CMR
    and not -
    first create cust. gr. > then create CMR > then assign partner determination > then go to XD02 and try to fix the CMR
    and not -
    first create cust. gr. > then assign partner determination > then create CMR > then reassign / delete partner function > then go to XD02 and try to fix/change the CMR
    this shall lead to errors in master data.
    i have experienced this.

  • Add field in customer partner function tab (XDnn)

    Dear all,
    I know that it is possible to add some specific fields in XDnn transaction, but I would like to add a field in the partner function tab in the customer master data.
    We can see : partner function, number, name, description and I would like to add the street in this screen.
    do you know if it is possible and how please ?
    thanks for your help
    Véronique

    Hi
    Until I know, it isn't possible. I think that you refer to table control TCTRL_PARTNERROLLEN in dynpro SAPMF02D 7324. I cannot see any BADI, enhancement or other tool.
    I'm sorry.
    Eduardo

  • How to update partner in SRM ?

    Hi expert,
    i have a requirement for updating the requester field in the shopping cart.
    Can u all please help me out on this.
    If some program code u have please send me ..
    Regards,
    Rahul

    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.

  • Update partner function in KNVP table using FM sd_customer-maintain_all

    Hi All,
    I have to update Partner Function ‘PARVW’  in KNVP table using FM sd_customer_maintain_all.
    I had already created a BDC program for updating which is running successfully.
    But  my requirement is to create a BAPI using FM customermaintain_all.
    Ex:  Tcode VD02
              KUNNR          PARVW             KUNN2
    Old data      123          Z1          70006666
              123          Z2          70007777
    Req. output      123          Z1          70006666
              123          Z1          70007777
    PARVW ‘Z2’  should not exist after updation.
    When updating, I am getting the error message to my inbox as
    “ Error Info...   F2 802: System error in table KNVP ”
    The above error is triggered while committing work after execution of  ‘SD_CUSTOMER_MAINTAIN_ALL’.
    The options I tried while looping at internal table containing kunnr, parvw & kunn2
    CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
    EXPORTING
        I_KNA1                              = w_kna1
      I_KNB1                              =
        I_KNVV                              = w_knvv
      I_BAPIADDR1                         =
      I_BAPIADDR2                         =
      I_MAINTAIN_ADDRESS_BY_KNA1          = ' '
      I_KNB1_REFERENCE                    = ' '
      I_FORCE_EXTERNAL_NUMBER_RANGE       = ' '
      I_NO_BANK_MASTER_UPDATE             = ' '
      I_CUSTOMER_IS_CONSUMER              = ' '
      I_RAISE_NO_BTE                      = ' '
        PI_POSTFLAG                         = 'X'
      PI_CAM_CHANGED                      = ' '
      PI_ADD_ON_DATA                      =
      I_FROM_CUSTOMERMASTER               = ' '
    IMPORTING
      E_KUNNR                             =
      O_KNA1                              =
      E_SD_CUST_1321_DONE                 =
    TABLES
      T_XKNAS                             =
      T_XKNBK                             =
      T_XKNB5                             =
      T_XKNEX                             =
      T_XKNVA                             =
      T_XKNVD                             =
      T_XKNVI                             =
      T_XKNVK                             =
      T_XKNVL                             =
        T_XKNVP                             = I_XKNVP
      T_XKNZA                             =
      T_YKNAS                             =
      T_YKNBK                             =
      T_YKNB5                             =
      T_YKNEX                             =
      T_YKNVA                             =
      T_YKNVD                             =
      T_YKNVI                             =
      T_YKNVK                             =
      T_YKNVL                             =
        T_YKNVP                             = i_yknvp ***
      T_YKNZA                             =
      T_UPD_TXT                           =
    EXCEPTIONS
        CLIENT_ERROR                        = 1
      KNA1_INCOMPLETE                     = 2
      KNB1_INCOMPLETE                     = 3
      KNB5_INCOMPLETE                     = 4
      KNVV_INCOMPLETE                     = 5
      KUNNR_NOT_UNIQUE                    = 6
      SALES_AREA_NOT_UNIQUE               = 7
      SALES_AREA_NOT_VALID                = 8
      INSERT_UPDATE_CONFLICT              = 9
      NUMBER_ASSIGNMENT_ERROR             = 10
      NUMBER_NOT_IN_RANGE                 = 11
      NUMBER_RANGE_NOT_EXTERN             = 12
      NUMBER_RANGE_NOT_INTERN             = 13
      ACCOUNT_GROUP_NOT_VALID             = 14
      PARNR_INVALID                       = 15
      BANK_ADDRESS_INVALID                = 16
      TAX_DATA_NOT_VALID                  = 17
      NO_AUTHORITY                        = 18
      COMPANY_CODE_NOT_UNIQUE             = 19
      DUNNING_DATA_NOT_VALID              = 20
      KNB1_REFERENCE_INVALID              = 21
      CAM_ERROR                           = 22
        OTHERS                              = 23.
    IF sy-subrc eq ‘0’.
    Commit work and wait.
    Endif.
    All above tables have a field called ‘KZ’ which has options
    U-update
    D-delete
    I-insert
    E-………(I don’t know)
    Ex: T_XKNVP structure = KNVP Structure + Field ‘KZ’.
    Documentation for this FM is not Available in English or German
    1.  I tried sending Z2  KZ as ‘D’ first &  Z1 with KZ as ‘I’ with business partner of Z2 (KUNN2)
         as single update.
    Ex: T_XKNP table
    KUNNR          PARVW             KUNN2          KZ
    123          Z2          70007777     D
    123          Z1          70007777     I
    2.  I tried it as a separate delete record and insert record i.e calling the FM twice .
    3.  I tried passing table  T_YKNVP with old partner data + TXKNVP table new partner data
    Ex: T_YKNP table
    KUNNR          PARVW             KUNN2          KZ
    123          Z2          70007777     U or space (I tried both one after another)
    4. All combinations for field ‘KZ’  are tried.
    Please help me to overcome this problem.
    I )   I need which parameters are to be passed to FM for updating partner function in KNVP table .
    II)   Do I need to pass structure I_KNA1 or I_KNVV to FM ? (Blank or with values corresponding to   
         partner function ).
    III)  Any sample code which can guide me.
    Even a small hint or clue from you will certainly help me.
    Thanks in Advance.
    AJAX

    i have the same problem. I need to update the partner function PARVW thru a program that i created. I tried to use this FM but it didn't work. Anyone knows another FM that i can use to update the KNVP table?

  • How to link Partner function with EDI ?

    Hi all,
    While sending PO thourgh EDI i am getting some error message...Partner function is not assigned with EDI..this message is not coming with ALE.
    Can any body help me to "How to link Partner function with EDI "?
    Thanks in advance.
    ankush

    Hi Ankush,
    Perhaps unintentionally, you are not rewarding points for correct answers, instead of clicking on the radio button"AWARD POINTS", you are clicking  "SOLVED BY OWN".
    and no points are being given from your side.
    Please award points if you find the answers helpful.
    Now also you can award points first, unassign by clicking again and then assign to whomsoever you think deserves.
    Regards,
    Sachendra Singh

  • How to add a new Tab in XD02 Transaction

    Hi all,
    How to add a new Tab in XD02 Transaction. please explain step by step.
    Thanks

    Hi Anil
    Goto T code OBD2 select your account type for which you want new tab. Click on details button above.
    On next screen you can see "Field status" box.
    Select (double click) on the view (i.e. General data or CC data or Sales data) in which you want to add new tab.
    Again on next screen double click on the field present under "Select group" box.
    On next screen go ahead with your settings, i.e. which fields you want and how.
    Save the changes. Goto XD01 and test the same.
    try and revert

  • 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 use Partner function in Purchase transactions(Purchase cycle)

    Hi,
    My issue is related to partner function i have defined the following customize setting .
    1) Defined partner role
    2)Defined Permissible Partner Roles per Account Group
    3)Defined Partner Schemas
    4)Assigned Partner Schemas to Account Groups
    5)Assigned Partner Schemas to Document Types
    6)created Partner role for vendor in vendor master given defrent vendor code for one partner type i.e given different vendor number to Invoice party (IP)
    7) crated PO and GR during IR when i click Detail tab there is Inv. Party Field which shows all the vendor master  i want only my Partner type there. how to archive this.
    actually my question is after define the Partner function how to use them in MIRO or MIGO i am not able to understand if some one know pls reply
    regards,
    Ashish Vats

    Hi
    The use of Standard Parner functions are as follows:
    1. Ordering Address (OA): The PO will be sent this vendor and not the main vendor.
    2. Goods Supplier (WL): In case of return deliveries, Goods will be returned to thsi vendor's address
    3. Invoicing party (RS): The payment will be made to this vendor.
    Hope this clarifies.
    Thansk

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

  • Regarding sample code to update partner function using SD_PARTNER_UPDATE

    Hi All,
    Please provide some sample code to update/add partner function using FM 'SD_PARTNER_UPDATE'.
    regards
    Vishnu

    A better option would be to use a break point on this FM while creating a sales order. That way you will know how standard uses this FM.
    Thanks,
    Vikram.M

  • How to Add Partner function in the main screen of the Sales order???????

    Hello All,
    I am working on ECC 6.00 SD module
    I want to add partner function in the main screen of the sales order, that mean add more partner function beside Sold to party and the ship to party to be in the order header, Is it possible and how?
    Regards
    Jacopo Françoise

    Hi
    If you want in the sales order , above the sold to party as the  box then you need to go for enhancements
    Regards
    Srinath
    Edited by: sri nath on Jun 11, 2008 6:56 PM

Maybe you are looking for