‎2007 Mar 09 1:29 PM
I have a file that is to be uploaded using GUI_UPLOAD.
Each record in the file contains several fields, including serial number.
And for each record there could be none, one or several serial numbers.
So I tried creating an internal table with a table type component
for serial numbers but an exception is thrown since the function expects
an elementary type rather than a type table.
Can I dynamically create the internal table at runtime to
reflect the maximum number of serial numbers that must be
uploaded for the records?
‎2007 Mar 09 4:51 PM
Hey why do you have to declare that as a table type instead you can do like the header and line item data. Each line of the record having multiple serial numbers.if it has multiple lines it will be multiple records in the internal table with the rest of the fields blank and only serial no filled. If there are no records there will not be any entries in the table.
Which means your file looks like this...
100 2007 1
2
3
200 2007 4
5
300 2007 6
7
400 2007 8
I don't see for this a table type field or dynamic table has to be declared ?
let me know if its something different posting your file. If it helps award points.
‎2007 Mar 09 3:29 PM
Hi,
Its not clear your requirement ,
Can you please paste your sample input file?
aRs
‎2007 Mar 09 4:51 PM
Hey why do you have to declare that as a table type instead you can do like the header and line item data. Each line of the record having multiple serial numbers.if it has multiple lines it will be multiple records in the internal table with the rest of the fields blank and only serial no filled. If there are no records there will not be any entries in the table.
Which means your file looks like this...
100 2007 1
2
3
200 2007 4
5
300 2007 6
7
400 2007 8
I don't see for this a table type field or dynamic table has to be declared ?
let me know if its something different posting your file. If it helps award points.