cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Former Member
0 Kudos
1,379

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

I am also have the same requirement. Could you please let me know how you have done this,

Thanks,

Sathishkumar GS

My email : gs.sathishkumar@gmail.com

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can do the validation for the leave request by using the badi

https://wiki.sdn.sap.com/wiki/display/ERPHCM/Validations+for+ESS+Leave+request

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.