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:STRING_OFFSET_TOO_LARGE in TCODE:SAAB

Former Member
0 Likes
1,172

Using Tcode:SAAB,I create a Checkpoint Group:ZTEST.

In the Activation tab,I made the following settings for ZTEST.

[Breakpoints: Break

Logpoints: Log

Assertions(Foreground):Log

Background Processing:Log]

In a Report program,I wrote the following code:

[

REPORT z_1.

DATA: TEST TYPE char13 VALUE '123'.

ASSERT ID ZTEST SUBKEY 'init'

FIELDS TEST

CONDITION 1 NE 1 .

]

I executed the program, and then found the log of ZTEST in the Log tab by TCode:SAAB.

It was weird.when I used [Display Details] menu to view the variable ZTEST's content,the SAP

system showed a short dump.The following infomation is something about the short dump.

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

|

Edited by: Rob Burbank on Jun 6, 2010 4:36 PM

3 REPLIES 3
Read only

Former Member
0 Likes
608

Hello Wenyao Ma,

did you found the solution to this problem?

I am having the same dump and I can't find any clue on it.

Thanks

Sérgio Fraga

Read only

0 Likes
608

Hi Sergio,

Check below link.

Regards,

Manasa Veena P.

Read only

Former Member
0 Likes
608

Hello Manasa,

Thanks for your sugggestion but I did a debug in the method  convert_xstr2cstr of class CL_RTM_SERVICES where the dump is beeing raised and I discovered that my problem is related with the server_codepage. I don't know how the system is calculating this, but in my HR enviorment the dump does not happen since the following code is not executed (in HR server_codepage EQ codepage).

IF server_codepage NE codepage  AND codepage IS NOT INITIAL.

       TRY.

           cp_converter = cl_abap_conv_x2x_ce=>create( in_encoding  = codepage

                                                       out_encoding = server_codepage

                                                       input        = xstr ).

           cp_converter->convert_c( n = len ).

           xstring = cp_converter->get_out_buffer( ).

         CATCH cx_root.                                   "#EC CATCH_ALL

           xstring = xstr.

       ENDTRY.

     ELSE.

       xstring = xstr.

     ENDIF.

I need to find what is the server_codepage and how it is calculated.

Anyway, thanks!

Sérgio Fraga