User Tools

Site Tools


abap:string_func

This is an old revision of the document!


String functions in ABAP

Find position of first occurence

data: v_len type i.
IF str CA '<searched str>' .
v_len =  sy-fdpos.
ENDIF.

NB : la numérotation commence à 0 (ex. : recherche de 'C' dans 'ABCD' ⇒ sy-fdpos = 2.

abap/string_func.1414415565.txt.gz · Last modified: 2014/10/27 14:12 by ginko