Skip to Content

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

I want to compare the first 3 characters only

Hi Gurus,

Is there a function module that gets the first 3 characters of the parameter to compare the first 3 characters of the database?

Parameter: ABC*

Database table values:

ABCDE

ABCDEF

ABCDEFG

AZZBBEF

The result will be 3. It will get all the values because the first 3 characters are the same with the parameter.

Is there a function module for that?

Thanks in advance.

Benedict

Tags:
Former Member
Former Member replied

You can concatenate '%' in your parameter.

eg: 'ABC%'.

Hope this helps.

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