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

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

$
0
0

Hi Nagendra,


I'm just sharing code which need to changed accordling. Just an idea


DATA : w_str TYPE string VALUE 'abapaaaaaaaaaaaaaaaaaaaaaaaaa aabaaaaaaaaaaaaaaaaaaqqqqq',

           part  TYPE n VALUE 3,

          w_lengh(4) TYPE n,

          offset(3) TYPE n,

          start(3TYPE n,

         wa_area(100)   TYPE c .


* String lengh

 

w_lengh = strlen( w_str ).

 

offset = w_lengh  DIV part .

 

start = 0.

 

DO part times.

 

   wa_area = w_str+start(offset).

* APPEND wa_rea to t_table.

   start = start + offset.

 

ENDDO.


Thanks & Regards,

Arun


Viewing all articles
Browse latest Browse all 8540

Trending Articles



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