2010 Oct 07 4:55 PM
Hi Colleagues,
I am lost ....
I have the following values in my variables
INPUT_PATTERN1 = ZSD_O1100
WA_LOOKUP_FINDER-LINE = FROM /BIC/AZSD_O1100
But the If condition below is not executed ?
IF ( wa_lookup_finder-line CP input_pattern1 ).
ENDIF.
Could you inform me what to correct ?
Thanks
2010 Oct 07 5:01 PM
Hi Colleagues,
I am lost ....
I have the following values in my variables
INPUT_PATTERN1 = ZSD_O1100
WA_LOOKUP_FINDER-LINE = FROM /BIC/AZSD_O1100
But the If condition below is not executed ?
IF ( wa_lookup_finder-line CP input_pattern1 ).
ENDIF.
Could you inform me what to correct ?
Thanks
2010 Oct 07 5:01 PM
2010 Oct 07 5:02 PM
Line is not executed? Or is executed and returns non-zero code? If so, change to 'CS' contains string, since you're not really supplying a pattern.
2010 Oct 07 5:17 PM
Hi Peter,
You can use the following wild card character '*'. It is recognizing the pattern. You can have a look at the documentation for a detailed explanation.
Sample Code
DATA: str1 TYPE string,
str2 TYPE string.
str1 = 'FROM /BIC/AZSD_O1100'.
str2 = '*ZSD_O1100*'.
IF str1 CP str2.
BREAK-POINT.
ENDIF.
Hope this helps.
Thanks,
Samantak.
2010 Oct 07 5:20 PM
Can you check this
concatenate '*' 'ZSD_O1100' '*' into INPUT_PATTERN1.
WA_LOOKUP_FINDER-LINE = 'FROM /BIC/AZSD_O1100'.
IF ( wa_lookup_finder-line CP input_pattern1 ).
endif.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |