Application Development 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: 

Help on selection range contains wildcard '*'

Former Member
0 Kudos

There is the following code:


  S_VCC FOR RPSCO-ACPOS DEFAULT 'ZPSAC*', " Value Category Costs
  S_VCR FOR RPSCO-ACPOS DEFAULT 'ZPSAR*'. " Value Category Revenue

and if the program use the 2 ranges directly in where clause, it returns no value.

 
AND RPSCO~ACPOS IN  S_VCC

this's not what we expect.

So what we can do? welcome any suggestion!

Thanks very much.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In that case you can not use default.

<b>Remove default value from declaration of select-option.</b>

Try this:

In Initialization,

<b>INITIALIZATION.

CLEAR S_VCC.

S_VCC-SIGN = 'I'.

S_VCC-OPTION = 'CP'.

S_VCC-LOW = 'ZPSAC*'.

APPEND S_VCC.</b>

As this is a pattern it needs 'CP' in OPTION field and default value will have 'EQ' so it was searching for the exact match for 'ZPSAC*' and hence result was null.

Now it will work perfectly alright.

Reward if resolved.

4 REPLIES 4

Former Member
0 Kudos

how is the query written?

It should be in OR condition coz AND would never be true.

AND ( RPSCOACPOS IN S_VCC OR OR RPSCOACPOS IN S_VCR )

Please paste the select statement you are using.

0 Kudos

I am sorry that maybe I don't express my idea clearly.

Yes I use the option in the select clauser correctly. But the result set is null.

And we expect |ZPSAC* are : ZPSAC000000000 ,ZPSAC000000001 ,etc

Former Member
0 Kudos

In that case you can not use default.

<b>Remove default value from declaration of select-option.</b>

Try this:

In Initialization,

<b>INITIALIZATION.

CLEAR S_VCC.

S_VCC-SIGN = 'I'.

S_VCC-OPTION = 'CP'.

S_VCC-LOW = 'ZPSAC*'.

APPEND S_VCC.</b>

As this is a pattern it needs 'CP' in OPTION field and default value will have 'EQ' so it was searching for the exact match for 'ZPSAC*' and hence result was null.

Now it will work perfectly alright.

Reward if resolved.

0 Kudos

Thank you for your great help, Darshil!