cancel
Showing results for 
Search instead for 
Did you mean: 

Resctict InfoPackage Selection to a list, from derived a table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Joachim,

thank You and it works ...

do You have or know a paper a refernce wich explains the l_t_range l_s_range

Interface ?

Thank You

Martin

Former Member
0 Kudos

Hi Martin,

Unfortunately no specific paper.

But I tried to explain use of parameters in a different thread.

May be it helps.

Regards

Joe