I have added a new tab to receive an information (RDC) which will be saved in a new field of KNVV table.
This was done implementing particular interfaces of BADIs CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CS.
I now want this button to be visible only when a particular account group is selected during creation (XD01) or when changes are made to a customer having that particular AG.
The information about the AG stored in the KTOKD field of the table KNA1.
But I am not very sure how to restrict this button on the basis of that.
Any helpful suggestions?