Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP coding

Shiva_Ram
Active Contributor
0 Likes
603

Hi,

In our ABAP program one of the line is coded with XBLNR LIKE '%MISC%'. How should I interpret this line? The XBLNR value should contain MISC only or it can be like 11111111MISC? What should I note when look for value XBLNR?

Thanks for the clarification.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

Hi,

The XBLNR value can be 'ACC<b>MISC</b>AC'..

OR

'<b>MISC</b>AC'

OR

'asd<b>MISC</b>'.

Thanks,

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
569

Hi,

The XBLNR value can be 'ACC<b>MISC</b>AC'..

OR

'<b>MISC</b>AC'

OR

'asd<b>MISC</b>'.

Thanks,

Naren

Read only

Former Member
0 Likes
568

Comparing Strings

To find out whether the value of a column matches a pattern, use:

SELECT ... WHERE <s> [NOT ] LIKE <f> ...

You can use the following wildcard characters in <f>:

<b>% for a sequence of any characters (including spaces).

_ for a single character.</b>

For example, ABC_EFG% matches the strings ABCxEFGxyz and ABCxEFG, but not ABCEFGxyz. If you want to use the two wildcard characters explicitly in the comparison, use the ESCAPE option. ESCAPE <h> specifies an escape symbol <h>. If preceded by <h>, the wildcards and the escape symbol itself lose their usual function within the pattern <f>. The use of _ and % corresponds to Standard SQL usage. Logical expressions elsewhere in ABAP use other wildcard characters (+ and *).

Regards,

Srikanth

Read only

Former Member
0 Likes
568

Hi shiva,

the string should contain XBLNR