This must be easy, but I can't figure it out. I am trying to find the first space in a string field, and concatenate the string there. For example, if I have the string "AAAAA BBBBB", I want to capture only "AAAAA". I am trying to do a string search to find the first space in the field, but this does not seem to work. If I search for an actual character value, for example, using "" above, this works. This is an example of what I have tried:
FIND ' ' in 'AAAAA *BBBBB'.
This returns a value of 0 in sy-fdpos.
If I use this:
FIND '*' in 'AAAAA *BBBBB'.
it returns a value in sy-fdpos.