Skip to Content
avatar image
Former Member

Assigning BP Roles to Accounts

Hi

In the direct link group, I have to create two direct links namely ,Competitor' and 'Alliance Partner', which are the two different types of Accounts(BP Roles).

My req is that on clicking on the either of links, that respective BP Role should be assigned automatically. i have written the code for it in PROCESS_DATA method of the implementation class of BP_HEAD/AccountDetails.

I am facing a problem here. If i click on 'Competitor' link, the role of Alliance Partner also gets assigned but after i save and then try to edit it. Even if i delete both the roles on UI after editing it, still on saving, it shows both the roles.

Am not able to locate the error. Please help me out.

Thanks and Regards,

Radhika Chuttani

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 01, 2008 at 08:55 AM

    Hi,

    I do not know of the PROCESS_DATA method, but one common point for executing code that is specific to one navigational link are the inbound plugs.

    My approach would be: Create yourself new target ids with logical links ( as you probably already have done) for your component and let the target ids point to your new custom inbound plugs where you put the coding from PROCESS_DATA.

    Meaning:

    Enhance component with two new inbound plugs on the window. Put those in the interface.

    Create new target ids in customizing.

    Create logical links for target ids in customizing.

    Put your coding in the inbound plugs.

    Perhaps it circumvents the problem you are facing. Do not know about a solution remote 😉

    cheers Carsten

    Add comment
    10|10000 characters needed characters exceeded