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

Automating PA40 process

Former Member
0 Likes
1,000

Hi all,

i am currently trying to create a program that will automate a new employee entry in transaction PA40. This can be done using BDCs but i was wondering if there is a better solution, maybe through BAPIs.

Is there a BAPI that will run the process in PA40 of filling in the infotypes 0, 1, 2?

Chirag.

Hi all,

i am currently trying to create a program that will automate a new employee entry in transaction PA40. This can be done using BDCs but i was wondering if there is a better solution, maybe through BAPIs.

Is there a BAPI that will run the process in PA40 of filling in the infotypes 0, 1, 2?

Chirag.

5 REPLIES 5
Read only

Former Member
0 Likes
851

Hi,

What you mean by automate the process ? What is gonna be the trigger for the action and where would the data to be populated in the infotypes come from ?

If you have the infotype data in a file or something, yes you can use BAPI or FMs to automate the process instead of maintianing manually.

Thanks,

SAPAspirant.

Read only

0 Likes
851

Hi,

that is exactly the situation, i will have all the infotype data in a file that i will extrapolate. Which BAPI or FM can i use to replicate the hiring process from PA40, where i would like to fill infotypes 0, 1, 2?

Thanks,

Chirag.

Read only

Former Member
0 Likes
850

Hi,

Use FM : HR_MAINTAIN_MASTERDATA

Regards,

Srini.

Read only

Former Member
0 Likes
850

Hi Chirag,

You can use Function Module

HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA.

Regards,

Moshiur

Read only

0 Likes
850

I tried the HR_MAINTAIN_MASTERDATA, in the function module i put the DIALOG_MODE as 1 and i saw it was populating the info types that i wanted. So thank you for that.

However, when i reach Iinfotype 8, i dont want to maintain that IT, how can i cancel that screen dynamically and still save my input?

Thanks.