Skip to Content
author's profile photo
Former Member

Is it possible to call dynamically a Partner Determination Procedure?

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Dec 23, 2010 at 10:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Suchita Phulkar

      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