Skip to Content
Technical Articles

Enable Change history for Responsibility Area in Trade Promotion Management 3.0

Purpose of the document is to enable change history for RA (Responsibility Area) when status is changed, and display the details in the Change history assignment block in the WEB UI. By standard any change in status of the RA(Responsibility Area)change history is not enabled for the and no entries are displayed in WEBUI. So to enable the change history for RA(Responsibility Area) when status is changed please check the below steps .

Login to WEB UI and search for Responsibility Area in UI.

Select any of the RA and change the status of it and check if any entry has been created in Change history assignment block.

Current status of the RA is active; Change history does not contain any entry right now.

Change the status of RA to inactive.

No entry is created in the change history assignment block.

To enable the change history entry in assignment block, following method needs to be changed.

Class: /JBPC/CL_CRM_RESP_AREA_API

Method: CHANGE_RESP_AREA_DEP_ATTR

In this method there is call of FM ‘CRM_STATUS_CHANGE_FOR_ACTIVITY’, make the importing parameter set_chgkz (‘Activate Change Documents’ Flag) so make this as ‘TRUE’

 

Another method that needs to be modified is

Class: /JBPC/CL_CRM_RESP_AREA_API

Method: READ_CHANGE_HISTORY

Get the change document no for the status changes

Data declaration

Call the FM ‘CRM_STATUS_NUMBER_CONVERSION’.

Now append all the details to change history buffer table

And then entries are sorted by date and time.

Change the RA status to active again and save.

Now you can see the entry in change history assignment block.

 

Conclusion :When the status is changed for the Responsibility Area , the changes are captured and are stored in the change documents manually by writing the logic in the above mentioned class interface methods and displayed in WEBUI.

Similarly if you want to capture the changes when a product group/Status is  changed, logic should be written in the class methods to capture them in change records and display in the change history assignment block.

 

Be the first to leave a comment
You must be Logged on to comment or reply to a post.