2009 Aug 31 9:00 PM
Hi experts, I´d appreciate your help.
It seems that depending of the length of the parameter passed to destXXXXX the FM generates the file or not.
If destXXXXX = u2018C: emp’ The file is generated OK
If destXXXXX = u2018C:Documents and SettingsakramerEscritoriou2019 the file is not generated!!
Why is this happening??
************************************************
DATA: destXXXXX TYPE STRING.
CONCATENATE p_file 'B1146.DBF' INTO destXXXXX.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = destXXXXX
FILETYPE = 'DBF'
TABLES
DATA_TAB = dbf_1146
FIELDNAMES = i_fieldnames_1146.
2009 Aug 31 9:17 PM
Hello Andres
No. The difference is the absence or presence of the final backslash:
CONCATENATE p_file 'B1146.DBF' INTO destXXXXX. " Results in:
p_file = 'C:\temp\B1146.DBF'. " Or.
p_file = 'C:\Documents and Settings\akramer\EscritorioB1146.DBF'.
Assuming that "Escritorio" is a directory you should search you file in the parent directory "akramer".
Regards
Uwe
PS: For local download you should use the methods of class CL_GUI_FRONTEND_SERVICES (Unicode-compatible).
2009 Aug 31 9:06 PM
Check the size of destXXX.
For better, change the type to STRING. This will allow you to have any length of your file path.
Thanks,
Kiran
2009 Aug 31 9:14 PM
destXXXXX was already declared as string, i wrote that
(DATA: destXXXXX TYPE STRING)
I debbug and I see that que rute y passed correctly, the funciotn seems to hace the problem inside... i don´t know.
2009 Aug 31 9:12 PM
2009 Aug 31 9:17 PM
Hi rob, there´s no error message, just that the file is not created if the length of the string is too long.
2009 Aug 31 9:17 PM
Hello Andres
No. The difference is the absence or presence of the final backslash:
CONCATENATE p_file 'B1146.DBF' INTO destXXXXX. " Results in:
p_file = 'C:\temp\B1146.DBF'. " Or.
p_file = 'C:\Documents and Settings\akramer\EscritorioB1146.DBF'.
Assuming that "Escritorio" is a directory you should search you file in the parent directory "akramer".
Regards
Uwe
PS: For local download you should use the methods of class CL_GUI_FRONTEND_SERVICES (Unicode-compatible).
2009 Aug 31 9:23 PM
If destXXXXX = u2018C:\Documents and Settings\akramer\Escritoriou2019 " see '\' is missing here
************************************************
DATA: destXXXXX TYPE STRING.
CONCATENATE p_file 'B1146.DBF' INTO destXXXXX. " after concat the string becomes C:\Documents and Settings\akramer\EscritorioB1146.DBF ====> no '\' between Escritorio and B1146
so your files name would be EscritorioB1146.DBF in folder u2018C:\Documents and Settings\akramer'
check that
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |