‎2009 Oct 26 12:08 PM
Dear all
when I do a select I can work with the statement like
CONCATENATE WA_DEL-FIELD '%' INTO I_FIELD.
SELECT * FROM ZTABLE INTO TABLE IT_ITAB
WHERE FIELD LIKE I_FIELD.how do I can do the same question for a if command for a field ?
I was thinking with the statement (FIELD = ABCDEFG) (I_FIELD-SIGN = I / I_FIELD-OPTION = 'EQ' / I_FIELD-LOW = 'ABC*'
IF FIELD IN I_FIELDshould work, but it was not working..... what do I need to do
‎2009 Oct 26 12:09 PM
Hello,
Silly mistake ... You have to use the OPTION as CP ( C ontains P attern ) instead of EQ
(I_FIELD-SIGN = I / I_FIELD-OPTION = 'CP' / I_FIELD-LOW = 'ABC*'BR,
Suhas
‎2009 Oct 26 12:09 PM
Hello,
Silly mistake ... You have to use the OPTION as CP ( C ontains P attern ) instead of EQ
(I_FIELD-SIGN = I / I_FIELD-OPTION = 'CP' / I_FIELD-LOW = 'ABC*'BR,
Suhas
‎2009 Oct 26 12:10 PM
OPTION should be 'CP', not 'EQ'. You can also try the "CP" operator ("covers pattern")
Thomas
‎2009 Oct 26 12:11 PM
Hi,
Change the I_FIELD-OPTION to CP insttead of EQ. It should work now
Vikranth
‎2009 Oct 26 12:14 PM
it is to early in the morning... sorry guys and thanks for the support...... I should sleep longer.... have not seen that I did not use CP....
‎2009 Oct 26 12:35 PM
No Problem. Please remember the other guys as well, we all answered at the same time more or less
Thomas