Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Runtime Error when splitting strasse

$
0
0

Check this one:

DATA:

lv_street TYPE string,       

lv_numb   TYPE string,        

lv_compl  TYPE string,        

lv_off    TYPE i.

lv_street = 'Avenue Boulevard 235 C'.

FIND REGEX '(\d+)\s*(.*)' IN lv_street SUBMATCHES lv_numb lv_compl  MATCH OFFSET lv_off.   lv_street = lv_street(lv_off).

CONDENSE: lv_street, lv_numb, lv_compl.

WRITE:/ lv_street,         / lv_numb,         / lv_compl.

 

I am having issue now that I am testing to all employees. 

Issue is right here.     

lv_street = lv_street(lv_off).  

 

Run time error. Lenght is too long. 

However, this lenght (13) exceeded the current lenght of the string (7) This kind of access is illegal . 

Anyone to help please?

 

 

Category: Abap programming error Runtime errors: STRING_LENGTH_TOO_LARGE Exp. CX_SY_RANGE_OUT_OF_BOUNDS


Viewing all articles
Browse latest Browse all 8768

Trending Articles



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