‎2006 Nov 22 4:25 AM
I am facing Problem during File movement from one Directory to other directory when the destination & target directory with files name are more then 255.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZMOVE'
operatingsystem = 'Windows NT'
stdout = 'X'
stderr = 'X'
terminationwait = 'X'
trace = ' '
additional_parameters = lv_updstat_params
because exporting paramters which contains additional_paramters have 255 character length only, where i have to pass file name with directory paths of destination & target which is more then 255 characters.
Could any one suggest me solution for the same.
‎2006 Nov 22 4:28 AM
hi
Why dont you check the methods of <b>CL_GUI_FRONTEND_SERVICES</b>
Regards
Deepak
‎2007 Sep 05 9:04 AM
Hello Mitesh
you could try to move the files two times..
cause of this, your path will be so short, that it'll work probably.
Move it 2 times:
1. Move it to your c:\temp
2. Move it, where you want to move it
You could also use Paths like this
sapsrv01\place, which can be mapped as shares by Windows
Don't use CL_GUI_FRONTEND_SERVICES, if you plan to use that programm as a jobin background. Those Services are only working with a working frontend, in this case a SAP- client connection which is needed is absent.
yours,
Markus