2013 Sep 17 9:36 AM
Hi Friends,
I can able to read a HTML file data to internal table. but it has data with HTML Tags.
Now to capture the data alone.. is there any class or function module exist or do i need to capture data alone based tags?
Please provide your suggestion.
Thanks,
Munvar.
Hi Friends,
I can able to read a HTML file data to internal table. but it has data with HTML Tags.
Now to capture the data alone.. is there any class or function module exist or do i need to capture data alone based tags?
Please provide your suggestion.
Thanks,
Munvar.
2013 Sep 17 10:18 AM
Hi Basha,
Capture based on Tags itself.... Thank you .
Regards,
Balaji.
2013 Sep 17 12:19 PM
Hi Munvar Bahsa,
you can do this by using regular expression:
....
REPLACE ALL OCCURRENCES OF REGEX '<[a-zA-Z\/][^>]*>' IN TABLE GT_HTML WITH SPACE.
....
Regards,
Stefan
2013 Sep 19 10:07 AM
Hi Stefan,
Thanks for your sugesstion...
i tried with your suggestion... got an syntax error as "The word "REGEX" is reserved."
Is regular expressions will work in 4.7 Version?
is there any other solution....
2013 Sep 19 10:43 AM
In that case you can write your own code, something like this:
Loop at internal table.
Loop through characters of record using offset.
Concatenate character if it is not < or > and ignore flag is not set.
Set ignore flag if character is <.
Reset ignore flag if character is >.
Endloop.
Append.
Endloop.
2013 Sep 19 12:25 PM
Hi Munvar Basha,
that's right - regualar expressions are available in release 7.00.
As until suggested, you can do it by your own code for e.g. the follow function modules:
2013 Sep 17 12:25 PM
Same query has been answered before. You will find your answer here :
http://scn.sap.com/thread/1559562
regards,
Ashish Rawat
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |