The only reason why I am using internal table is to filter out what files I need. Regardless, it is up to you if you want to use the select from internal table MOCA command or not.
If you want to transfer files from One WMS instance to another. I would suggest you to do the following:
1. Find Files (there are multiple ways of going about it to get the full path of a file or multiple files). See my blog for details.
2. Do a remote call into the destination instance and see if files are already there or not. If not, then proceed to put ftp or put sftp command.
3. If files are already there (not sure if you want to overwrite files or not - then do some processing based on the logic you want). If you want to read the contents of a file first or do comparsion - then you can use the read file MOCA command and perform some logic accordingly.
Hope this helps!