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

keyword CA

Former Member
0 Likes
3,210

what does this keyword stand for? for eg in this code what does it do?

if w_temp_field CA '!"%&'.

what does this if statement do, what does CA mean.

thanks.

rahul

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,450

if u are in se38 , goto keyword and click F1.

regards

6 REPLIES 6
Read only

Former Member
0 Likes
2,450

Hi,

CA means "contains any".

"CA (Contains Any):

c1 contains at least one character from the string c2.

If c1 or c2 is of type C, the comparison takes into account the full length of the field, including blanks at the end.

If c1 or c2 is of type STRING and empty, the result of the comparison is always negative.

If the result of the comparison is positive, the system field SY-FDPOS contains the offset of the first character in c1 which is also in c2.

If the result of the comparison is negative, the system field SY-FDPOS contains the length of c1.

The comparison is case-sensitive. "

Svetlin

Message was edited by: Svetlin Rusev

Read only

former_member221770
Contributor
0 Likes
2,450

Rahul,

Thsi means if W_TEM_FIELD contains any of the following characters: !, ", %, &

Hope this helps.

CHeers,

Pat

Read only

Former Member
0 Likes
2,451

if u are in se38 , goto keyword and click F1.

regards

Read only

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
2,450

Hi,

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>.

'ABcde' CA 'Bd ' -true

'ABcde' CA 'bD ' -false

Hope it helps.If so,kindly reward points by clciking the star on the left of reply.

Read only

0 Likes
2,450

thanks all for the overwhelming response.