Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Runtime error

Former Member
0 Likes
1,153

Hi all,

When I try to change the SAP script for NL language for page windows Iam getting the following dump.


Runtime Error          RAISE_EXCEPTION 
ShrtText                                                 
    Exception condition "INVALID_TEXT_ENVIROMENT" raised.
Error analysis                                                                     
    A RAISE statement in the program "CL_SCP_LINEBREAK_UTIL=========CP" raised the 
     exception                                                                     
    condition "INVALID_TEXT_ENVIROMENT".                                           
    Since the exception was not intercepted by a superior program                  
    in the hierarchy, processing was terminated.                                                                                
Short description of exception condition:                                      
 Forr detailed documentation of the exception condition, use                     
    Transaction SE37 (Function Library). You can take the called                   
    function module from the display of active calls.                              

Iam getting this error only for NL language.

I searched for the SAP notes but unsuccesful.

Any help will be appreciated.

Thanks

Saichand

8 REPLIES 8
Read only

Former Member
0 Likes
1,041

chk in table T002 what is the value for field LAHQ for NL,

if its value is 0 , then the language is not classified

Read only

0 Likes
1,041

Hi Chandrasekhar,

The value for LAHQ is 2.

Read only

0 Likes
1,041

hi

any ideas???

Read only

0 Likes
1,041

can u show the code pointing the line where the termination occured

Read only

0 Likes
1,041

Hi,

method GET_VISUAL_STRINGLENGTH .

call method string_split_at_position

exporting

im_string = im_string

im_langu = im_langu

IM_METRICS = im_metrics

  • IM_POS_VIS =

  • IM_POS_TECH =

im_boundary_kind = cl_scp_linebreak_util=>c_boundary_grapheme

IMPORTING

EX_POS_VIS = ex_pos_vis

  • EX_POS_TECH =

EXCEPTIONS

POS_NOT_VALID = 1

UNSUPPORTED_BOUNDARY_KIND = 2

INVALID_TEXT_ENVIROMENT = 3

others = 4.

if sy-subrc <> 0.

if sy-subrc = 3.

raise invalid_text_enviroment.

else.

message x000(seg) with sy-subrc.

endif.

endif.

sy-subrc = 3 iam getting the error.

Message was edited by: Sai Chand Pullepu

Read only

0 Likes
1,041

you had not posted ur declaration of variable ,

anyway check this prog

DEMO_MOD_TECH_FB_STRING_SPLIT

Read only

0 Likes
1,041

HI,

Information on where terminated

The termination occurred in the ABAP program "CL_SCP_LINEBREAK_UTIL========

in "GET_VISUAL_STRINGLENGTH".

The main program was "SAPMSSCF ".

The termination occurred in line 24 of the source code of the (Include)

program "CL_SCP_LINEBREAK_UTIL=========CM002"

of the source code of program "CL_SCP_LINEBREAK_UTIL=========CM002" (when

calling the editor 240).

Please tell me how to fix this problem?

Message was edited by: Sai Chand Pullepu

Read only

0 Likes
1,041

Are you sure there are no relevant OSS notes? I found 4 or 5 for this problem with this program:

628255

820496

807775

575346

Rob

Message was edited by: Rob Burbank