Menu

SAP Function Module STRING_SPLIT_AT_POSITION

Split a string with a proper position into two parts

The Function Module STRING_SPLIT_AT_POSITION (Split a string with a proper position into two parts) is a standard Function Module in SAP ERP and is part of the function group CSTR within the package SCP.

Technical Information

Function Module STRING_SPLIT_AT_POSITION
Short Text Split a string with a proper position into two parts
Function Group CSTR
Package SCP
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
LANGU LIKE SY-LANGU SY-LANGU Language of the text of STRING
POS TYPE I Position
STRING TYPE C Character string to be demounted

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
POS_NEW TYPE I Actual position
STRING1 TYPE C Head of STRING in front of POS
STRING2 TYPE C Tail of STRING behind POS

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
POS_NOT_VALID Invalid input parameter of POS
STRING1_TOO_SMALL Output field STRING1 too briefly
STRING2_TOO_SMALL Output field STRING2 too briefly