‎2007 Jan 12 5:51 AM
Hi all ,
Please guide me how to upload a DAT file with pipe delimiter to an Itab.
thanks.
‎2007 Jan 12 5:52 AM
‎2007 Jan 12 5:58 AM
Hi,
Use WS_UPLOAD and read the entire line as a single string into an internal table.
Thenuse the SPLIT stmt to read into separate variables.
Eg:
data: begin of itab occurs 0,
line(132),
end of itab.
Use WS_UPLOAD to read into this internal table.
then use: SPLIT itab at '|' into v1 v2 v3 ...
Regards
Subramanian
‎2007 Jan 12 6:01 AM
use GUI_UPLOAD, in filetype give it as 'DAT' and field seperator give '|'
by the way when u are passing the filename into FM take care that the filename is in format of string
‎2007 Jan 12 6:21 AM
HI RAHUL,
in gui_upload please tell me to which parameter i should pass the field separator '|'
‎2007 Jan 12 6:23 AM
u have this commented default when u call the FM, uncomment it
HAS_FIELD_SEPARATOR = '|'