Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8501

Splitting a string into multiple parts from particular position (string has no delimiter )

$
0
0

Hello Gurus,

 

I need to make string of having length 1000 into multiple parts from a particular position which has some text without any delimiter and i want to populate each part into an internal table which has one filed...

 

eg : string = 'sap abap sap abap sap abap sap abap sap abap sap abap sap abap sap sap sap abap sap abap'

              

suppose i want to start splitting from 40th position...assume that i have 3 parts

and these 3 parts i have put into an internal table..

 

lt_itab = [sap abap sap abap sap abap sap abap,

              sap abap sap abap sap abap sap abap,

               sap abap sap sap sap abap sap abap]

plese help!

 

any help would be Appreciated ...thank you


Viewing all articles
Browse latest Browse all 8501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>