‎2007 Sep 06 1:39 PM
Hi ABAP,
i got a string. Example: 'hello world, blablabla fhuhfuahu psiuiua auugui'.
what i really want is to search the string for the first space, but from the right side.
in the search statement i have not found any addition which allows me to search the string backwards. Maybe if i give starting_at a higher value than ending_at. tho i dont believe that.
so i though about a workaround.
I´d like to swap the string so first character becomes last character and last becomes first. now i could search the swapped string for the first occurance of space.
if anyone got any ideas regarding this scenario i´d really like to hear them.
Thanks
‎2007 Sep 06 1:42 PM
Hi,
Use the function module STRING_REVERSE to reverse a string then use the Search for the SPACE in the reversed string then do the code which suits your requirment
Regards
Sudheer
‎2007 Sep 06 1:42 PM
Hi,
Use the function module STRING_REVERSE to reverse a string then use the Search for the SPACE in the reversed string then do the code which suits your requirment
Regards
Sudheer