cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any function to check alpha numeric character in a string

Former Member
0 Kudos

Hi all,

Anyone can tell me is there any function for checking alpha numeric character in a string.

or can you please tell me how to do it.

Thanks & Regards

Guhapriyan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Guhapriyan,

data : w_test_string type string,
       alpha_numerics(36) type c.

concatenate '0123456789' 
            sy-abcde 
       into alpha_numerics.

if w_test_string ca alpha_numerics.
* the string now contains at least one alpha numeric character.
endif.

Is that what you're looking for?

Regards,

Anand Mandalika.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

Thank you very much.

I was checking the serial number generated (customized to generate automatically) in MB31 .

I want to check the string and ensure it is not having any alpha numeric characters and if it has it should not allow to save.

the code i have entered is not getting triggered.

Can anyone Help Me.

Thanks And Regards

Guhapriyan

Former Member
0 Kudos

Hi,

Check this FMs:

CONVERSION_EXIT_ALPHA_INPUT

CHECK_STRING_ALPHA_SUCCESSOR

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/s...

Regards,

Anjali

andreas_mann3
Active Contributor
0 Kudos

Hi Guhapriyan ,

pls give a sample for your problem

and look here: <a href="http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3357358411d1829f0000e829fbfe/frameset.htm">Processing Character Strings</a>

regards Andreas