01-09-2007 1:38 PM
Hi,
what is the significance of <b>ns</b> in the following if statement in a macro.
if text-001 <b>ns</b> &1+w_inc(1).
Regards,
Ratna
01-09-2007 1:41 PM
hi,
NS signifies
Contains Not Any: True if a logical expression with CA is false, that is if operand1 does not contain any characters from operand2. If the result of the comparison is negative, sy-fdpos contains the offset of the first character in operand1 that is also contained in operand2. If the result of the comparison is true, sy-fdpos contains the le of operand1.
sateesh
01-09-2007 1:46 PM
Hi,
<b>NS (contains No String)</b>
The logical expression
<f1> NS <f2>
is true if <f1> does not contain the string <f2>. Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the length of <f1>. If it is false, SY-FDPOS contains the offset of <f2> in <f1>
Hope this solves ur query.