Skip to Content
0

Year Data Type in SDK

Dec 02, 2016 at 09:31 AM

107

avatar image
Former Member

Hi pros,

There is a Data Type Year available in SDK:

***************************************************************

Data Type: Year

Overview

NameYearNamespacehttp://sap.com/xi/AP/Common/GDTStructure CategoryBasicUsage CategoryUnrestrictedRepresentationTextXSD Data TypeStringImplementation TypeCHAR


***************************************************************

So this data type isrepresented as text and viualized as YYYY with value range 0001-9999.

Why is it possible to enter letters in fileds with this data type? Why there is no check for entering letters for this data type even after saving data?

Here is the field Object deadline with Year data type and saved non-numeric value

Is this an error? Or am I supposed to create such check myself?

If I have to make the check then what is the best way to do so? I see only two options to realize it:

1. In UI Designer create Event Handler which is going to start BOAction to check filled in values

2. In UI Designer create Event Handler which is going to start CheckAndDetermine operation on Root level. his operation should start Validation-OnSave on the current node and its subnodes.

Is any of this options correct? Or is there another way?

Best regards,

Nadezhda Rukavishnikova

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Horst Schaude
Dec 02, 2016 at 12:17 PM
0

Hello Nadezhda,

The GDT is based upon char. In the UI Designer the CCTS type is "text".

Therefore it is possible to enter letters as well as digits.

IMHO you should define the appearance as DDLB with the values you want to support.

Bye,
Horst

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 02, 2016 at 12:38 PM
0

Hi Horst,

What is DDLB?

Best regards,

Nadezhda Rukavishnikova

Share
10 |10000 characters needed characters left characters exceeded
Anant Acharya
Dec 03, 2016 at 02:54 PM
0

Dear Nadezhada,

I guess Hosrt is referring to DDLB - Drop Down List Box

Regard

Anant

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Anant :-)

0