Skip to Content
author's profile photo Former Member
Former Member

how to add new partner to service order dynamically at runtime?

Hi Gurus,

I want to add a new partner to partner assignment of service order. While creating a new service order, when a selection is made to my custom field in this order, I want to add a new partner. It can be done immediately when selection is made or can be made at saving time. How can I dynamically add partner data? Can you write all steps and example code please??

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Oct 12, 2010 at 10:08 AM

    Hi Aston,

    You can divide your requirement broadly into 2 section. 1. How to identify the Business Partner and the Partner Function and 2. Adding that Business Partner to that Partner Function.

    But, before even answering your question, I have some doubts. What is exactly meant by adding a business partner dynamically? Currently you are adding the business partner and the SAP CRM Partner Determination Procedure is suggesting the Partner Function and the Business Partners based on the settings that you have maintained. Is that functionality not sufficient to fulfill your requirement? What extra Partner Function you are looking for?

    It would really be great if we have these questions answered first before diving into the development.

    Hope this will help.

    Thanks,

    Samantak.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2010 at 12:10 PM

    Hi

    If you want to populate Partners in partners tab automatically while creating the Servoce order please try two steps

    1.partner determination procedure

    2.Implementaing badi COM_PARTNER_BADI

    3.If u want to populate based on Organisation(service order) responsible code in Org determiantion rule FM.

    Thanks &Regards,

    Sivaram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2010 at 12:26 PM

    Hi Samantak,

    I can use partner determination but partner numbers can be change through the choice of my eewb fields when creating service order. COM_PARTNER_BADI can be used but application enter to this BADI at very beginning of service order, and no entry is made here after eewb fileds select or during save action. I want to add new partner with defined partner function but new for determination, or I can define it in determination and want to change this partner data through the eewb fields selection or during save action.

    where can I implement such thing and how??

    Thanks for your reply..

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Aston,

      So, its clear from your requirement that you want to determine Partners for the custom fields that are added using the EEWB. Well, if this understanding is correct, then you can add the fields using the EEWB and the rest of logic regarding the Partner Determination can be called in the DO_INIT_PREPARE or DO_INIT_OUTPUT which will get triggered whenever the UI is loaded.

      So, you can call the Partner Determination Function Modules and then once a SAVE is done against the Service Order, then a single SAVE will be called. You don't need to call the BADI unless you need to trigger some additional checks before making the final save in the Database.

      Hope this will solve your problem.

      Thanks,

      Samantak.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.