Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

internal table problem

Former Member
0 Likes
503

hi all,

i am having problem with internal table,

how to use 'like' condition in internal table similar to 'like' condition in sql

thanks

3 REPLIES 3
Read only

Former Member
0 Likes
486

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

Read only

Former Member
0 Likes
486

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

Read only

Former Member
0 Likes
486

hi,

Hi,

LOOP AT itab.

IF itab-field1+0(2) EQ 'SQ'.

-


Based your requirement you can set the offset.

ENDIF.

ENDLOOP.