Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

File Upload

Former Member
0 Likes
406

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

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.

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
386

Hi,

Its not clear your requirement ,

Can you please paste your sample input file?

aRs

Read only

Former Member
0 Likes
387

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.