cancel
Showing results for 
Search instead for 
Did you mean: 

Add an icon to a date field

Former Member
0 Kudos

Hello,

I need to add the date icon to a date field in order to give the user date F4.

I am looking at the iccmp_btshead and can't find how the icon is created.

Is there any icon for time also?

Thanks in advance,

Sara

Accepted Solutions (0)

Answers (2)

Answers (2)

anup_mokashi
Explorer
0 Kudos

Hi Sara,

Probably you forgot the SDN way of saying Thank You!.

Thank you,

Anup

anup_mokashi
Explorer
0 Kudos

Hi Sara,

Referring again to ICCMP_BTSHEAD, see the context node BTDATEORDERPLANNED and attribute DATE. You would see in the method GET_M_DATE of this attribute the below code

DATA: attr TYPE dats.

DATA: dref TYPE REF TO data.

It is here that you tell the framework that this attribute would be of DATE type. The framework would then take care of displaying the calendar icon against this field in the UI. I do not think similar help is available for time - but once you define a field of type TIME, some automatic validations should occur from framework - for e.g., one could not enter an invalid time like 25:12.

Regards,

Anup

Former Member
0 Kudos

Thank u very much.

Sara