Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

check Case sensitive values

A field value is coming in caps.

lf_tmp = u2018RMu2019.

I have to check this with another field lf_werks ,which always comes in small letters.

if lf_tmp CN lf_werks .

MESSAGE e002(zm) WITH 'The Path is wrong for the plant'

p_werks.

ENDIF.

This check always fails even if the values are like belowu2026

lf_tmp = u2018RMu2019.

lf_werks = u2018rmu2019.

How do I by-pass this case sensitiveness u2026.when I want to do the check.

thanks in advance

Former Member
replied

Convert yout lf_tmp into the Lowercase and than do the comparision.

Like:

TRANSLATE IF_TMP TO LOWER CASE.

if lf_tmp CN lf_werks .
MESSAGE e002(zm) WITH 'The Path is wrong for the plant'
p_werks.
ENDIF.

Regards,

Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question