Quantcast
Viewing all articles
Browse latest Browse all 9760

Re: How to add the marketing attributes assignment block to the contact quick create

Hi Tom,

 

You have to enhance the viewset BP_DATA/AccountContactViewset for the same. What happens now is at the first time, it displays only the General data view and suppresses all the other 3 views. Once you enter the data and hit the enter button, it enables all the other views.

In the view controller of BP_DATA/AccountContactViewset, you can find the corresponding implementation in the method CL_BP_DATA_ACCOUNTCONTAC1_IMPL->DO_PREPARE_OUTPUT, you can see the flag 'lv_suppress_eew_views' which is set to abap_true in case of create mode and bp_number is empty. Once you enter the data and press enter, the bp would get created and hence suppressing the views are disabled by clearing the flag 'lv_suppress_eew_views'.

 

You can enhance this viewset and do the necessary changes to display the required views in the first instance itself.


You can add the code statement

IF ls_child-viewname = 'MKTPermissions'.
lv_replacement_viewname = ls_child-viewname.
ENDIF.


just before the statement

CHECK ls_child-repview IS BOUND.

 

Thanks & Best Regards,

Leon


Viewing all articles
Browse latest Browse all 9760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>