‎2005 Aug 23 7:00 AM
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
‎2005 Aug 23 7:03 AM
‎2005 Aug 23 7:01 AM
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
‎2005 Aug 23 7:03 AM
Rahul,
Thsi means if W_TEM_FIELD contains any of the following characters: !, ", %, &
Hope this helps.
CHeers,
Pat
‎2005 Aug 23 7:03 AM
‎2005 Aug 23 7:10 AM
Hi,
All is explained at http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/frameset.htm
Eddy
‎2005 Aug 23 7:22 AM
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.
‎2005 Aug 23 8:40 AM