on 2012 Jul 12 5:43 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 14 | |
| 14 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.