cancel
Showing results for 
Search instead for 
Did you mean: 

Adhaar card number should be only 12 characters.

tkbisoyi9118
Participant
0 Kudos

hii

how to set a limit in numbervalue for ex- need to fix the value of adhaar card number be 12 digits only.

Accepted Solutions (1)

Accepted Solutions (1)

rupesh101168
Participant
0 Kudos

Hi,

You can do enhancement and do validate the length of mention data and validate for 12 digit.

If input value is more then 12 digit maintain error message.

Regards,

Rupesh

tkbisoyi9118
Participant
0 Kudos

can u share me the validation code ?

rupesh101168
Participant
0 Kudos

You want ABAP code for such validation ?

tkbisoyi9118
Participant
0 Kudos

do u know the SDK code ?

if not share me the ABAP

rupesh101168
Participant
0 Kudos

Its simple if field length not equal to 12 digit message error.

refer below ABAP code

data:char(40) type c.

data:v type I.

char = 'SUPRITH'.

v = strlen( char ).

write:/ 'String length is', v.

IF V > 10

give your message here.

endif.

Please reward points if useful.

Regards,

Rupesh

Answers (0)