‎2009 Aug 19 3:45 AM
Hello Experts,
I have a file which has mutiple kinds of separator like '|', tab, etc. So,
how do I split my string table since I do not the kind of separator the file is using during
runtime.
Thank you guys and take care!
‎2009 Aug 19 5:29 AM
Hi viraylab,
Can you explain the problem in-extenso?
Regards,
Nidhi Kothiyal
‎2009 Aug 19 5:29 AM
Hi viraylab,
Can you explain the problem in-extenso?
Regards,
Nidhi Kothiyal
‎2009 Aug 19 6:59 AM
The file is generated by a legacy system and I need to uplaod it. The problem is that for some files, they have 2 or more kinds of delimiters like '|' and ','. So I need to do a dynamic checking of delimiter so I can split it correctly.
‎2009 Aug 19 7:04 AM
are you using LSMW?
if yes then there you can write your code to convert all separators to one particular type.
if not,
then just after gui_upload you can put your code to replace all type of delimiter by a single type.
‎2009 Aug 19 5:31 AM
search and replace all separators by a single separator.
then use this separator for all files.
‎2009 Aug 19 5:39 AM
is the file getting generated automatically?is your program running in background?if no provide a separator field on selection screen so that user can enter separator on screen and you can split your text accordingly.
‎2009 Aug 19 5:41 AM
Firstly,
i think you should you command FIND to find for each separator, then replace each ones by other same separator (for instance replace all |, tab by '#').
Secondly,
split your string to table.
Hope this help
‎2009 Aug 19 5:44 AM