cancel
Showing results for 
Search instead for 
Did you mean: 

Ess-EHP5 How to set mandatory the "Note" field into leave request creation

Former Member
0 Kudos

Hi,

I would make mandatory the notes field into "create leave request". More specifically, the field must become mandatory only if the type of absence is the subtype 2062.
I tried to implement the method "GET_FIELD_SELECTION_ATTRIBS" the BADI "PT_ABS_REQ" as follows, but without any solution.
How can I implement this custom solution?
 

if im_modus = '2062'.
DATA wa_line TYPE PTREQ_UIA_FIELDCUST_STRUC.

wa_line
-FIELDNAME = 'CURR_NOTICE'.
wa_line
-REQUIRED = 'X'.
append wa_line to CH_FIELDCUST_TAB.
endif

.

thanks in advance 

mattia

View Entire Topic
nikhil3
Discoverer
0 Kudos

Hello ,
You can achieve it writing a validation code in  method of  odata service 

HCMFAB_LEAVE_REQUEST_CR_SRV 

Writing code in this according to your requirement will give you a message box saying new note is mandatory.

Also create your own message class.