Hi
I believe you are using badi QM00_SUBSCR_5000 and dynpro 5000. It would be possible if you enter the coding in methods for PAI and PBO (see the sample coding in the badi definition in tcode SE18), so, write the coding in these methods:
PUT_DATA_PBO
GET_DATA_PBO
PUT_DATA_PAI
GET_DATA_PAI
I hope this helps you
Regards
Eduardo