on 10-27-2011 3:10 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.