Hi All,
I have an OTF that I need to split in to bits. My OTF is currently held in a table like this:
DATA : lit_otf TYPE STANDARD TABLE OF itcoo.
I populate the OTF to the table like this:
lit_otf = objcont[].
When I debug, I can see all the OTF data in a two column table, one column with the identifier (e.g. //, OP, EP, SW, ST ) and the second column has the actual content. What I am trying to do is to loop through the entire OTF and split it in to bits. The point to split will be a text value "Page1" which will be found many times in the content column. I need to take everything from the Page1 string right up to the line before the next Page1.
The end game here is to pass each split out piece of content to a pdf writer. I have written the code to accept OTF and output a PDF, I just need to establish to how break up the OFT and pass a piece through each time.
Any help would be greatly appreciated.
Many thanks