Skip to Content
0

How to create the past periods team goal in SAP in perfoamance Appraisal

Apr 10 at 07:43 AM

16

avatar image

Hello,

We want to create team goal for past periods in HCM performance appraisal managment, but error message is raised "Enter Valid date for goal". Refer the below image. Thanks in advance.

screen-shot.png (30.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Lucy Lan
Apr 11 at 02:21 AM
0

Hello,

Nice day.

Please draw your attention to the 'Period' right under the 'Edit Team Goals' tab.
Please expand the 'Period', and then you will notice that there are also fields to enter the Start and
End Date. See my screenshot.

If the period here does not match the period entered for the goal created, there will be this error message.
So please make sure the periods of the goal and above match each other.

But aside from technical point of view, usually it is not quite common and necessary to create team goals
to be cascaded for the past. So please make sure that this is exactly what you want.

Best regards.
Lucy


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Lucy,

We have expanded the period and entered the start date & end date as past date, tried to create the new goal. But still error is raised "Enter a Valid date".

Our requirement is to create new team goals for the past period and cascade the goals.

Screen shot for same

Thanks in advance.

screen-shotpng.jpg (43.8 kB)
0
Lucy Lan
Apr 12 at 07:05 AM
0

Hello Santosh,

Yeah, you are right. That is also reason why I asked why you are trying to create a goal of the total past, which means the end date is even in the past... From business point of view, it makes little sense. The system does not allow to create a goal with end date being in the past. It should be at least today or in the future.


If you definitely need to do so due to some reason, please consider enhancing the below method, especially the source codes extracted below.

PAOC_HAP_PA_CASC_GOALS_UI -> HAP_GOALS -> VW_MAIN -> ONACTIONVALIDATE_ENDDA

==>

line 64 ->


ELSEIF endda < sy-datum.
error_flag = abap_true.

lo_el_goal->get_attribute(
EXPORTING
name = hap01_title
IMPORTING
value = title ).

goal_title = title.

CALL METHOD wd_comp_controller->message_manager->report_t100_message
EXPORTING
iv_msgid = hap01_message_class
iv_msgno = '12'
io_component = wd_this
iv_parameter_1 = goal_title
io_element = lo_el_goal
iv_attribute_name = hap01_endda.

Attention: if you touch the source codes above or do any enhancement on this method, the responsibility of the Z source codes, and changed source codes as well as any follow up problems belong to you alone...

Furthermore, the start end and end date span should be no more than a year.
If you also want to change this design, consider using Badi HRHAP00_GOAL_PERIOD with filter value of the implementation set to PMP.
Also the implementation of this BAdI falls within your own responsibility.

Best regards.

Lucy

Share
10 |10000 characters needed characters left characters exceeded