cancel
Showing results for 
Search instead for 
Did you mean: 

Not directed to Interaction Record automatically after confirmation of BP

Former Member
0 Kudos

Hello Experts,

i'm currently working on a requirement to direct a user to the Interaction record creation view automatically after confirmation of an account and installed base. Consequently i have maintained following customizing setting within our account identification profile:

Account Navigation:

Object type = BT126_INR, UI Action = D

I have tested the following scenario's:

1. In case when i confirm an account AND installed then automatically the Interaction Record create view is being displayed --> OK.

2. In case when i confirm an account which is not linked to an Installedbase then nothing happens. --> NOT OK

3. In case when i confirm an installed base and the related account afterwards then nothing happens --> NOT OK

Can you explain why in situation 2 & 3 i'm not directed to the Interaction Record create view?

Regards, Sander

Accepted Solutions (0)

Answers (1)

Answers (1)

VishnAndr
Active Contributor
0 Kudos

As far as I remember it's designed in such a way.

You can check this logic in Confirm button event. There should be a call to method "futher_steps" or smth like this. In it system checks if object type and action are maintained in customizing. Also it checks if automatic searches (for installed base or others) are defined in this identification profile and if so it won't trigger navigation till you don't confirm both (for instance, customer and installed base).

Later I'll try to bring a peace of code to confirm this.

Former Member
0 Kudos

Hi,

thx for your feedback, indeed i would appreciate if you could sent me the required code.

Regards, Sander

VishnAndr
Active Contributor
0 Kudos

Hello, Sander.

First of all identify which view and component you use while confirming partner (e.g. which view/component Confirm button belongs to).

In general it should be ICCMP_BP_DETAIL component and one of its views: BuPaDetail, BuPaDetailB2B or BuPaMixDetailB2B.

For instance, let's take a look into BuPaDetail (for other views procceed in the same way).

In its event handler EH_ONCONFIRM there is such code at the very end:

* process further steps
 CALL METHOD me->process_after_confirm
   EXPORTING
     ir_bupa_controller = lr_cucobupa. 


ENDMETHOD.

Let's go futher and step into this method process_after_confirm. Here the check is started.

* navigate only if ibase has been confirmed or if ibase is not selected in customizing
 lr_objcomp_cust = ir_bupa_controller->get_objcomp_cust_instance( ).
 CHECK lr_objcomp_cust IS BOUND.
 lt_bpcodeta = lr_objcomp_cust->get_bpcodeta( ).

 IF lr_objcomp_cust->objcomp_defined( ) EQ abap_false.
   lv_navigate = abap_true.
 ELSEIF  ir_bupa_controller->is_product_confirmed( ) EQ abap_true.
   lv_navigate = abap_true.
 ELSE.
   READ TABLE lt_bpcodeta WITH KEY auto_search = abap_true ASSIGNING <fs_bpcodeta>.
   IF sy-subrc <> 0.
*      auto search is not set for any component
     lv_navigate = abap_true.
   ELSE.
     IF <fs_bpcodeta>-search_approach IS INITIAL.
       lv_navigate = abap_true.
     ENDIF.
   ENDIF.
 ENDIF.

And after that the system creates objects for navigation. In the above code they check settings made in SPRO -> CRM -> Interaction Center WebClient -> Master Data -> Define Account Identification Profile.

Hope this will help you.

Former Member
0 Kudos

Hello Sander

Please try and use the parameter C instead of D and see if you can move on to the IR page without confirming an ibase.

Thanks

Tarang