Goal of this blog is to document and understand loading of two configuration of same view using two logical links in web ui:
In this blog we are using standard and one custom configuration of complaint search view BT120S_CPL/AdvsearchComplEF
1. Create a copy of standard logical link search complaint (SRV-COM-SR) as ztest_link.
2. Create a copy of standard parameter class CL_CRM_UIU_BT_PARAM_CREATE and assign the same to above created logical link
ztest_link and the to the standard logical link.
3. Declare a static variable LV_FLAG in copied z class.
4. Now put below code in CREATE_PARAMETER_OBJECT method of this class. Based on the value you get in IV_LINK_ID or IV_parameter you set variable LV_FLAG.
5. Now you can load your custom configuration by redefining do_config_determination method depending on the value you get in static variable as mentioned in below code:
6. Further you can manipulate field settings also in do_prepare_output method depending on this attribute. remember to clear this attribute once not required.
Thanks,
NS