cancel
Showing results for 
Search instead for 
Did you mean: 

validating only numbers to extension field SAP C4C

0 Kudos

Hi, I'm new to c4c, I need to add a new field and validate only be numeric and 11 digits. Add the field setting but I can not validate the features mentioned.


"RUC" is the field you want to validate.



Accepted Solutions (1)

Accepted Solutions (1)

KonstantinHeine
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Luis,

This can be done using key user tools in C4C. Make sure you use field type "Decimal Number" during extension field creation, set the maximum number of characters to 11 and the number of decimal places to 0. The system will then be able to verify the field content (only numbers) and maximum length of 11 characters..

You will find further information on extensibility in this blog post: http://scn.sap.com/community/cloud-for-customer/blog/2015/03/17/extensibility-in-cloud-for-customer

Best regards,

Konstantin

0 Kudos

Thanks, Konstantin!!

0 Kudos

Hi Konstantin,


Thanks for your reply , now I have this problem, the points appear between numbers. There is a way to validate these numbers to a text field?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Luis,

yes, there is a way to validate those numbers. You need to create a business object in SDK and add event - after modify to the root.node. Then you need to put a code with business logic you are interested in. You can achieve it with 'if' loops and checking if fe. 3rd, 6th and 9th character is a dot.

There's a good help center inside the SDK you can use.

It is not possible to do the validations directly from c4c. Unfortunately

All the best!