Sie sind auf Seite 1von 3

2/4/2014

Query Designer: exclude values, pattern matching | SCN


Getting Started New sletters Store

Welcome, Guest

Login

Register

Search the Community

Products Industries Lines of Business

Services & Support Training & Education University Alliances

About SCN Partnership Events & Webinars

Downloads Developer Center Innovation


Activity Brow se Communications Actions

4 Replies Latest reply: May 13, 2011 2:03 PM by ASHUTOSH SINGH

Share

Tw eet

Like

Steve XI

May 12, 2011 5:30 PM

Query Designer: exclude values, pattern matching


This question has been Answered. Hi, I am using Query Designer 7 and would like to exclude values of one of my InfoObjects starting with "AB*". I this somehow possible? I cannot exclude all values individually because there are too many of them. I thought of specifying an intervall but values might change. Any more ideas? Thanks!

Correct Answer by ASHUTOSH SINGH on May 13, 2011 2:03 PM Hi Steve , You can use the following code : Lets assume your infoobject is ZIO. and you customer exit variable for this infoobject is ZCE_IO. Type of Variable: Characteristic Value. Processing By: Customer Exit. Variable Represents: Multiple Single Values. Variable Entry is: Mandatory, Not Ready for Input and Cannot be changed in Query Navigation W H E N' Z C E _ I O ' . I FI _ S T E P=1 . D A T A :I T A B 1T Y P ES T A N D A R DT A B L EO F/ B I C / S Z I OW I T HH E A D E RL I N E . S E L E C T*F R O M/ B I C / S Z I OI N T OT A B L EI T A B 1W H E R E/ B I C / Z I OL I K E' A B % '. C L E A R :L _ S _ R A N G E . L _ S _ R A N G E S I G N=' E ' . L _ S _ R A N G E O P T=' E Q ' . L O O PA TI T A B 1 . L _ S _ R A N G E L O W=I T A B 1 / B I C / Z I O . A P P E N DL _ S _ R A N G ET OE _ T _ R A N G E . E N D L O O P . C L E A RL _ S _ R A N G E . E N D I F . Hope the above reply was helpful.

Kind Regards, Ashutosh Singh

https://scn.sap.com/thread/1952919

1/3

2/4/2014

Query Designer: exclude values, pattern matching | SCN


Edited by: Ashutosh Singh on May 13, 2011 2:02 PM

Helpful Answer by Suzitha Natesan

990 View s

Average User Rating (0 ratings)

Vineet Gupta May 13, 2011 3:35 AM (in response to Steve XI) Re: Query Designer: exclude values, pattern matching Try using a variable with default value of AB* and not enabled for input by user, or use a customer exit variable.

Like (0)

Steve XI May 13, 2011 9:57 AM (in response to Vineet Gupta) Re: Query Designer: exclude values, pattern matching

Vineet Gupta wrote:

Try using a variable with default value of AB* and not enabled for input by user, or use a customer exit variable.

OK, I created a new variable, went into the "Default Values" pane -> "Change Default Values" button; I then enter "AB" into the "Direct Input" field (Single Values) but I then cannot exclude this "AB" value on the chosen selection screen on the right...?

Like (0)

Suzitha Natesan May 13, 2011 5:11 AM (in response to Steve XI) Helpful Answer Re: Query Designer: exclude values, pattern matching Hi, You can restrict the infoobject on a customer exit variable(ZVAR) and try with following sample code. WHEN 'ZVAR'. l_s_range-sign = 'E'. l_s_range-opt = 'CP'. l_s_range-low = 'AB*'. APPEND l_s_range TO e_t_range. Regards, Suzitha

Like (0)

ASHUTOSH SINGH May 13, 2011 2:03 PM (in response to Steve XI) Correct Answer Re: Query Designer: exclude values, pattern matching Hi Steve , You can use the following code : Lets assume your infoobject is ZIO. and you customer exit variable for this infoobject is ZCE_IO.

https://scn.sap.com/thread/1952919

2/3

2/4/2014
Type of Variable: Characteristic Value. Processing By: Customer Exit. Variable Represents: Multiple Single Values.

Query Designer: exclude values, pattern matching | SCN

Variable Entry is: Mandatory, Not Ready for Input and Cannot be changed in Query Navigation W H E N' Z C E _ I O ' . I FI _ S T E P=1 . D A T A :I T A B 1T Y P ES T A N D A R DT A B L EO F/ B I C / S Z I OW I T HH E A D E RL I N E . S E L E C T*F R O M/ B I C / S Z I OI N T OT A B L EI T A B 1W H E R E/ B I C / Z I OL I K E' A B % '. C L E A R :L _ S _ R A N G E . L _ S _ R A N G E S I G N=' E ' . L _ S _ R A N G E O P T=' E Q ' . L O O PA TI T A B 1 . L _ S _ R A N G E L O W=I T A B 1 / B I C / Z I O . A P P E N DL _ S _ R A N G ET OE _ T _ R A N G E . E N D L O O P . C L E A RL _ S _ R A N G E . E N D I F . Hope the above reply was helpful.

Kind Regards, Ashutosh Singh Edited by: Ashutosh Singh on May 13, 2011 2:02 PM

Like (0)

Share

Tw eet

Like

Site Index Privacy

Contact Us Terms of Use

SAP Help Portal Legal Disclosure

Copyright

Follow SCN

https://scn.sap.com/thread/1952919

3/3

Das könnte Ihnen auch gefallen