The BAdI CRM_MKTPL_OL_ASG can be used to implement additional processing for assignments in trade promotion management. The BAdI is called for each individual assignment, such as product or date assignment.
Each assignment has a certain check logic. In case the check is too restricitive the same can be turned off using the BAdI method CHANGE_CHECK_MODE.
In method CHANGE_CHECK_MODE the CHECK_MODE needs to be set to 'N' to skip the check..
The check_before_create method is called on creating any assignment. With setting the parameter EV_REJECT_CREATE within the BAdI implementation the assignment is not created.
The check_before_delete method is called on deleting any assignment. This may be used to introduce further checks. In case the application does not allow to delete any TP assignment, the BAdI cannot be used to overrule the application.
The copy_before method can be used to skip copying of a specific assginment. This can be used for example to prevent the funds plan to be copied from the source promotion, while copying trade promotions for a new fiscal year.
This needs to be done with creating a BAdI implementation for assignment FPLAN and setting the reject_copy flag.
The SET_ATTRIBUTES_BEFORE interface is called before each assignment is created. The CS_ATTRIBUTES_NEW parameter can be used to change values for the assignment.
Trade Spend Assignment
General (assignment independent) Issues