Query Designer - Exclude Values, Pattern Matching - SCN
Query Designer - Exclude Values, Pattern Matching - SCN
Welcome, Guest
Login
Register
Share
Tw eet
Like
Steve XI
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.
https://scn.sap.com/thread/1952919
1/3
2/4/2014
990 View s
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
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.
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
Copyright
Follow SCN
https://scn.sap.com/thread/1952919
3/3