Skip to Content
0
Former Member
Apr 28, 2009 at 03:21 AM

Extracting partial string from a string - is it substring ?

2722 Views

Hi ... I am trying to extract partial string from a variable.

Some how, I am not able to find substring function per what describe here :

http://help.sap.com/abapdocu/en/ABENSUBSTRING_FUNCTIONS.htm

wa_date = '20090304120346'.

V_DATE = SUBSTRING( val = WA_DATE off = 0 len = 4 ).

V_MONTH = SUBSTRING( val = WA_DATE off = 5 len = 2 ).

V_DATE = SUBSTRING( val = WA_DATE off = 7 len = 2 ).

I got compile error ...

Am I doing the right thing ? Thanks.