There is one option in the BADI call the class /SAPSRM/CL_TRANSACTION_CONTEXT and there is a static method /SAPSRM/IF_TRANSACTION_CONTEXT~GET_INSTANCE in this class to pass reference.
Call the method /SAPSRM/IF_TRANSACTION_CONTEXT~GET_CURRENT_ACTION of this class to get the current action