Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change PCL2 cluster data

Former Member
0 Likes
787

Hi All,

The requirement for me is to read the payroll data and change few fields and save the data back to cluster. Is it possible? What should be my steps in the program?

Appreciate your time.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
555

Hi,

Following is the FM to read data from B2 cluster


CALL FUNCTION 'HR_FORMS_TIM_GET_B2_RESULTS'
    EXPORTING
      pernr                 = pernr-pernr
      begda                 = g_edate2
      endda                 = g_edate
    IMPORTING
      tim_b2                = ls_tim_b2
    EXCEPTIONS
      wrong_cluster_version = 1
      no_read_authority     = 2
      cluster_archived      = 3
      technical_error       = 4
      OTHERS                = 5.

To update the data try FM 'HR_INFOTYPE_OPERATION' .

Regards

Milan

Hi All,

The requirement for me is to read the payroll data and change few fields and save the data back to cluster. Is it possible? What should be my steps in the program?

Appreciate your time.

Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
556

Hi,

Following is the FM to read data from B2 cluster


CALL FUNCTION 'HR_FORMS_TIM_GET_B2_RESULTS'
    EXPORTING
      pernr                 = pernr-pernr
      begda                 = g_edate2
      endda                 = g_edate
    IMPORTING
      tim_b2                = ls_tim_b2
    EXCEPTIONS
      wrong_cluster_version = 1
      no_read_authority     = 2
      cluster_archived      = 3
      technical_error       = 4
      OTHERS                = 5.

To update the data try FM 'HR_INFOTYPE_OPERATION' .

Regards

Milan