Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow
ABAP developers frequently work with ABAP string functions and operators in order to deal with string variables and text operations.
Splitting string operations is one of ABAP split string tasks frequently faced with.
Although when SPLIT is the topic of a conversation in ABAP, the ABAP SPLIT function comes to mind first.
If there is a separator character like comma (,) or space, ABAP SPLIT function will work great.
But recently a friend came to me, and asked me how to divide a string variable in fixed length pieces and store them in an internal table.
Then this requirement is somehow different then the SPLIT function offers.
In fact the solution is as simple as illustrated in the given sample ABAP code with using str_var+10(10) like usage.
The output of this example ABAP report is as follows :