‎2008 Aug 16 8:43 AM
Hi Gurus,
While uploading data into application server, I have an issue. I am having the data in internal table but I am unable to send all the data into application server.
(open dataset file for output )
TRANSFER l_h_tbl_file TO fu_wk_get_file.
Data in internal table:
f1 f2 f3 f4 f5
1 2 - 4 5
after update to application server:
f1 f2 f3 f4 f5
1 2 - - -
I am getting 2 fields only. if any blank filed(f3) exist between those fields remaining fields also getting blank.
How can proceed further?
Regards,
Dhanu
‎2008 Aug 16 9:05 AM
Try this..instead of moving field by field into the file 1st convert all he fields to a character stream..and then move that steam to file. Ex:
loop at internal table into l_h_tbl_file.
concatenate l_h_tbl_file-f1 l_h_tbl_file-f2 l_h_tbl_file-f3
l_h_tbl_file-f4 l_h_tbl_file-f5 into g_string.
TRANSFER g_string TO fu_wk_get_file.
endloop.
‎2008 Aug 16 9:05 AM
Try this..instead of moving field by field into the file 1st convert all he fields to a character stream..and then move that steam to file. Ex:
loop at internal table into l_h_tbl_file.
concatenate l_h_tbl_file-f1 l_h_tbl_file-f2 l_h_tbl_file-f3
l_h_tbl_file-f4 l_h_tbl_file-f5 into g_string.
TRANSFER g_string TO fu_wk_get_file.
endloop.
‎2008 Aug 16 9:47 AM
Thanks for ur answer
I am using fixed length file. I am getting 900 characters data (divided into 48 fields). when I am transfering data into file I couldnt divide filed by field as u said. Can u tell me any other alternate?
Regards,
Dhanu