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: 

HR PA30 BAPI

asarat
Explorer
0 Kudos

Is there a BAPI to insert records in transaction PA30? or is BDC my only option. I am using 4.7

(I also have a few custom fields to populate in the infotype)

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Have u tried this BAPI..

BAPI_PERSDATA_CREATE

It is used to Create personal data.

Function Documentation..

Text

Create personal data

Functionality

You can use this method to create a Personal Data record (0002).

Notes

Messages are transferred to the RETURN parameter. The relevant parameter documentation contains the return values and their meanings.

The key fields used by the method are described in the parameter documentation.

You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.

Parameters

EMPLOYEENUMBER

VALIDITYBEGIN

VALIDITYEND

FORMOFADDRESS

FIRSTNAME

LASTNAME

NAMEATBIRTH

SECONDNAME

MIDDLENAME

FULLNAME

KNOWNAS

ACADEMICGRADE

SECONDACADGRADE

ARISTROCRATICTITLE

SURNAMEPREFIX

SECONDNAMEPREFIX

INITIALS

GENDER

DATEOFBIRTH

BIRTHPLACE

STATEOFBIRTH

COUNTRYOFBIRTH

MARITALSTATUS

MARITALSTATUSSINCE

NUMBEROFCHILDREN

RELIGION

LANGUAGE

LANGUAGE_ISO

NATIONALITY

SECONDNATIONALITY

THIRDNATIONALITY

IDNUMBER

NOCOMMIT

NAME_FORMAT_INDICATOR

RETURN

EMPLOYEENUMBER

SUBTYPE

OBJECTID

LOCKINDICATOR

VALIDITYBEGIN

VALIDITYEND

RECORDNUMBER

Exceptions

Function Group

PERS

Regards,

Tanveer.

Please mark helpful answers.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Have u tried this BAPI..

BAPI_PERSDATA_CREATE

It is used to Create personal data.

Function Documentation..

Text

Create personal data

Functionality

You can use this method to create a Personal Data record (0002).

Notes

Messages are transferred to the RETURN parameter. The relevant parameter documentation contains the return values and their meanings.

The key fields used by the method are described in the parameter documentation.

You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.

Parameters

EMPLOYEENUMBER

VALIDITYBEGIN

VALIDITYEND

FORMOFADDRESS

FIRSTNAME

LASTNAME

NAMEATBIRTH

SECONDNAME

MIDDLENAME

FULLNAME

KNOWNAS

ACADEMICGRADE

SECONDACADGRADE

ARISTROCRATICTITLE

SURNAMEPREFIX

SECONDNAMEPREFIX

INITIALS

GENDER

DATEOFBIRTH

BIRTHPLACE

STATEOFBIRTH

COUNTRYOFBIRTH

MARITALSTATUS

MARITALSTATUSSINCE

NUMBEROFCHILDREN

RELIGION

LANGUAGE

LANGUAGE_ISO

NATIONALITY

SECONDNATIONALITY

THIRDNATIONALITY

IDNUMBER

NOCOMMIT

NAME_FORMAT_INDICATOR

RETURN

EMPLOYEENUMBER

SUBTYPE

OBJECTID

LOCKINDICATOR

VALIDITYBEGIN

VALIDITYEND

RECORDNUMBER

Exceptions

Function Group

PERS

Regards,

Tanveer.

Please mark helpful answers.

asarat
Explorer
0 Kudos

The BAPI BAPI_PERSDATA_CREATE is used to create employee data. I want to create a record of infotype 9000.