Skip to Content
author's profile photo Former Member
Former Member

NS

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 01: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.