AUTHORITY-CHECK for advertising material flag in change contact VAP2
I can't seem to find any specific instructions on implemention the AUTHORITY-CHECK function.
I have to add additional authorization to transaction vap2, program SAPMF02D - change contact person for customer.
The requirement is to check whether user has authority to change "Advertising Material" flag. I have created an authorization object in SAP FI authorization class
ZF_KNA1_AM with the following authorization fields:
ACTVT (possible activities are 01, 02, 03)
ZNMAIL (advertising material)
I guess the next step is actually inserting the authority check method into the program?
Where exactly do I insert the method to?
Could someone provide some instructions on this?