I am looking for the BADI for BP which will help me to set these two flags I.e SPERR and SPERM.
please help me .
Did you look at the BAdI BUPA_*_UPDATE (from BUPA_ADDR_UPDATE to BUPA_TAX_UPDATE, e.g. BUPA_GENERAL_UPDATE)
Hint: Try the FM BUPA_*_CALLBACK in the BAdI implementating class to access data then a FM such as BUPA_*_CHANGE to update the data, e.g. BUPA_CENTRAL_CHANGE)
actually, the above field is present in the LFA1 table not in BP related table so could you please help me with this
So you are not on a S/4 HANA system - Read 2790047 - Fields not available in transaction BP
You could either