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

Function module to update the SPRPS field in infotypes

pasumpon_karuppaiah
Participant
0 Likes
1,103

Hi Guru's

     I m developed the workflow for personal data maintain in ESS with single approval. Employee can able to update his personal data and saved.

Now the workflow will trigger to HR for approval .Before the workitem send to approval   i  need to  update the PA0002-SPRPS = X  and after getting approval i have to remove the flag.

Is the any function module /  BAPI to upadte PA0002-SPRPS = X.

Thanks,

Pasumpon Karuppaiah

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

Hello,

Use BAPI_PERSDATA_CHANGE with  LOCKINDICATOR = 'X'.

Below are call sequence,

  • BAPI_EMPLOYEE_ENQUEUE
  • BAPI_PERSDATA_CHANGE
  • BAPI_EMPLOYEE_DEQUEUE

Regards,

Sameer

Hi Guru's

     I m developed the workflow for personal data maintain in ESS with single approval. Employee can able to update his personal data and saved.

Now the workflow will trigger to HR for approval .Before the workitem send to approval   i  need to  update the PA0002-SPRPS = X  and after getting approval i have to remove the flag.

Is the any function module /  BAPI to upadte PA0002-SPRPS = X.

Thanks,

Pasumpon Karuppaiah

3 REPLIES 3
Read only

Former Member
0 Likes
840

Hello,

Use BAPI_PERSDATA_CHANGE with  LOCKINDICATOR = 'X'.

Below are call sequence,

  • BAPI_EMPLOYEE_ENQUEUE
  • BAPI_PERSDATA_CHANGE
  • BAPI_EMPLOYEE_DEQUEUE

Regards,

Sameer

Read only

ThangaPrakash
Active Contributor
0 Likes
839

Hello Pasumpon,

Use the function module "HR_MAINTAIN_MASTERDATA", SPRPS is a importing parameter in this function module.and in tables PROPOSED_VALUES you can specify the infotype name, field and value in that infotype table. Check it it would work.

Thanks,

Thanga

Read only

former_member227140
Active Participant
0 Likes
839

use these 3 in sequence

  • BAPI_EMPLOYEE_ENQUEUE
  • HR_INFOTYPE_OPERATION
  • BAPI_EMPLOYEE_DEQUEUE