‎2012 Feb 01 1:14 PM
Hello Experts,
I'm using a string variable to save the filepath. The problem is that when the filepath is longer than 132 characters, the variable gets truncated.
DATA: baja TYPE String.
DATA: lv_path TYPE STRING,
lv_long TYPE i,
lv_tipo(4),
l_sel_folder TYPE String.
CLEAR baja.
lv_long = STRLEN( l_sel_folder ).
lv_long = lv_long - 4.
lv_path = l_sel_folder(lv_long).
CONCATENATE lv_path '-ERR-' sy-datum '-' sy-uzeit '.TXT' INTO baja.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
* bin_filesize =
filename = baja
I have tried to find a solution in the forum with no luck. How can I resolve this?
Thanks in advance and regards!
‎2012 Feb 01 1:25 PM
Since your BAJA is a string and the filename in GUI_DOWNLOAD method is a string, any truncation that is occurring would be caused by Windows. Are you certain that truncation occurs and not just a limitation on the width that you can view? Have you verified that a file with a long path/filename/extension doesn't actually get saved on the desktop target?
‎2012 Feb 01 3:45 PM
Just like BREAK-POINT said...
Try with
CONDENSE baja.before CALL METHOD... maybe.