Hi all,
Bit late, but I have had the same issue with the C_LEGISLATION_CODE - GB_V only working in SSHR and not in Core Forms, so I thought I'd post a solution.
For Craig [ClanGowland] and sairajesh, and anyone else experiencing this issue, the way round this is a Forms Personalization to set the appropriate C_LEGISLATION_CODE in Core Forms.
Set up the "Additional Absence Detail Information" [PER_ABS_DEVELOPER_DF] DFF with a new Context code e.g. GB_V
GB_V GB Vacation
10 Part Day Indicator ABS_INFORMATION1 XX_YES_NO
In the SSHR create/update pages, you can personalize the Flex: "Further Absence Details" item with your segment list:
GB_V|Part Day Indicator
Next time a vacation is chosen in SSHR, your custom segment will appear.
In Core HRMS however, when entering a Vacancy, you will find via Diagnostics > Proprties > Item > that your C_LEGISLATION_CODE remains unchanged.
[depending on your system setup you will find the context of 'GB' or 'GB_PQP_OSP_OMP_PART_DAYS' appears]
In order to amend this do a Forms Personalization on the absence form that checks for the absence category and then automatically sets the legislation code.
10 Set C_LEGISLATION_CODE context for Vacation Form
CONDITION
Trigger Event WHEN-NEW-ITEM-INSTANCE
Trigger Object ABA.C_REASON_DESC
Condition :ABA.ABSENCE_CATEGORY = 'V'
ACTIONS
10 Property
Object Type Property
Target Object ABA.C_LEGISLATION_CODE
Property Name VALUE
Value GB_V
Note: You may notice that this is based on someone changing the 'absence reason' on the form rather than the type. I could not get it to work using type or category, but this one will work effectively enough anyway.
Close the absence form and re-open it.
Now any new vacation will trigger the setting of the C_LEGISLATION_CODE to GB_V and your pop-up for Further Information will show your custom segments.
This could be repeated for each absence category per business group. Or you could remove the condition and use =:CTL_GLOBALS.LEGISLATION_CODE||'_'||:ABA.ABSENCE_CATEGORY as the property value to set it in all instances.
Regards
Mike