I have code which monitor database.
There are two servers, one is XID and other is ECD. Messages are flowing from ECD to XID.
Code is uploaded in XID server .Code monitor XID database .code hits Standard Sap table i.e. SXMSPMAST, check entries and send alert as per condition.
ECD server requires to monitor ECD database by using same code existing in XID.
ECD server wonu2019t allow deploying code.
Requirement is as follows.
1) Convert code (Existing in XID) into RFC.
2) Call this RFC from ECD server.
3) Pass server name u2018ECDu2019 as import parameter to RFC.
5) Monitor ECD database using same piece of code (Via RFC).
Let me know whether it is possible to monitor R/3 database using RFC?
If possible then what are mandatory object I need to add in RFC?