Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 11 at 02:21 AM

    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

    Add comment
    10|10000 characters needed 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)
  • Apr 12 at 07:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded