Skip to Content
Jul 14, 2015 at 07:29 PM

help with substring


Hi, I have some text fields I need to parse and could use some help. The fields I have to parse have an ID followed by a space and then more text.

I would like to capture the left most text/id before the first space only. I know with all the new abap functions there must be a quick function to accomplish this. I tried one of the substr functions but it didn't like using SPACE as a separator.

Thanks for any help


Field TextResult ValueAB1 Reason Code 1 AB1AB2 Reason Code 3AB2AA Reason Code 3AAAB Reason Code 4AB1266 Reason Code NA126618222 Reason Code High18222