Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem facing during File Movement

Former Member
0 Likes
348

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.

2 REPLIES 2
Read only

Former Member
0 Likes
333

hi

Why dont you check the methods of <b>CL_GUI_FRONTEND_SERVICES</b>

Regards

Deepak

Read only

Former Member
0 Likes
333

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