Read the current user Business Role in SAP CRM: ***Get Business Role Data( lr_ui_profile) = cl_crm_ui_profile=>get_instance( ). IF lr_object IS BOUND. Data(lr_br_profile ) = lr_ui_profile->get_profile( ). ENDIF. IF rv_result EQ lc_busuness_role. "Added your logic ENDIF. Read the current customer confirm data Sin AP CRM: Data(lr_current_data) = cl_crm_ui_data_context_srv=>get_instance( me ). IF lr_current_data is bound. ***Get Business Partner Details lr_current_data ->get_entity( name = 'CURRENTCUSTOMER' ). ***Get Contract Account Details lr_current_data ->get_entity( name = 'CURRENTBUAG' ). ***Get Premise Details lr_current_data ->get_entity( name = 'CURRENTPREMISE' ). ENDIF.
Below are the list of user parameters: ***Display the message details in CRM Web UI BSPWD_USER_LEVEL - 9 ***It will ignore all enhancement and run the SAP UI as standard WCF_IGNORE_ENHANCEMT - A ***Filter the Business Role CRM_UI_PROFILE - Z*
Comments
Post a Comment