how to find string last 4 chars
i need to get the last 4 chars of the string with that i have to compare.
in bdc i have to upload the data from flat file that may be .txt / .xls.. which FM we have to use for to upload.
any suggestions .. pl..
DATA: STR TYPE STRING VALUE 'testfrom2007'.
DATA: STRL TYPE I.
STRL = STRLEN( STR ).
IF STRL > 4.
STRL = STRL - 4.
CSTR = STR+STRL(4).
CSTR = STR.