CRM Performance Tips for BI Enhancements



Just wanted to share few performance tips in CRM.

1.       Avoid using normal customer exit.
2.       Avoid using RSU5_SAPI_BADI for implementations.
3.       Try to use CRM_BWA_MFLOW BADI for new implementations which is good in performance wise.

CRM_ORDER_READ is the FM that is generally widely used in enhancement of fields.
Now how to use CRM_ORDER_READ:

This FM fetches all the information for the given object id or guid or item guid’s.
Generally we may not use all the information but still this fetches.

So this degrades the performance very drastically.
Hence always use IT_REQUESTED_OBJECTS to pass the parameters which specify what data is required to be read.
This will make sure only the requested objects data is read

Release the Buffers:

Always initialize the buffers after CRM_ORDER_READ inorder to release the memory it has occupied.
For that use the FM CRM_ORDER_INITIALIZE.



How to read BODS available in buffers:

The FM CRM_ORDER_READ is very memory intensive as it has to read the complete set of data.
Hence sap suggests to read the data that is directly from the buffers ( when ever sap extractor is called the data is filled in buffers based on the extractor ).
In order to read the data kindly use the FM CRM_BADI_GET_XIF. The output of the data contains complex structure which holds the max data that is available via CRM_ORDER_READ.

More Info can be found in notes:

No comments:

Post a Comment