Nov 012012
 

When you call function module BAPI_SAG_CHANGE and/or BAPI_CONTRACT_CHANGE for a huge amount of documents that itself have several items you will observe a very high memory consumption in class CL_MASTER_CONDITONS_MM. This causes the system to be very very slow and if the scheduling agreement or contracts have thousands of line items, the performance needs to be improved.

This is because the destructor for class CL_MASTER_CONDITIONS_MM is not getting called for agreement items.

Please install SAP Note 1612649 to improve the performance.