Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Dec 15, 2014 at 06:19 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2014 at 06:54 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 19, 2014 at 01:06 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 12:23 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.