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

Select-option

Former Member
0 Likes
949

Hi all,

In select-option the option CP,NP means what how it will work.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
886

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.......

7 REPLIES 7
Read only

Former Member
0 Likes
886

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

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
886

HI Ram,

CP - contains pattern

NP-NOpattern

basically it seraches for a particular pattern in a string like "AB" in abcdef..

*reward if helps.

Read only

Former Member
0 Likes
886

CP -- contains Pattern

NP -- I am not sure but may be No Pattern

say s_matnr-low = 'z' , it will look for Z

Read only

Former Member
0 Likes
886

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

Read only

Former Member
0 Likes
886

hi

CP- contain pattern

NP- no pattern

this means the higher and lower values CP, for eg-* or #. same for NP

regards,

alson

Read only

Former Member
0 Likes
887

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.......

Read only

Former Member
0 Likes
886

CP- contain pattern

NP- no pattern