HI Assen,
I think it's the same way. You must find the rfc function module that create the document on the GTS side and look which is the rfc mode field. It is the way you call the rfc function module.
E.g. the call of /SAPSLL/API_6800_EMC_CREATE
data: lv_rfc_mode type c,
lv_dark type c value 'N'.
lv_rfc_mode = lv_dark.
Lv_rfc_mode = 'N' <-----------IN THIS CASE YOU DON'T REACH THE GTS
call function '/SAPSLL/API_6800_EMC_CREATE'
in background task
destination p_rfc_dest
as separate unit
lv_rfc_mode = 'S' <----------IN THIS CASE YOU REACH THE GTS
call function '/SAPSLL/API_6800_EMC_CREATE'
destination p_rfc_dest
You see the difference?
The Problem is to find the place where the fm is called.
Hope that helps
Regards,
Thomas