06-18-2009 10:14 AM
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
06-18-2009 10:19 AM
PA0006 if used for Employee
PB0006 is used for Applicant
Regards
Marcin
06-18-2009 10:19 AM
PA0006 if used for Employee
PB0006 is used for Applicant
Regards
Marcin
06-18-2009 10:19 AM
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
06-18-2009 10:20 AM
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
06-18-2009 10:20 AM
A PERNR can have more than one address - I'm using BAPI_ADDRESSEMPGETDETAILEDLIST to get all addresses for a PERNR.