‎2007 Apr 12 9:48 AM
Hi all,
In select-option the option CP,NP means what how it will work.
‎2007 Apr 12 9:51 AM
Hi....
CP (Contains Pattern)
The logical expression
<f1> CP <f2>
is true if <f1> matches the pattern <f2>. If <f2> is of type C, you can use the following wildcards in <f2>:
for any character string: *
for any single character: +
Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the offset of <f2> in <f1> . If it is false, SY-FDPOS contains the length of <f1>.
If you want to perform a comparison on a particular character in <f2>, place the escape character # in front of it. You can use the escape character # to specify
characters in upper and lower case
the wildcard character "" (enter:#)
the wildcard character "" (enter: # )
the escape symbol itself (enter: ## )
blanks at the end of a string (enter: #___ )
NP (contains No Pattern)
The logical expression
<f1> NP <f2>
is true if <f1> does not match the pattern <f2>. In <f2>, you can use the same wildcards and escape character as for the operator CP.
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> .
Reward points if useful.......
Suresh.......
‎2007 Apr 12 9:49 AM
Hi..,
Contains Pattern..
No Pattern.
like if you give SAI as the Select option then it gets all the records with fields which are having SAI as a string in their content . If u use NP(no pattern) then it gets all records which dont have SAI as part of their value..
reward if it helps u..
sai ramesh
‎2007 Apr 12 9:50 AM
HI Ram,
CP - contains pattern
NP-NOpattern
basically it seraches for a particular pattern in a string like "AB" in abcdef..
*reward if helps.
‎2007 Apr 12 9:51 AM
CP -- contains Pattern
NP -- I am not sure but may be No Pattern
say s_matnr-low = 'z' , it will look for Z
‎2007 Apr 12 9:51 AM
Hi,
We use EQ, BT for select-options.
CP,NP are used with respect to a string for searching for a condition like
Contains pattern, Contains String etc..
reward if sueful
regards,
Anji
‎2007 Apr 12 9:51 AM
hi
CP- contain pattern
NP- no pattern
this means the higher and lower values CP, for eg-* or #. same for NP
regards,
alson
‎2007 Apr 12 9:51 AM
Hi....
CP (Contains Pattern)
The logical expression
<f1> CP <f2>
is true if <f1> matches the pattern <f2>. If <f2> is of type C, you can use the following wildcards in <f2>:
for any character string: *
for any single character: +
Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the offset of <f2> in <f1> . If it is false, SY-FDPOS contains the length of <f1>.
If you want to perform a comparison on a particular character in <f2>, place the escape character # in front of it. You can use the escape character # to specify
characters in upper and lower case
the wildcard character "" (enter:#)
the wildcard character "" (enter: # )
the escape symbol itself (enter: ## )
blanks at the end of a string (enter: #___ )
NP (contains No Pattern)
The logical expression
<f1> NP <f2>
is true if <f1> does not match the pattern <f2>. In <f2>, you can use the same wildcards and escape character as for the operator CP.
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> .
Reward points if useful.......
Suresh.......
‎2007 Apr 12 9:53 AM