cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Position dynamically during New Hire Process in HCM P&F

Former Member
0 Kudos

Hi HCM Gurus,

We are on EhP6 and are in the process of implementing HCM P&F with FPM WDynPro ABAP forms. We have a requirement to create a position as part of New hire process, not as a separate PD process itself. That is, during New hire process, basic OM details required for a new position will be provided (Org.Unit of Position & the Job assigned to this Position) on the WD form and after approvals of both PA & PD data, we will have to create a position first and then hire the employee into this new position.

I understand we can have two separate processes, PD & PA for Position creation and for Hiring and this may be the best practice. However, per client's requirement, if during the Hire process, if the process is rejected, then the position will be wasted if position is created with a separate process ahead of the hiring.

I remember handling this similar requirement at a previous client when we were EhP4. We were using std. SAP SAVE workflow task in which first the PA part was disabled and so PD part(Position creation) was completed, and read this new position created into workflow container and were using the same SAVE background task with PA part activated the 2nd time. And in almost all of the situations, this was working fine. As it was a while ago, i unfortunately don't remember the full technicalities how we achieved this .

As SAP_PD and SAP_PA parts are totally different services, I believe this is very much possible. Please correct me if my understanding is wrong.

However, I was wondering if there is a better way of handling this requirement with EhP6. If any of you had handled similar requirement or any idea on how we can achieve this, appreciate if you can shed some light on this requirement at the earliest possible.

Thanks in advance,

Best Regards,

Venu

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Venu,

             Were you able to solve this issue? We have a similar requirement to create a position and assign it dynamically during the New Hire process. I haven't found any blog that has solved this issue so far. kindly post a solution if you have, as it would help many others in similar situation.

Thanks,

Vishnu

Former Member
0 Kudos

The buffering technology with the decoupled framework makes using both SAP_PA and SAP_PD in the same process possible with some considerations. For one, you need a position number in order to perform a new hire in P&Fs. So be sure to list the SAP_PD service FIRST (or before) the SAP_PA service. That way, even though the position doesn't truly exist yet, its "possible" existence is buffered and SAP_PA will use this buffered data during the validation of the new hire. If you don't want to "pull" position numbers that may not be turned into actual positions (i.e. process rejected) then another method that works well is to use a true "bogus" position for the SAP_PA service until the actual position number is assigned and the position is truly created from SAP_PD. Using the bogus position method will allow you to not pull a position number until the very end of the approval and save.

As Chris Solomon mentioned, there are many ways to do this, and none more tried and true than AGS (meaning write your own code). But first, know that its possible to use both services. From there, just be creative in finding the right solution.

Derrick Banks

Former Member
0 Kudos

Thanks a lot Derrick..I surely will keep this in mind. Hope to handle this without AGS..:(

Regards,

Venu

suresh_datti
Active Contributor
0 Kudos

Confusion..as usual!

former_member241926
Discoverer
0 Kudos

Hi Suresh,

   Could you please share me the ABAP technical specification template for me at email: trungtqsap@yahoo.com.

Many thanks,

 

    Trung.

ChrisSolomon
Active Contributor
0 Kudos

You can use SAP_PA and SAP_PD services in the SAME process. This has been covered a few times on here (and in blogs). Search around a bit and you will find how/where to do the "hand off" between services.

You could also use 2 separate form scenarios in your process and handle it in workflow (ie. have one of them save and then move to the next one).

If all else fails, you could handle it all yourself in an Advanced Generic Service.

SEVERAL ways to do this.

sahirn
Active Contributor
0 Kudos

As per my understanding - this is possible provided you don't use the position data until it is created.

Once can prevent execution of SAP_PA using rules.

Regards,

Sahir.

Former Member
0 Kudos

Hi Sahir,

Thanks for your reply. Yes, we are planning to have the Position creation (PD) part completed before and get the new position and then proceed with the hiring (PA) part commit.



Thanks for the clarification. We'll try this approach and get back to you if any difficulties.



Regards,

Venu