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

Check data type NUMC

Former Member
0 Likes
2,025

Hi,

In input, I have a number employee which may contain character. How do I know if the number emloyee have a character not compatible with NUMC (PERNR).

Exemple :

DATA num_personnel   TYPE string VALUE '45AZ'.
* I want check if num_personnel have char.
IF pernr = num_personnel.
* Processed but dumped in this case because num_personnel isn't compatible with pernr (data type NUMC)
ENDIF.

2 REPLIES 2
Read only

Former Member
0 Likes
1,018

I found like a big boy!!

I post my request :

IF num_personnel CN '0123456789'.

  • Is not a NUMC

ELSE.

  • Is a NUMC

ENDIF.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,018

Use FM : NUMERIC_CHECK to find whether the PERNR has any char in it or not.