SAP Knowledge Base Article - Preview

3706232 - Runtime error STRING_OFFSET_LENGTH_TOO_LARGE in program SAPLSPFL when calling procedure CHECK_FOR_PROFILE_NAME

Symptom

During the import of profiles in transactions that verify profiles at the OS level, such as SNCWIZARD and RZ04, a runtime error STRING_OFFSET_LENGTH_TOO_LARGE is triggered within the procedure CHECK_FOR_PROFILE_NAME.

Category                      ABAP programming error
Runtime Errors                 STRING_OFFSET_LENGTH_TOO_LARGE
Except.                       CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program                  SAPLSPFL
Application Component    BC-CCM-CNF-PFL
Date and Time                 21.01.2026         12:55:17         (CET)

Short Text
Invalid access to a string (offset and length too big)

Error analysis
An exception has occurred in class "CX_SY_RANGE_OUT_OF_BOUNDS". This exception was not caught in procedure "CHECK_FOR_PROFILE_NAME" "(FORM)" or propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated this exception, the current program was terminated.
The reason for the exception occurring was:
The reason for the exception is:
An attempt was made in program "SAPLSPFL" to access a part of a string using an offset and length.
The total of the offset (26) and the length (30) was greater than the current length of the string (33) however. Access is not possible like this.

Information on where terminated
The termination occurred in ABAP program or include "SAPLSPFL", in "CHECK_FOR_PROFILE_NAME". The main program was "SAPLSPFL".

In the source code, the termination point is in line 830 of include "LSPFLFXX". include "LSPFLFXX".
The termination is due to exception "CX_SY_RANGE_OUT_OF_BOUNDS" occurring in procedure "CHECK_FOR_PROFILE_NAME" "(FORM)", but not being handled locally there or being declared in the RAISING clause.

The procedure is in program "SAPLSPFL". Its source code begins in line 808 of include "LSPFLFXX".


Read more...

Environment

SAP S/4HANA
SAP NetWeaver Application Server for ABAP
SAP NetWeaver

Product

ABAP platform 1809 ; ABAP platform 1909 ; ABAP platform 2020 ; ABAP platform 2021 ; ABAP platform 2022 ; ABAP platform 2023 ; ABAP platform 2025 ; SAP NetWeaver 7.0 ; SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Application Server for ABAP all versions ; SAP S/4HANA 1610 ; SAP S/4HANA 1709 ; SAP S/4HANA 1809 ; SAP S/4HANA 1909 ; SAP S/4HANA 2020 ; SAP S/4HANA 2021 ; SAP S/4HANA 2022 ; SAP S/4HANA 2023 ; SAP S/4HANA 2025 ; SAP S/4HANA, on-premise edition 1511

Keywords

STRING_OFFSET_LENGTH_TOO_LARGE, RZ10, SNCWIZARD, RZ04, Operation Modes, DEFAULT.PFL, Instance Profile, Profile Import, Profiles, CX_SY_RANGE_OUT_OF_BOUNDS, CHECK_FOR_PROFILE_NAME, SAPLSPFL , KBA , BC-CCM-CNF-PFL , Profile Maintenance , BC-CCM-CNF-OPM , Operation Modes , BC-SEC-SNC , Secure Network Communications , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.