‎2009 Dec 22 10:11 AM
Hi Experts,
Can any one suggest me how to declare of dynamic internal table for below given scenario.
Text file upload:
Text file upload shall allow u201C;u201D and tab seperated fields.
Fields shall be always in this order Location, Product, Version, followed by the fields to be changed. It shall be possible to change only a few fields, e.g. only the safety stock.
Therefore the column header for the fields to change will be the technical field name.
To give an example the file could look in this way:
Location Product Version SAFTYC SHIPH
0032 504 YWSIM 12345 4
V120 60482 YWSIM 4578 2
Regards,
Jayaram
‎2009 Dec 22 10:31 AM
Hi,
One option is that for uploading purpose, an itab can be defined having the first three fields as Location Product Version.
The other fields, instead of dynamic, can be built upon a limit
eg.
F01, F02,F03,F04..... till. F20. eg.
These Fnn fields can be Charcater with length say 40.
So this itab will help to upload the data in the first place.
Later on, reading the first record of this itab, and determining which kind of field it is (eg. numeric, text) , logic can be written.
Regards,
Amit Mittal.