Madhusudhan Mysore Vasudeva wrote:
2. If the answer of the q1 is yes, then how do we pass the password of the target system from FM --> 'SXPG_COMMAND_EXECUTE' from source system?
No you can't.
What you can do is you can create an OS independent link to a system level file such as a script, bat file, JCL etc etc. The function module hides the calling conventions of the host system from the ABAP program so that programs that rely on OS level processes can function without change across a variety of operating systems.
That job that you call can then GET/PUT files to a foreign system
Maintain the links using transaction SM69.
Rich