...
A standard sap function can be used to import files into the command queue. This function is called ARCHIVFILE_CLIENT_TO_SERVER.
1.Use the function ARCHIVFILE_CLIENT_TO_SERVER. from transaction se37:
a. Copy File $DIR_PC\K9XXXXX.XXX to the $DIR_TRANS/cofiles directory of the SAP System.
b. Copy File $DIR_PC\R9XXXXX.XXX to the $DIR_TRANS/data directory in the SAP System.