Application Development 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: 

How to hire new employee (BAPI, BDC, IDoc/ALE...???)

Former Member
0 Kudos

Dear ladies and gentlemen,

I was asked to create an interface that would "hire employee" and I failed to find nice function module that would do that.

Could you, please, share your ideas/experience about how to solve this?

Best regards

Momkic

Message marked as a qustion in order to award the points.

Momkic

1 ACCEPTED SOLUTION

nablan_umar
Active Contributor
0 Kudos

Hello Maros,

Hiring an employee can be done using PA40 for single entry and PA70 for Fast/Batch entry. Use recorder in SM35 to record entering an employee then generate a BDC program from this recording.

7 REPLIES 7

nablan_umar
Active Contributor
0 Kudos

Hello Maros,

Hiring an employee can be done using PA40 for single entry and PA70 for Fast/Batch entry. Use recorder in SM35 to record entering an employee then generate a BDC program from this recording.

0 Kudos

Hi

Transaction code <b>"PA40"</b> is OK to handle "Actions" about the personnel for isolated entries.

However if you want to use BDC for bulk data transfer, then use <b>"PA30"</b> to record your transaction and build your BDC data. That's because handling <b>"PA40"</b> screen is somehow less suitable since it depends on customizations and is out of screen if there are too much action types.

To trigger an action through <b>"PA30"</b> is achieved by entering "<b>0000"</b> to the infotype field and the <b>action type value ("massn")</b> for the subtype field and pressing <b>"Create"</b> button. This will be better for BDC.

<b><u>About the BAPI:</u></b>

I didn't try before but you may use the Business Object <b>"HRMasterDataReplica"</b>. It has one class method as <b>"SaveReplicaMultiple"</b> which has an import parameter <b>"EmployeePersonnelAction"</b> for the infotype 0000, <b>"EmployeeOrgAssignment</b>" for the infotype 0001 and

<b>"EmployeePersonalData</b>" for the infotype 0002.

In addition to standard BAPI parameters, at least these three parameters must be filled to create an employee. To trigger other actions you can use the one for "0000".

I would like to learn whether you tried this and achieved. <i>However, it will be the most classical way to use BDC</i>.

*--Serdar

0 Kudos

Thank you gents very much for all the hints. I have done BDC for PA40 (which worked out much better that PA42 I tried before), but I think I will try also BDC for PA30 and methods from BObj you noticed.

Thank you very much again

Momkic

0 Kudos

Hi Momkic

Happy that you've seen the solution. If you think that your question is solved, you can mark it as solved and reward points to the contributors.

You can give points by clicking the yellow star sign at the header of a post. You can give one 10 points for the post solving your issue, two 6 points for very helpful answers and unlimited 2 points for helpful answers.

*--Serdar

0 Kudos

Hi Serdar,

I would be glad to give you some points, but when I click on the yellow star in the header it seemed only points I have received (what a surprise) were displayed.

And also I do not know how the question can be marked solved.

Momkic

0 Kudos

Hi Momkic

The yellow star I mentioned is at the header of each post within the posts frame near the icon "Reply". If you mark some post to be the post that solved your problem, tour thread becomes "solved".

However your thread is not marked as to be a question thread. To change it to a question you may edit your first post I think to mark the option to make the thread as question. But I do not know whether it lets you give points.

If it is something not to be so important forget it...

Thanks...

*--Serdar

Former Member
0 Kudos

It may be too late, but have you ever tried IRS-MD1?

that's not common way although it can be it.

Mr. Milan