‎2008 Feb 20 12:59 PM
hi all,
i am having problem with internal table,
how to use 'like' condition in internal table similar to 'like' condition in sql
thanks
‎2008 Feb 21 10:46 AM
Hi Raghvendra,
You can use the following wildcard characters
% for a sequence of any characters (including spaces).
_ for a single character.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/frameset.htm
Reward if helpful.
Regards,
Mandeep
‎2008 Feb 21 2:25 PM
Hi,
Try it with this code.
RANGES: r_var FOR bkpf-belnr.
r_belnr-sign = 'I'.
r_belnr-option = 'CP'.
r_belnr-low = '999'. (Use the pattern which is needed)
LOOP AT itab WHERE belnr IN r_belnr.
This will trigger the control into the loop if such data exists.
ENDLOOP.
Regards
Aravindh A S
Edited by: Aravindh A S on Feb 21, 2008 3:25 PM
‎2008 Feb 22 3:19 AM
hi,
Hi,
LOOP AT itab.
IF itab-field1+0(2) EQ 'SQ'.
-
Based your requirement you can set the offset.
ENDIF.
ENDLOOP.