cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to call dynamically a Partner Determination Procedure?

Former Member
0 Kudos

Hi Experts,

we are using the Interaction Record in the IC Scenario (SAP CRM 7.0). As we only can use one transaction type to fulfill so that the IC Agents can fullfill their daily work we need to call different kind of partner determination procedures depending on the field Conc-Key ubicated in Context Node BTSUBJETF.

Example:

If Value of Field Conc-Key is '1' the partner determination procedure Z0000001 should be called.

If Value of Field Conc-Key is '2' the partner determination procedure Z0000002 should be called.

Any ideas where to start?

Best Regards

Oliver

Accepted Solutions (1)

Accepted Solutions (1)

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Oliver,

Where exactly do you want to call the partner determination?

Is it in some event handler? if yes, then you can use the following code template:

DATA : lr_current       TYPE REF TO if_bol_bo_property_access,
lv_value type string.
lr_current ?= typed_context->BTSUBJETF->collection_wrapper->get_current( ).
lv_value = lr_current->get_property_as_string( iv_attr_name = 'CONC_KEY' ). 

"Logic for PDP
if lv_value = '1'
call PDP  Z0000001
else call PDP Z0000002

Regards,

Nisha

Former Member
0 Kudos

Hi Nisha,

yes it must be in some event-handler because everything I am changing the value it is doing 'something behind'. Do you know how I can find the eventhandler or method where to change the coding? Can I use a trace or do I have to look into the transaction SWO1 to find the avaible events of the Interaction Record (Business Activity)?

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Oliver,

You can set a breakpoint in the method "do_handle_event" of your view controller impl class to see which event gets triggered in your flow.

Regards,

Nisha

Former Member
0 Kudos

Hi Nisha, thank you so much for your effort. Just one last question if you permit me asking you. How to call a

partner determination procedure? I will put the question as answered but may be you can give me a list hint...?

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Oliver,

I am not aware of the exact FM's needed for your scenario, but may be you could check the FM''s under function group 'COM_PARTNER_CB' / 'COM_PARTNER_TOOLS' / 'CRM_PARTNER_TOOLS'?

Regards,

Nisha

suchita_phulkar
Active Contributor
0 Kudos

Hi Oliver,

PDP has access seq. maintained for each partner func. inside it. This access seq. inform system which partners to look for depending on source partner. PDP is triggered only Once and when the document of particular transaction type is created . Hence I don't think we can call PDP dynamically and have them executed depending on some value conditions...this is my personal opinion.

I think in your scenario, You must add the partners programatically on your value condition. However, in this case, You will need to have your partner data with you..i mean system will not find a partner on it own as defined in PDP.

I would be very much interested to know if we can achieve PDP functionality dynmically..so keep posted if you succeed in that approach

Wish you all the best.

Regards,

Suchita

suchita_phulkar
Active Contributor
0 Kudos

Hi Oliver,

PDP has access seq. maintained for each partner func. inside it. This access seq. inform system which partners to look for depending on source partner. PDP is triggered only Once and when the document of particular transaction type is created . Hence I don't think we can call PDP dynamically and have them executed depending on some value conditions...this is my personal opinion.

I think in your scenario, You must add the partners programatically on your value condition. However, in this case, You will need to have your partner data with you..i mean system will not find a partner on it own as defined in PDP.

I would be very much interested to know if we can achieve PDP functionality dynmically..so keep posted if you succeed in that approach

Wish you all the best.

Regards,

Suchita

Former Member
0 Kudos

Hi,

I have a similar requirement, could you give me a brief advice on which is the BAdI or the Method to be used?

Thanks a lot in advance,

Best Regards,

Andrea Ricci

Answers (0)