‎2009 Nov 23 5:02 AM
Hi Experts,
when iam using gui_upload function module it is retriving data correctly from a notepad.
but when iam sending through attachment that data is not aligned properly what is the problem.
‎2009 Nov 23 6:38 AM
Hi,
As per your question its not clear that how an attachment of what, is meant to be read/download by GUI_UPLOAD or GUI_DOWNLOAD. U can use GUI_UPLOAD in many ways to read data from flat file. this depends on the data available in flat file.
If the record alignment in the flat file is not proper or following a particular pattern, then capture total data line by line in an internal table and then separate the data into its corresponding fields into a separate internal table.
If the record alignment is almost tabular form then direct column to internal table data maping can be achieved.
Now in case of GUI_DOWNLOAD, if u are trying to download data in tabular form, it might happen that in some record lines in the flat file data might get shifted due to variable lenght of field values even if column lengths are fixed. But the same records are read from a flat file. data will be fetched properly.
Regards,
Pulokesh
‎2009 Nov 23 6:38 AM
Hi,
As per your question its not clear that how an attachment of what, is meant to be read/download by GUI_UPLOAD or GUI_DOWNLOAD. U can use GUI_UPLOAD in many ways to read data from flat file. this depends on the data available in flat file.
If the record alignment in the flat file is not proper or following a particular pattern, then capture total data line by line in an internal table and then separate the data into its corresponding fields into a separate internal table.
If the record alignment is almost tabular form then direct column to internal table data maping can be achieved.
Now in case of GUI_DOWNLOAD, if u are trying to download data in tabular form, it might happen that in some record lines in the flat file data might get shifted due to variable lenght of field values even if column lengths are fixed. But the same records are read from a flat file. data will be fetched properly.
Regards,
Pulokesh