SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

ABAP SPLIT statement for splitting a string

Now let us learn how to split the contents of a string variable according to the specified delimiter ( character from where the split should happen ) in ABAP. This can be achieved by using SPLIt keyword in ABAP. The statement with SPLIT will split the contents and store the results into different variables or into an internal table.

Here is the syntax

If the size of a spitted string part is bigger than and defined destination variable, system field SY-SUBRC value will be 4, otherwise it will be zero ( shows successfully spitted ).

See the following sample source code and result for getting more idea about this statement

ABAP SPLIT string keyword

SAP ALECRMSCMSRMSAP Solutions SAP ReferencesSAP BasicsPP ModuleWMSAP Partners
HomeContact & Privacy PolicyTwitter
All of the product names here are trademarks of their respective companies. The site sapstack.com is not affiliated with SAP AG.
©2024 sapstack.com