‎2007 Mar 29 3:14 PM
Hi,
Can you tell me what is the meaning of the following abap statement?
IF WA_VAR CO ' 0123456789'.
Thanks!
‎2007 Mar 29 3:20 PM
Hi Krishen,
CO means contains only.
In your case, system will check whether field WA_VAR contains value ' 0123456789' or not.
Please check this link for more information string comparison.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm
Regards,
Ferry Lianto
‎2007 Mar 29 3:17 PM
If the variable WA_VAR Contains ONLY the values of '0 thru 9', then it is true... and enter into the underlying code of the IF statement
‎2007 Mar 29 3:17 PM
Hi Krishen,
This statement means that does this variable WA_VAR contains only '123456789'.
CO here means CONTAINS ONLY
Thanks and Regards,
Kunjal Patel
‎2007 Mar 29 3:18 PM
In short, it is a check for numeric values.
It is checking if the field has only numeric characters.
Regards,
Ravi
‎2007 Mar 29 3:19 PM
‎2007 Mar 29 3:19 PM
HI Krishen,
IF WA_VAR CO ' 0123456789'
Contains Only in this case check for numeric values in WA_VAR .. in the sense it act as similar to NUMERIC_CHECK FM Functionality ..
Regards,
Santosh
‎2007 Mar 29 3:20 PM
it means...
if the varialbe WA_VAR <b>c</b>ontains <b>o</b>nly the characters from '0123456789'.
Thx
pavan
‎2007 Mar 29 3:20 PM
Hi Krishen,
CO means contains only.
In your case, system will check whether field WA_VAR contains value ' 0123456789' or not.
Please check this link for more information string comparison.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm
Regards,
Ferry Lianto
‎2007 Mar 29 3:22 PM
Hi..
if wa_var CO '0123456789'.
This statement refers that if wa_var contains any of '1234567890'.
the condition will be true..
it will allow the control to execute the next corresponding statement.
else it will skip.
Hope it will helps.
Regards
Bala.