FIND ALL OCCURRENCES OF REGEX `((ab)|(ba))` IN 'abba' RESULTS result_tab. Addition 6 ... SUBMATCHES s1 s2 ... Effect This addition can be used only when aregular expressionis used inpattern. The current contents of theregistry of the subgroupsof the regular expression are written tos1...
find ALL OCCURRENCES OF '/' in text RESULTS result_tab. result_tab contains a field 'OFFSET' which holds all the positions of the chanracter '/'. Hope this will help. Regards, Swarna Munukoti. Reply Former Member 2008 Aug 26 11:09 AM 0 Kudos 162 SAP Managed Tags: ABAP De...
SAP Managed Tags: ABAP Development Hi, check this.. DATA: patt TYPE string VALUE `now`, text TYPE string, result_tab TYPE match_result_tab. FIELD-SYMBOLS <match> LIKE LINE OF result_tab. FIND ALL OCCURRENCES OF patt IN `Everybody knows this is nowhere` RESULTS result_tab. LOOP AT ...
START-OF-SELECTION. demo=>main( ). In the text fieldtextall the occurrences are searched for (usingcountandfind) that correspond to a regular expression. When a search is successful, the subfield found is read out and displayed with the help of thematchfunction. ...
DATA: TEXT TYPE STRING VALUE 'RO_LL_OVER BEET_HOVEN', MOFF TYPE I VALUE '-1'. FIND FIRST OCCURRENCE OF '_' IN TEXT IN CHARACTER MODE IGNORING CASE MATCH OFFSET MOFF. WRITE:/ MOFF. CLEAR MOFF. MOFF = '-1'. FIND ALL OCCURRENCES OF '_' IN TEXT IN CHARACTER MODE IGNORING CASE MAT...
There could be multiple occurrences of any element in a list. But using List.lastIndexOf() function, we can get the last occurrence of the item in a list. Syntax of List.lastIndexOf() The syntax of List.lastIndexOf() function is ...
REPLACE ALL OCCURRENCES OF ''' IN I_USEREXIT-TXT WITH SPACE. I_USEREXIT-MODNAME = I_USEREXIT-TXT+16(8). CASE I_USEREXIT-TXT+25(1). WHEN 'E' . CLEAR WA_TBE01T. SELECT SINGLE TEXT1 INTO WA_TBE01T-TEXT1 FROM TBE01T WHERE EVENT = I_USEREXIT-TXT+16(8) AND SPRAS = SY-LAN...
SAP Managed Tags: ABAP Development try the following replace all occurrences of CL_ABAP_CHAR_UTILITIES=>CR_LF in source_string with `` . try this withe all the other ones i have given in the previous thread Reply Former Member 2008 Feb 19 11:14 AM 0 Kudos 231 SAP Managed ...