This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Improvement of code at https://blogs.sap.com/2014/02/25/alternative-to-readtext-function-module/comment-page-1/#comment-4121 | |
* including Kenneth proposal at https://blogs.sap.com/2014/02/25/alternative-to-readtext-function-module/comment-page-1/#comment-452639 | |
* | |
* Create your own class implementing LIF_PROCESSOR to process each text extracted. | |
* Two demo classes are provided: LCL_WRITER (active) and LCL_VERIFIER (if you want to test). | |
* | |
* Note: you won't need this code if you have the newest standard function modules READ_MULTIPLE_TEXTS and READ_TEXT_TABLE installed in | |
* your system (cf note 2261311 – Function module for reading multiple SAPscript texts -> https://launchpad.support.sap.com/#/notes/2261311/E ) | |
REPORT zdemo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rem 1) select the text lines representing a table whose columns are separated by the tab character | |
Rem 2) run this macro | |
Rem 3) result: the tab characters are replaced by two or more space characters such a way each column | |
Rem has the same number of characters | |
Rem 4) you may then copy/paste those text lines inside HTML <pre>...</pre> it will look like a table | |
Sub tabs_to_spaces() | |
Dim par As Paragraph | |
Dim pars() As Paragraph | |
Dim arr(50) As Integer ' 50 tabs maximum per line |
NewerOlder