In my program , there is some logic based on the tcode running..
i write the logic based on tcode...
if sy-tcode = 'XXX'.
write : / 'XXX'.
write : / ABC.
it is working fine in foreground.. but not able to handle the sy-tcode in background..
please guide me on this..