cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Simple Type

Former Member
0 Kudos

Hello,

I created a simple type of decimal. But it doesnt show any errors when I enter string field, or minus values automatically. Do I need to create a action to validate this?. I just want to allow the user to enter +ve integers, otherwise it should become red. How do I achieve this?. As per the requirement I want to show only the red color around the input field.

Thanks,

Sunita.

Accepted Solutions (0)

Answers (1)

Answers (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hallo Sunita,

look at the new version of the Web Dynpro Table tutorial I modified recently. To fix a security issue based on negative quantities for articles resulting in potentially negative price values I modified the application logic using a custom dictionary type with base type decimal and Minimum inclusive = 0. Combined with a validating action the Web Dynpro Runtime automatically displays a validation error message texts when the user enters a negative quantity.

See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/5f699f90-0201... and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780... [original link is broken]

Regards, Bertram