Sunday, 21 December 2014

RSCLNAST - Useful report for deleting NAST entries.

If you have a requirement to delete output (either "Processed" or in "To Be Processed") from ECC documents, report RSCLNAST can be used. This report has selection criteria as shown below. A combination of application, output type and transmission medium can be used to locate exact transactions which one wants to clean up




Similar report RSPPFPROCESS is available in SAP CRM system. With this report user will be able to delete actions from transactions.

Wednesday, 6 March 2013

Ignore enhancements

Often in support environments, we will be unclear if a given issue is because of the custom enhancements done in the project environment or is because of the standard SAP CRM product error. Here is a quick tip to switch off enhancements at a user level.

To ignore enhancements at user level, access transaction code SU3 from GUI and make an entry as shown below.


Parameter: WCF_IGNORE_ENHANCEMT
Param Value: A

Tuesday, 29 January 2013

Report to delete Org units and employees (Central Persons) in SAP CRM

Here is a quick tip to delete employees and org units from SAP CRM org structure along with the relationships.

When we delete an org unit for example from the org structure,it will delete the org unit but the relationships still exist.

Similarly in an unfortunate situation to delete employees downloaded from ECC, in the CRM system, we can adopt BUPA_DEL technique to delete the BP's. However, the underlying entries in the HRP* tables will not get deleted.

In both the above cases, it is recommended to use RHRHDL00 report.Object type in 1st case will be O and in the second case, it will be CP. Make sure that in the case of deleting employees, object id will be the personal number of the employee and not the BP number of the employee.

Following this deletes Org Units / Employees along with its relationships. However, we may also need to use BUPA_DEL report to delete associated Business Partners from BUT* tables.

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.