Please plan your SCN wiki tasks accordingly.
SAP CRM WEB UI version 6.0 and 7.0 or more
This Wiki explains the prerequisite settings to navigation to the CRM UI Component from hyper link(i.e Click here to open the Request in Mail form or smart form). More focus is given to UI Component's Design layer Object Type and UI Action to give edit or display authorization.
Business Scenario: Need to open the UI Component deirectly by clicling the hyper link in the Mail form or Smart Form. So we need to insert the URL script into the Mail form body or Smart Form body.
Company: Kaar Technology
Created on: 13.3.2011
Chand Shaik is Techno Functional Consultant in the area of SAP CRM and SAP Portal. He have started with SAP in 2004 coming from a web development background (JAVA). His experience ranges from Web Dynpro Java, Enterprise Portal, CRM ABAP, CRM BSP and BOL, CR580 and to functional skills in SAP. In 2010 he was appointed as a SAP CRM Consultant with Saudi Aramco.
Example URL in Mail Form
Another example is:
Syntax of the Hyper Link:-
VARIABLE2 = UI Component’s Design layer Object Type ( crm-object-type=ICCMP_BT_SVT)
VARIABLE3 = UI Action to to give edit or display authorization (crm-object-action=C). By dafault, it's "Display" (B).
VARIABLE4 = Business Role (saprole=ZHRC_AGN_GEN). By default it's taken from the user, who use this URL.
VARIABLE5 = Request value (crm-object-value=%SAP_ZMAIL_FORM_ATTR-GUID).
VARIABLE6 = Request key name (crm-object-keyname=PARTNER). It's a key name for the query parameter, which takes the value from VARIABLE5.
Steps requeried to prepare Hyper Link:-
1. System URL
2. UI Component’s Design layer Object Type in Design Layer
3. Provide naviagation to UI component and provide UI Action(edit or display authorization) in Navigation Profile
4. Business Role
5. Request value (e.g. GUID)
6. Request key name
Step 1 : System URL
Production Server : http://prod.xyz.com:8003
From ABAP code first part of the url (not to be confused with VARIABLE1) could be retrieved with the following code:
Step 2 : UI Component’s Design layer Object Type in Design Layer
Make sure the Object Type entry is availbale for your CRM UI component in the view BSPDLCV_OBJ_TYPE. This is table for all the elements of crm-object-type (like CRM_SRQM_INCIDENT,BP_ACCOUNT, BT126_APPT, BP_CONTACT etc) in SAP CRM
To find the exsitng design object or copy the existing design object to view BSPDLCV_OBJ_TYPE using SM30 transaction
Please use the SPRO configuration to edit the BSPDLCV_OBJ_TYPE view as shown below.
Find or Copying SAP Design Objects
You can copy existing SAP design objects or create new entry in Customizing for Customer Relationship Management, at UI Framework ->UI Framework Definition->Design Layer->Copy SAP Design Object .
Here you can see existing UI Oject Types mapped to SAP CRM design objects which is actually refers BOL Object Name and then BOL Attributes
To identify the UI Object Type of UI Component present or not. Please use the F2 pop-up on UI Component.
Make sure the Object Type entry(which you have found in the F2 technical details for your UI Component) is available in the below table
If the Object Type entry is not available in the below table then you have to create UI Oject Type entry for your UI Component.
You have to create the new entry of UI Object Type for your UI Component with GenIL Component Name, BOL Object Name and BOR Object Type
Step 3 : Provide naviagation to UI component and provide UI Action(edit or display authorization) in Navigation Profile
Open the Navigation Bar Profile
Select the required Navigation Bar profile of the Business role and double click on the Define generic Mapping at left side.
If the entry is not available for the Object type in the below table. You have to create new entry for the UI Object Type with Target ID
Parameter crm-object-action, we can fill with A for search, B for Display C for Edit and D for Create. Same parameter value have to be pass to crm-object-action in the URL.
4. Business Role
Find out the right Business Role.
You can see the Business Role name on WEB UI or using transaction code CRMC_UI_PROFILE
5.Request value (e.g. GUID)
For GUID attribute in the Mail Form, you can create your own Z structure with the fields that you want to use in the email forms. And you need to maintain this structure with ERMS attributes context at SPRO.
Customer Relationship Management->Marketing Marketing Planning and Campaign Management->Personalized Mail->Maintain Attribute Contexts for Mail Forms.
6. Request key name
The request key name defines which parameter is used for query service of the object type. For example, it could be PARNER or PARTNER_GUID for object type BP_ACCOUNT. You can find appropriate parameter's name in transaction GENIL_BOL_BROWSER.
Final Hyper Link to be added to Mail Form:-
Generated link to be ready to open the UI Component :-
This URL opens the service ticket
This URL opens the partner with ID 2.
Even if paramater crm-object-keyname is optional, it's obligatory to use it for some objects. For example, for business partners.