Hi Selva, a lots of FI transaction if you check the system variable sy-tcode it will be FB01.
If you want to get the real transaction used, just use this ID Parameter.
DATA: l_tcode TYPE SHKONTEXT-TCODE.
CALL ‘GET_PARAM_TCOD’ ID ‘PTCOD’ FIELD l_tcode.
Regards
Rodrigo