CL_CRM_TERRMAN_NOTIFY_REPOS - Class to act as repository to handle the log operations
rdisp/max_wprun_time - Maximum work process run time ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
This class act as a repository of functionalities required for Master Data Notifications. It provides methods for the following functionalities,
- To find the Territories that needs to be processed as a result of changes to master data.
- To clear the Log table entries once the relationship table is updated with the latest changes in the master data.
- To log the changes in attribute values of Accounts, Account Hierarchies, Product Category and Product Hierarchy.
- To log the changes in the Account Hierarchies that is caused by the validity check routine.
All core functionalities required for Master Data Notifications in Territory Management is provided by this class. All the methods are static.
Methods:
GET_ACTIVE_TM_ATTRIBS_FOR_PROD
,,This method returns the list of active Non-SAP delivered TM attributes defined for the Products application. The returned list will be a mapping of the
,,Example:
The Standard SAP delivered attributes like Product Category GUID(PM_CATEGORY) are not considered by this method. Only other Customer-Defined or Non-Standard attributes are considered.
PARSE_PRODUCT_DATA
,,This method parses the Product data and looks if any new Product Cateogry assignment is added or anyexisting Product Category assignment is removed. It also fetches the value of all the attributes ofthe settype, COMM_PR_SHTEXT, the short text settype. The exporting parameter, ET_MODIFIED_PRDOD_CAT_HIERholds the info abt the changes in the Product Category assignments. This info is returned in the formProductGUID-CategoryGUID-HierarchyGUID for each of the inserted or deleted assignments. The exportingparameter, ET_MODIFIED_SETT_ATTR_VAL holds the values of the short sett type attributes. This information is returned in the form Set_typeID-AttribName-AttribValue.
PARSE_PROD_SETTYPE_DATA.
,,This methods parses the specified settype data and returns the values for all the attributes of allthe settypes in the specified list. For each settype in the settype data specified, it will find theattributes and then find the value for each of the attributes. The data returned by this method will be an internal table with records in the format, <SettypeName-AttribName-AttribValue>.
LOG_BP_ADDRESS_CHANGES.
This method will be called when changes are made to the address details of an Account/BP from the AccountsApplication. It looks if any of the modified attributes are active for Territory Management application,if so, it will log the details about the BP. The logged data will be processed by the Batch report developed for Master Data Notifications.
LOG_BP_HEADER_CHANGES.
,,This method will be called when changes are made to the header details of an Account/BP from the AccountsApplication. It looks if any of the modified attributes are active for Territory Management application,if so, it will log the details about the BP. The logged data will be processed by the Batch report developed for Master Data Notifications.
LOG_VALIDITY_CHECK_CHANGES.
,,This method logs the GUID of all the Business Partner Hierarchies that are modified as a result ofvalidity check routine. This logged data will be processed by the Batch Report developed for MasterData Notifications to regenerate the relationship data of the territories that are associated with themodified BPHs. This ensures that the relationship table data is updated with the latest changes in Account Hierarchies.
LOG_BPH_CHANGES.
,,This method will be invoked when changes are made to a Account Hierarchy from the Account Hierarchy.It will look if any new Accounts are added to the Account Hierarchy or if any exisiting Account is removedfrom the Account Hierarchy. If so, it will log the details about the Account Hierarchy for processingby the Batch Report developed for Master Data Notifications. This ensures that the relationship table data is updated with the latest changes done to Account Hierarchies.
GET_TERRITORIES.
,,This method reads the data from the log table and find the territories that are associated with eachof the business object entry found in the log table. Some attributes of a business object might gotchanged as a result of which an entry will be made in the log table. The territories that are associatedwith the business object prior to the changes are read from the relationship table. And the territoriesthat are associated to the business object as a result of the changes are found using the Rule Engine.For each of the business object found in the log table, both the old and new territory associations are found and a consolidated list of territories are given out without duplicates.
LOG_PROD_CHANGES.
,,This method is invoked if any changes are done to a Product Category or a Product Hierarchy. It willlook if a new Product has been added to a Product Category or a Product Hierarchy, or if an existingProduct is removed from a Product Category or a Product Hierarchy. If so, it will log the details aboutthe Product Category or the Product Hierarchy that is being modified. These logged entries are processedby the Batch Report developed for Master Data Notifications. This ensures that the Relationship table data is updated with the latest changes in the Product Categories and Product Hierarchies.
LOG_BP_CHANGES.
,,This method will be called when the attribute values of a BP or Account is modified from the BP application.It will look if any of the modified attributes are active for Territory Management application. If so,the details about the BP/Account is logged. The Batch Report developed for Master Data Notificationswill process these log entries to update the Relationship table data. It ensures that the Relationship table data is updated with the latest changes in the Accounts.
BATCH_JOB_CALLBACK.
,,This method will be called by the Batch report which processes the Master Data Notifications. Oncethe relationship table is updated with the latest master data, the entries in the log table are to beremoved. Once the batch report successfuly updates the relationship table, then this method is called to clear the log table.
Relationships
Example
Notes
Further information
Vendor Master (General Section) Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 6520 Date: 20120526 Time: 132339 triton ( 258 ms )






