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 COMPARISIO N

Former Member
0 Likes
727

Hi friends,

I am debugging one report... in that report i have one statemet.

IF ITAB1 CA '1234'.

what is it means.

Advance thanks,

Anil.

Hi friends,

I am debugging one report... in that report i have one statemet.

IF ITAB1 CA '1234'.

what is it means.

Advance thanks,

Anil.

5 REPLIES 5
Read only

Former Member
0 Likes
705

contains any = CA

CA (Contains Any)

The logical expression

<f1> CA <f2>

is true if <f1> contains at least one character from <f2>. The comparison is case-sensitive. If the comparison is true, the system field SY-FDPOS contains the offset of the first character of <f1> that also occurs in <f2> . If it is false, SY-FDPOS contains the length of <f1>.

Regards

Prabhu

Read only

Former Member
0 Likes
705

Hi,

IF ITAB1 CA '1234'.

if any of the fields of ITAB1 contains any 1234..

then the successive code gets executed.

regards,

kiran kumar k

Read only

Former Member
0 Likes
705

Hi...

IF ITAB1 CA '1234'.

it is a string comparison operator.

if ITAB1 Contains any of the characters 1 or 2 or 3 or 4

then the code in that if condition will be executed.

see the following link for various Strings Comparison operators .

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/frameset.htm

Regards,

Suresh......

Read only

Former Member
0 Likes
705

It means it itan1 contain any of the character of '1234' then the following statement will execute. Other wise the control will got it else statement in case of else or to the endif.

Read only

Former Member
0 Likes
705

Hello anil,

Those are comparision operators.

IF ITAB1 CA '1234'.

This means, if itab1 contains any of 1 or 2 or 3 or 4, you expresssion will be executed.

Regards