In the PAI module in your module pool program, check the value of the Function code for the button and enter the code
IF FCODE = X.
Call transaction AL11.
ENDIF.
In the PAI module in your module pool program, check the value of the Function code for the button and enter the code
IF FCODE = X.
Call transaction AL11.
ENDIF.