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: 

Fetching Adrress Data of a PERNR

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi,

I'm supposed to fetch address of a particular PERNR.

There are two tables for adress PA0006 and PB0006.

For a particular PERNR , a record is there in both the tables,

but with two different addresses.

I'm in a dilemma to use which table . Can someone help me out?

With Regards

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

PA0006 if used for Employee

PB0006 is used for Applicant

Regards

Marcin

4 REPLIES 4

MarcinPciak
Active Contributor
0 Kudos

PA0006 if used for Employee

PB0006 is used for Applicant

Regards

Marcin

raymond_giuseppi
Active Contributor
0 Kudos

Let the system take the decision (and the customizing of your functional), use FM of PADR group "Business object: AddressEmp"

- BAPI_ADDRESSEMP_GETDETAIL Read employee address

- BAPI_ADDRESSEMP_GETLIST Read Instances

- BAPI_ADDRESSEMPGETDETAILEDLIST Read instances with data

NB: PB0006 is for applicant, not employee

Regards,

Raymond

I355602
Advisor
Advisor
0 Kudos

Hi,

You can go with PA0006 if you want to ferch the address for an employee.

Use PB0006 in case you want to fetch the address for a candidate.

Regards,

Tarun

christine_evans
Active Contributor
0 Kudos

A PERNR can have more than one address - I'm using BAPI_ADDRESSEMPGETDETAILEDLIST to get all addresses for a PERNR.