Partner Determination BADI

Hi ,
I want to determine the partners for a contract based on its item level attribute.  I am not sure which Partner Determination BADI gets triggered when an item level attribute gets filled. let me know what are the filter values to be used .
And also suggest me how to fetch the user selected item level attribute inside the badi. Is there any call back classes that can be used inside Partner Determination BADI.

Hi Praveen,
Here lt_rel_sp holds list of partners that needs to be filled in UI.
INSERT LINES OF lt_rel_sp INTO TABLE lt_collected_relations.
LOOP AT lt_collected_relations ASSIGNING <fs_relation>.
CLEAR ls_found_partner.
*     Partner has information on relationship, so store relation partner
      CALL FUNCTION 'COM_PARTNER_CONVERT_GUID_TO_NO'
        EXPORTING
          iv_partner      = <fs_relation>-partner2
        IMPORTING
          ev_partner_guid = ls_found_partner-relation_partner
        EXCEPTIONS
          OTHERS          = 0.
      ls_found_partner-no_type = 'BP'
      ls_found_partner-partner_number = <fs_relation>-partner2.
*Check, if partner is already in com-table
    READ TABLE et_found_partners TRANSPORTING NO FIELDS
      WITH KEY partner_number = ls_found_partner-partner_number.
IF sy-subrc <> 0.
   INSERT ls_found_partner INTO TABLE et_found_partners.
ENDIF.
endloop.

Similar Messages

  • Required help in Partner Determination BADI

    Hi,
    I need to implement a BADI in Transaction CRMD_ORDER, When I Go to transaction CRMD_ORDER - > Business Transaction -> Create, enter a Partner No and press enter, it should fetch the corresponding Owner field for that Partner No, which is maintained in a table, and it should be displayed in one of the Partner(Owner) fields maintained in the transaction, there will be 4 Partner Fields, Can you please help me on this, I tried implementing BADI - CRM_PARTNER_DETERM_B, but this is populating Partner Field(Contact Person), but it should populate Partner Field(Owner). COM_PARTNER_BADI is also not helpful.

    Hi ,
         You are correct i can get this information from Header.But i have condition that if BP is save locally than its should go to another site(A). But if another site (A) sends some data than it should not again send it back.
    In the system BUPA_MAIN is Simple bulk message so i need to convert create it in Simple inteligent. Is this the proper way ?
    I found one BADI: PARTNER_UPDATE which has method
    CHANGE_BEFORE_OUTBOUND.Which gets triggered before outbound.
          Can i put some code here which will check the condition and on the based of that condition i can stop distribution to site(A). Can any one please tell me what code can stop triggering of distribution.
    Thanks in advance.
    Kushang.

  • Partner Determination in PO and OBDLV

    Hey @ all,
    what I am trying to do right now is to implement a simple, customer specific partner determination procedure. For that I want to add a partner role and partner to an purchase order on header level.
    The only place I found where I could add this partner is in BAPI_PO_CREATE1. But this BAPI is not used when I create a PO with the GUI (ME21N).
    So do you have an idea, where I could add a an additional partner to the PO (User-Exit, Badi, Enhancement Spot ...)?
    The same thing I want to do with the outbound delivery (VL01N). There is User-Exit MV50AFZ1 available. But there is the question: How do I add a partner within this user exit (structures to edit...).
    Thanks for you help in advance,
    Rolf
    Edited by: Rolf Kasel on Mar 10, 2010 1:57 PM

    Hi,
       If its specific to plant and vendor, then check whether the plant specific partner function has been activated.
       Go to MK02 - partner function and go to menu - extras - Add. purchasing data and check whether "Data retent. at plant level allowed" flag is marked as shown below.
       If so, go to menu - extras - Alternative data.
    Click on partner details:
    Here, system will show plant specific partners.
       Here, maintain the partner function PI for the plant and check the scenario again.
    Another option would be to maintain the higher level search flag in the partner function configuration as highlighted below:
       Now, system will search partners at purchase organization level, if no partner function is found at plant level.
    Regards,
    AKPT

  • Access sequence for Partner determination -Sales and Interaction Center CRM

    Dear experts,
    We use som transaction types both in our sales (t/c crmd_order) and in Interaction center (t/c CIC0).
    We though want the partner determination to act differently when creating this transaction in sales compared
    to when creating it in the interaction center. For example in the sales process we want the contact persons to be searched from the relationsship of the sold-to party but in customer service we do not want an automatic determination.
    There are some BADIs available that can be used in the access sequences as a source but can they be used to
    switch off some automatic determination when creating the transaction in t/c CIC0 whereas the automatic determination should work when creating the transaction in the sales process ie. t/c crmd_order?
    Looking forward to have any input on this, thanks!
    best regards,
    Christina

    Hi,
    What we did is to remove the automatic determination on the transaction type that is used both in the sales process and Interaction center/customer service. The partner in question is only determined from the previous document in case you
    create a follow-up document.
    rgds,
    Christina

  • HOW TO USE ZONE ADRC-REGIOGROUP for Partner determination in opportunity

    Hi Everyone,
    We have an issue link to partner determination.
    We need to determine employee function from the address of the sold-to-party activity person function.
    In fact the REGIOGROUP field within the selected address in the opportunity is what we need to determine the employee function.
    In the meantime we created the attribute REGIOGROUP in the Tcode PPOMA_CRM and we assigned a value to an orgdata.
    We couldn't find any rules or function or Badi that does the link between the regiogroup of the address of the activity person and the attribute with same regiogroup value in orgdata in order to have the employee that works in the regiogroup.
    Do you have any clue about the way to use this regiogroup?
    When we press F1 on the REGIOGROUP field here is documentation we have:
    "Regional structure grouping
    Regional structure grouping combines all elements of the regional structure (cities, streets, street sections). It is used, for example, for clerk determination."
    Does anybody know how to make this clerk determination work? do you know where i could find information about it?
    Many Thanks
    Laurent Monza

    Laurent,
    You can implement the BADI COM_PARNTER_BADI and one of the methods
    DETERMINATION_ADD_IN
    Then you create a new access sequence that uses the exit as the source and assigned that to your partner determination procedure.
    Good luck,
    Stephen

  • Transporter name in partner determination in vl01n

    Hello,
    I am facing one problem so required help in SD -abap side in t-code VL01n .
    if the freight is beared by company and payment is made by A/c, in that case users need to capture the Transporter name
    while making the Delivery in goto option ->partner. The transporter name can be selected in partner determination. The functionality has already been configured. Now the requirement is that
    if users selects a particular IncoTerms lets say- XXX in sales order then the delivery should not get saved without entering/selecting the transporter name in partner determination.
    For this purpose can anyone suggest me any user exit or badi or any other method.
    Thanks in advance.

    Hello,
    I am facing one problem so required help in SD -abap side in t-code VL01n .
    if the freight is beared by company and payment is made by A/c, in that case users need to capture the Transporter name
    while making the Delivery in goto option ->partner. The transporter name can be selected in partner determination. The functionality has already been configured. Now the requirement is that
    if users selects a particular IncoTerms lets say- XXX in sales order then the delivery should not get saved without entering/selecting the transporter name in partner determination.
    For this purpose can anyone suggest me any user exit or badi or any other method.
    Thanks in advance.

  • Define Partner Determination Procedure With Filter?

    Hello in SPRO you can define the partner determination procedure:
    SPRO->CRM->Basic Functions->Partner Processing->Define Partner Determination Procedure
    Here you can define a partner for instance for our sales team in the opportunities module I have defined some partners
    and then I can go to partner functions in procedure and  give the access sequence such as 1000 preceding document or 0008 Preceding Document->User.
    But my question is, is it possible to have a partner appear based on the Opportunity expected value or other fields within the opportunity?  For instance, I want our Vice President to be included in the assignment block of Partners "Sales Teams" if the value of the opportunity is greater then a certain amount of money.
    So has anyone ever created partner determination members based on values of say the opportunity module?

    Jon,
    Here is an easier approach which you can achieve your requirement thru actions.
    1) Create an action "Add Partner" ( activate schedule automatically, processing time: Using selection reprot)
    2) Take process type as methodcall.
    3) Implement EXEC_METHODCALL_PPF badi. In the method execute, read the opportunity value. You can use CRM_ORDER_READ FM to do so.
    4) Compare this value against the threshold value.
    5) If step 4 is successful, call an approproiate FM to insert the partner function in the opportunity. CRM_ORDER_MAINTAIN will do. But you can search for a more performance friendly FM.
    6) Include the action thus defined in the profile attached to you opportunity transaction type.
    7) schedule program RSPPFPROCESS (TCode: CRMC_ACTION_JOB) with a variant in which action definition is the action defined in step 1 AND promotion status is 0 and 2.
    Regds,
    Raghu

  • Partner Determination Via Multiple Access Sequences

    COM_PARTNER_BADI.
    In a certain item level partner determination procedure for partner function ZPF, we use an access sequence of 1000. 
    As expected, we copy partners from the preceding document to our item.  That is what we want.
    We also want to invoke a COM_PARTNER_BADI Call to supplement the with additional partners.
    I defined a two step access sequence. 
    10     10     COM_PARTNER_A      Preceding Document
    20     20     COM_PARTNER_X      Badi 1
    The BADI works but seems to wipe out the preceding document results.
    Is there a way configure to get both the preceding document results and the new information.
    ( it would seem silly to make the badi determine the preceeding results as well)
    In reality , there is only one preceding ZPF partner and one new ZPF partner, but we have the pdp set to allow 150 ).
    Thanks.... ...Mike

    Hi Sunil,
    Thanks for your reply.I want to determine the service team automatically in the ibase based on the ibase postal  code. I used the access seq 10000304 which uses the postal code to determine the service partner. but the determination is not triggered automatically in the ibase
    Any hint will be of great help.
    Ambarish

  • Employee responsible is not determined in partner determination- Transaction

    Hi Experts,
    Partner determaination in Activity.  Eg :  Sold to party :1001051,   Employee id : 80007 and sales employee id: 80005.
    under BP Sold 1001051 has relationship employee responsible 80007 relationship is maintained.
    In the org model under the Sales org postion sales employee : 80005 is assigned.
    we have created a partner determination procedure with partner functions 10 as Sales employee with category employee and relationship category as Bur011 as employee responsible  and partner funciton 20 as employee with the same category and relationship category.
    In the PDP we hace created acccess sequnece with 10 CRM_partner_org data with the rule configured to get the sales employee.
    Access sequence 20 as CRM_Partner_business partner relationship to get the employee relationship from BP.
    When we create the activity the partner determination is happening and under the partners tab we find the
    sales employee = 80007
    Employee = 80007
    Now in the partner determination access sequnce 10 is not working, system is filling up the value of employee 80007 in the sales employee feild.
    we have checked the rule and simulated the rule, we are getting the correct result of the postion and the agent -user assignment as 80005. but when we create a activity it is skipping access sequence 10 and by default fills up the value from the BP relationship Employee responsible 80007(employee) to the sales employee partner function.
    If we are having 2 persons as employee in BP, the partners are filled twice. for example : Sold to party :1001051,   Employee id : 80007, 80006 and sales employee id: 80005.
    in Partner assignment block we are getting output as, it is not takind sales employee id 80005.
    sales employee = 80006
    sales employee = 80007
    Employee = 80006
    Employee = 80007
    Please help me with a clue how to fix this issue.
    Regards,
    Karthik

    Hi Karthik,
    You can proceed with debugging the access sequences. The access sequences are hit via BADI : COM_PARTNER_DETERM and the implementation to chose is with the filter = source name.
    Eg: CRM_PARTNER_DETERM_C for relationship based access.
    /Hasan

  • Partner determination to copy business partners

    Hello guys,
    I´m facing a problem, in my scenario (crm 5.0, webclient, service tickets).
    An older consultant, configured the server to work with service tickets, using contact person and sold-to-party. Both are the person whose contacts the contact center.
    Now I have to change the service ticket screen in order to able the atendant to change the business partner previoulsy identified. The atendant, in these process, must change the sold-to-party and the contact person. What i´d like to do is, create a partner determination, where the atendant change only the contact person, and this new business partner id, be copied to the sold to party.
    I tried to create a new sequence, and tried many partner determinations, but I could not do it.
    Is there a way to do it? How?
    Thanks
    David

    Hi David,
    I don't know whether you are interested to code for this or not, but generally we can change the partner determination through BADI COM_PARTNER_BADI.
    Regards
    Sidd

  • Partner Determination Not Working in Opportunity

    Hi,
      We are using Z-partner Functions Which are Determined using Partner Determination Procedure in Lead but it is not Copied to opprtunity.
    we used Different partner procedure for opportunity but is not coping from Lead. We tried to Modify the partner Procedure used for Lead and use it for Opportunity but it is not working.
    can any one suggest were we might be going wrong.
    With regards,
    Selvam t

    Hello Selvam,
    there is no copy procedure during partner determination. If you create a followup doc or copy an existing document - the partner det. runs again. According to your settings in the PDP the partner are determined by access sequence and source. That means if you want partners which should be copied from predecessor then you should use the source COM_PARTNER_A like i.e. access sequence 0001 in standard.
    I hope this help,
    Regards
    Rene

  • Territory and partner determination procedure for employee responsible

    Hi CRM team,
    I have a little issue for you I'll be very thankfull if someone could help me.
    There is the organisation of the territory management in the company I'm working for:
    -Country
    -Region
    -sector
    *each sector have a determination rule based on 1 condition "1 field from the BP Header (customer)"
    *each sector have a position assigned to it. (Organisational model PPOMA_CRM) And there is 1 or 2 employee affected to each position..
    *When creating an activity,*
    *First thing I enter the Account (customer: activity partner)*
    *I would like the system to determine the employee affected to the sector of the BP as the employee responsible.*
    Any Idea?
    For the moment, I'm searching in the partner determination procedure. But the standard access sequence Business Partner Relationships: Activity Partner -> User dont work.
    There is some sitting from my IMG:
    The partner fonction Employee Responsible is with
    *fonction category: employee
    *usage: CRM
    *Relationship category: Is the employee responsible for
    Partner determination procedure:
    In the acces sequence, I put a dialogue seq 15 : 
    Business partner from territory
    And in the detail on source, I put:
    Fonct. categ. : Employee
    Usage: CRM
    It dosn't work...
    I don't know if I'm am searching in the right place.
    Could you help me with a solution to have the needed system behavior????
    Thanks a lot for your time and your help.
    Best regards,
    Ahmed.

    Hi Ahmed,
    After created determination rules for territories have executed the report CRM_TERRMAN_PROC_REL for initial option?
    Once territories and determination rules are created, you need to run the above report in Background(schedule a batch job) which will establish relationships between the territories and corresponding attributes. You need to run this report every time there is a change in determination rule of create/change territories.
    This should resolve your problem
    Regards,
    Priyanka

  • Partner determination at shipment stage level

    Dear All,
    We would like to have multiple partner functions determined for a shipment stage within the shipment. Stages are maintained for the shipment route. But we dont want to maintain the service agent at stage level inside the route in IMG. This only determines one partner at stage level. We need multiple partners. Which exit can help here? I dont think normal partner determination exit can be used here like EXIT_SAPLV09A_004 as it is not called in shipment. Please suggest.
    Best Regards
    Dinesh

    Hi,
    I am sure whether it will helpful to you or not
    Kindly check the menu path SPRO --> Sales & Distribution ---> Basic Functions --> Partner Determination -- > Set up Partner Determination -- >Set Up Partner Determination for Shipment
    Regards,
    Prasanna

  • Error in CHARM_CREATE when using a Z partner determination procedure

    Hi,
    I use SDCR and needed to create a new partner determination procedure ZDCR0001. I don't need to change anything else in this Change Request transaction type, so everything else is standard. When I run CHARM_CREATE now, the program is using the partner determination procedure instead of the text determination procedure SDCR0001 in order to get the text ids, and then I have an error: Text determination procedure ZDCR0001 does not exist.
    I noticed that there is a problem in the standard code of CHARM_CREATE:
    *&      Module  get_data_0101  OUTPUT
          Retrieve the Data to get different text types                  *
    MODULE get_data_0101 OUTPUT.
       IF gv_display = ' '.
         CHECK gv_created IS INITIAL.
    *get the required info for text processing
         CALL FUNCTION 'CRM_ORDER_PROC_TYPE_SELECT_CB'
           EXPORTING
             iv_process_type = gc_processtype
           IMPORTING
             es_proc_type    = ls_proc_type.
    *get the list of changes to be done
         CALL FUNCTION 'COM_TEXT_CUST_I_STRUC1_READ'
           EXPORTING
             iv_object               = gc_object-order_h
             iv_procedure            = ls_proc_type-part_determ_proc
           CHANGING
             et_struc1               = gt_zthead
           EXCEPTIONS
             textobject_missing      = 1
             textobject_not_found    = 2
             textprocedure_missing   = 3
             textprocedure_not_found = 4
             other_error             = 5
             OTHERS                  = 6.
         IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ENDIF.
    This function module is for getting texts, but uses the partner procedure. I created a message and sent to SAP, but they say they don't have this error there. Has any of you had the same problem? I could not find any note to correct this code. I have SP 17 for ST.
    Thanks,
    Raquel.

    Mention the Function name starting with 'Z'
    Regards
    Sreenivas

  • Error while creating Notification: Partner Function is Not Allowed in Partner Determination Profile Q2

    During Notification Creation I get the error --Partner Function is Not Allowed in Partner Determination Profile Q2
    As I enter Purchase Document Number in the transaction QM01 and press Enter. I get the above error and donot go further.
    Can anyone help me here.

    Hello Prashant,
    You are missing some configuration for the partner function;
    Go- to
    SPRO>IMG>QM>Quality Notifications>Notification Creation>Partners>Define partner Determination Procedure>
    Again Select "Define Partner Determination Procedure".
    Select Quality management> Change Partner
    Now Select Q2.
    Compare settings with Partner Determination Procedure on any other client. Also check Partner functions on the same screen.
    Amol.

Maybe you are looking for

  • Capturing check box value into internal table

    Hi all, I am displaying the output including check box through following internal table. The checkbox is displayed before every record.   <b>LOOP AT it_qals.     WRITE:/  it_qals-t_val  AS CHECKBOX,            5 it_qals-werk,           12 it_qals-pru

  • Is it possible to display text from one area of my website onto another?

    I'm busy building a site, and on my site I have a news section on my landing page with latest news. This news section is just the headline, and when you click on the link it takes you to the article. Is there any way to link the two together? I want

  • Will a movie sync to my ipod everytime i connect it to my computer?

    i bought a movie in my ipod, it synched with my computer the next time i plugged it, but when i connected it again it synched the movie into the ipod again so now i have two of the same, will it transfer it every time?  and how do i erase the second

  • Driver updates for Belkin components busport.

    Hello, A friend has an old horizontal beige G3 to which was added a Belkin Components 2xUSB busport. The original floppy disk contains the driver for pre 8.5 systems, but the manual advises going to Apple UK website for driver updates for use with OS

  • BPEL 2.1.2 versus BPEL 10.1.2

    What is a difference in BPEL PM between 'Oracle BPEL Process Manager 2.1.2 for JBOSS' and 'Oracle BPEL Process Manager 10.1.2'? Is the same BPEL PM version available for JBOSS and OAS 10g? Thanks.