on 11-29-2007 2:22 PM
Hey,
I want to restrict the selection in a InfoPackage to a list of values,
which is derived from a table.
Which means:
I want to implement a logical OR with a dynamic list of values on an InfoObject:
WHERE InfoObject = ... OR ... OR .....
In the Selection of an InfoPackage I made a TYPE 6 ABAP-Routine.
<u>The following ABAP won't work satisfingly - Can You help ?</u>
Declaring some variables:
DATA: shub_tab TYPE zvpshub_tab.
DATA: shub_row TYPE zvpshub_row.
DATA: l_idx LIKE sy-tabix.
Deriving the list into a table shub_tab - works:
CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
CHANGING
shub_tab = shub_tab.
<u>* The following gives in the Monitor in the Headtab in * the Selectioncirteria some list but
no dataset at all is selected !</u>
READ TABLE l_t_range WITH KEY fieldname = '/BIC/ZVPINSTRU'.
LOOP AT shub_tab INTO shub_row.
l_t_range-sign = 'I'.
l_t_range-option = 'BT'.
l_t_range-low = shub_row-shub.
append l_t_range.
ENDLOOP.
Whats wrong with the code ?
Thank You !
Martin Sautter
You are using the option 'BT', but then you only list a low value:
l_t_range-low = shub_row-shub.
You also must list a high value when using BETWEEN:
l_t_range-high = ???.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Martin,
Tony is right.
If you want to restrict on single values or a group of single values (no ranges) operator has to be 'EQ'.
Regards
Joe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.