How to control partner function through security objects ??

Hi, theres any way to control witch Partner function are avalilable to assign in support messages ??
Theres any security object to control that ??
I have configured rules for automatic determintation, but in certains cases i need to assign manually.
I need to control this asignation Partner function
Any ideas ?? CRM_ORD_OP ??
Best Regards

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

  • Creation of new partner function through /AFS/BAPI_SALESORD_CHANGE

    Hi all,
    Can anybody help me to create partner functions through the bapi /AFS/BAPI_SALESORD_CHANGE ??
    In the selection-screen we will pass the vbeln, PARVW and kunnr values ??
    Any kind of little help is very much appreciated.

    thats all you need to pass to change the partner type like bill to or ship to.
    You dont create partner functions from this bapi. This is to change the sales order and the details in sales order. Creating partner function comes under SPRO.
    Ask you sales functional people to create new partner function

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

  • JUNIT : how to call static methods through mock objects.

    Hi,
    I am writing unit test cases for an action class. The method which i want to test calls one static method of a helper class. Though I create mock of that helper class, but I am not able to call the static methods through the mock object as the methods are static. So the control of my test case goes to that static method and again that static method calls two or more different static methods. So by this I am testing the entire flow instead of testing the unit of code of the action class. So it can't be called as unit test ?
    Can any one suggest me that how can I call static methods through mock objects.

    The OP's problem is that the object under test calls a static method of a helper class, for which he wants to provide a mock class
    Hence, he must break the code under test to call the mock class instead of the regular helper class (because static methods are not polymorphic)
    that wouldn't have happened if this helper class had been coded to interfaces rather than static methods
    instead of :
    public class Helper() {
        public static void getSomeHelp();
    public class MockHelper() {
        public static void getSomeHelp();
    }do :
    public class ClassUnderTest {
        private Helper helper;
        public void methodUnderTest() {  // unchanged
            helper.getSomeHelp();
    public interface Helper {
        public void getSomeHelp();
    public class HelperImpl implements Helper {
        public void getSomeHelp() {
            // actual implementation
    public class MockHelper implements Helper {
        public void getSomeHelp() {
            // mock implementation
    }

  • 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

  • PR05 - How to activate a Function in the Object Services Toolbox

    Hi,
    How do I activate a function in the Object Services Toolbox?
    In transaction PR05 (Travel Expense Manager) select any trip and then click on 'Change'. This takes you to the screen for the individual trip.
    On the top left of the screen is the 'Object Services Toolbox'.
    If I drop down on this list then select 'Create' there are 5 options under 'Create' i.e. 'Create attachment', Create Note', 'Create External Document', 'Store Bus. Doc', and 'Enter Bar Code'.
    The 'Enter Bar Code' is deactivated. I would like to know how to activate this.
    Thank you.
    Warren.

    no idea

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

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

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

  • How to define partner functions in ECC 6.0

    Hi All,
    I'm using ECC 6.0. I tried the IMG path "Sales and Distribution -> Basic Functions -> Partner Determination". My document says I can find "Define Partner Functions" here. But actually there's only a "Set Up Partner Determination" under this foloder. Could somebody give me a clue?
    Best Regards
    Jerome

    Thanks for the help!
    Best Regards
    Jerome

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

  • How to control cFolder authority through BADI

    Dear Expert,
    We're on SRM 7 and do the integration with cFolder in RFx.
    Now we want to control authority in SRM through BADI.
    In the BADI, we will use function CFX_ACO_API_ACTIVITIES_SET to set authority based on different user and apporver.
    For exemple:
           CFX_ACO_API_ACTIVITIES_SET
                     L_OBJECT_ID = GUID of folder/area
                     I_USER_ACTIVITIES = Read authority for user
    But after we longon cFolder system throught SRM system collaboration link, the authority do not change , still admin.
    Could you please give me some idea about it.(SRM and cFolder are installed in one system server).
    Your help would be really appreciated.
    Thanks & Best Regards,
    Bill

    Hi, 
    That such to use roles for each user:
    SAP_CFX_USRGRP_DELETOR     cFolders: Deletion of User Groups 
    SAP_CFX_USRGRP_CREATOR     cFolders: Create User Groups 
    SAP_CFX_USER_ADMINISTRATOR     cFolders User Administrator 
    SAP_CFX_USER                           cFolders User 
    SAP_CFX_SUPER_USER_ADMIN     Superuser with Admin Rights 
    SAP_CFX_STD_DELETOR                           cFolders: Delete Collaborations in the Standards Scenario 
    SAP_CFX_STD_CREATOR                           cFolders: Create Collaboration in the Standards Scenario 
    SAP_CFX_STATUS_PRF_DELETOR     cFolders: Authorization to Delete Status Profiles 
    SAP_CFX_STATUS_PRF_CREATOR     cFolders: Authorization to Create Status Profiles 
    SAP_CFX_NETWORK_ADMINISTRATOR     cFolders Network Administrator 
    SAP_CFX_EXT_USER_ADMIN     cFolders External User Administrator 
    SAP_CFX_EMAIL_SYSTEM_USER     cFolders System User for Sending E-Mails 
    SAP_CFX_COMP_DELETOR     cFolders: Delete Collaborations in the Competitive Scenario 
    SAP_CFX_COMP_CREATOR     cFolders: Create Collaborations in the Competitive Scenario 
    SAP_CFX_COL_DELETOR                           cFolders: Delete Collaborations in the Collaborative Scenario 
    SAP_CFX_COL_CREATOR                           cFolders: Create Collaborations in the Collaborative Scenario 
    SAP_CFX_CFOLDERS_ADMINISTRATOR     cFolders Application Administrator 
    SAP_CFX_ADMINISTRATOR     cFolders Administrator
    Rgs,
    Pedro Marques

Maybe you are looking for