Sunday, 2 December 2012

Setting Number of Recent Items in SAP CRM 7.0

Recent Items is a very useful tool to quicly navigate to the last created  / saved / accessed objects in SAP CRM Web UI. The default of number of objects is set to 5. Unfortunately there is not standard customisation to set this. Below link contains the code for a report program with the help of which one will be able to change the default value for all users of a Business Role. (Credits to Gregor Wolf, who wrote this code)

http://wiki.sdn.sap.com/wiki/display/CRM/How+to+set+a+default+value+for+the+number+of+Recent+Objects

Also visit the below link for further information on Recent Items. Thanks to Shaik Shavli for the nice article.

http://wiki.sdn.sap.com/wiki/display/CRM/Recent+items+-+Tips+to+Customize

Thursday, 20 September 2012

Message Class and Message numbers for messages on the UI

In the SAP CRM GUI,it is easy to get the Message Class and Message Number for any error. However,  for the errors encountered in SAP CRM WebUI interface, you can not directly get the message class and message numbers. Here is a quick tip of how to do that.
1) Put a breakpoint in CL_CRM_GENIL_GLOBAL_MESS_CONT, method IF_GENIL_MESSAGE_CONTAINER~GET_MESSAGES. This break point is encountered every time a message is raised.
2) Perform the action of the UI that throws the error for which you need to find out the message class and message id.
3) When debugger stops at the above set break point, check the contents of ET_MESSAGES
4) Here field ID gives the Message Class and Number field gives the message number.

Thursday, 6 September 2012

Role dependent Field Grouping on SAP CRM Web UI

Have you ever come accross the requirement of controlling the field grouping of Accounts on webUI based on a given BP role?
Have you found notes OSS notes like
  1. Note 1257009 - Role-dependent field modification not supported 
  2. Note 1301742 - TXN. BUCG mandatory field settings not working in Web UI
  3. Note 1734377 - Mandatory fields not requested in WebUI 
not relevant?

Then, check the OSS note Note 1683774 - Mandatory setting for field groups 71 and 92 not considered if you are aiming to mandate standard communication type and house number fields. 

Finally, if you have tried everything and still unable to crack why a field mandated on the GUI is not mandated on web UI for a given role, look into the class CL_CRM_UIU_BP_TOOLS and method MAP_FIELDGROUP (see the screenshot below). Here the case statement handles most of the fields in Central Data, Address and Classification data sets. However, if you are looking for a field which is not a part of these three data sets (for example field group 49, to mandate industry id for say Sold-to-party role), system may not show you an error even if the field is made mandatory in BUCG tcode and left unfilled on the webUI account screen.


Friday, 31 August 2012

Uploading attachments in SAP ECC Sales Documents

In my 7+ years of association with SAP CRM, I never really was bothered much about "Attachments", since it is very straight forward either on GUI or on the webUI to upload attachments to different transactions in SAP CRM. However, in the recent times when questioned by one of my friends, I realised that the process of uploading attachments to sales documents in SAP ECC is not very explicit. I then googled and found out how to do that.Thanks to the sdn blog on the same. Here is the procedure with screenshots for those like me.


 Step 1: Go to Tcode SU3 (Settings in User Profile) and enter the parameter as highlighted below


Step 2: Now in a sales document like a slaes order or contract, access the "Services for Object" option from the "System"menu .

Step 3:You will be faced with the below box. Click on the highlighted button.




Step 4: Click on "Create Attachment" opiton to upload the documents.