How to determine if FM is triggered from other system?
I have a requirement that creates and updates a contract via transaction ME31K and ME32K and triggers ME_CREATE_DOCUMENT and ME_UPDATE_DOCUMENT respectively.
Aside from that, contract should also be created or changed from other system via an RFC FM but I don't know if SY-CPROG is enough. What I did is I filtered my change by SY-TCODE (for ECC process) and SY-CPROG (for via RFC process). Am I correct to use SY-CPROG for RFC process?