Experts, I have internal table like this.
Col1 Col2 Col3 Col4
INV |1213 |20130606 |133057 |
INX |760864 |20130528 |RG# |
IND |760865 |20130528 |RG# |
INT |760866 |20130528 |RG# |
INM |760867 |20130528 |RG# |
INV |1222 |20130606 |133056 |
INX |760864 |20130528 |RG# |
IND |760865 |20130528 |RG# |
INT |760866 |20130528 |RG# |
IND |760865 |20130528 |RG# |
INT |760866 |20130528 |RG# |
INM |760867 |20130528 |RG# |
INV |2342 |20130606 |133055 |
INX |760864 |20130528 |RG# |
IND |760865 |20130528 |RG# |
INT |760866 |20130528 |RG# |
INM |760867 |20130528 |RG# |
Where ever INV exists I need to split until next INV record. What is the best way to achieve it.
Any sample code is highly appreciated
Thanks in advance.