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

NS

Former Member
0 Likes
5,213

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

2 REPLIES 2
Read only

Former Member
0 Likes
3,116

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

Read only

Former Member
0 Likes
3,116

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.