Skip to Content
0
Apr 11, 2013 at 10:21 AM

WRITE_TO_OFFSET_TOOLARGE cause sy-linsz

421 Views

Hi.

I'm not sure if this is the right forum, but I have an error on the transaction S_ALR_87012831 (IM).

It seems to be the sy-lynsz value too large (270) for the report (255).

(slinsz seems to get the value by sy-lynsz, but I'm not sure)

It happens only on a PC, it works well on other ones.

Does somebody know where it gets the value 270?

This is the error:

"The current ABAP/4 program "SAPMKCBE " had to be terminated because
one of the statements could not be executed.

This is probably due to an error in the ABAP/4 program.

[...]

In a "WRITE src TO dest+off[(len)] [INDEX i]" statement,

"off" contains a target field offset (270) which is larger than

the length of the target field "dest" (255).

This is not allowed."

These are the statements:

"000480 PERFORM GET_TOTAL_WIDTH.
000490 IF RKB1D-REPWU LT SLINSZ.
000500 *......................................Der Rüssel muß weg!.............
000510 I = SLINSZ - 1.
> WRITE SY-VLINE TO VLINES+I(1).
000530 ENDIF.
000540
000550 ENDFORM."

thanks in advance

Massimiliano