How can have trailing Spaces in a Charecter field type
Hi,
I am downloading a file using WS_DOWNLOAD function.
i have a internal table defined as
data : itab_dw occurs 0,
fd_1 type c,
fd_2(12) type c,
fd_3(20) type c,
end of itab_dw.
clear itab_dw.
itab_dw-fd_1 = 'H'.
itab_dw-fd_2 = 'test'.
itab_dw-fd_3 = 'name'.
append itab_dw. clear itab_dw.
note itab_dw-fd_3 has lenght of 4 characters, i want to pad it with spaces after 'name '.
once the file is downloaded the contents are
Htest name
i want the file as
Htest nameBBBBBBBBBBBBBBBB
Thanks & Regards,
Riyaz
The answer is already in this forum. Please search with keywords "ws_download fixed length". You will find how to use parameter 'VSS', which is not in the documentation but in the OSS notes.