Skip to Content
author's profile photo Former Member
Former Member

Resctict InfoPackage Selection to a list, from derived a table

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 03:06 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 03:20 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.