06-02-2007 10:03 AM
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.
06-02-2007 10:19 AM
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.
06-02-2007 10:07 AM
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.
06-02-2007 10:12 AM
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
06-02-2007 10:19 AM
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.
06-02-2007 10:26 AM