cancel
Showing results for 
Search instead for 
Did you mean: 

Company address info in 4.6c

ChrisSolomon
Active Contributor
0 Kudos

I am building a function group that constructs an employee's paystub. As such, I need to retireve the payee's address. This should be the company the employee is under. As of now, I am pulling most all address info for the company from T880. However, this table lists everything except the state/province of the company (seems odd that that would be left out). Is there a better place (table) to retrieve this info? Any help?

Thanks in advance!

Accepted Solutions (0)

Answers (4)

Answers (4)

ChrisSolomon
Active Contributor
0 Kudos

One caveat I found....if the company addresses are not being maintainted via central address admin., you will get nothing back in the address table (makes sense eh? haha). I had to put in some additional code to check if the returned address structure was initial and if so, to go look in the "t" table used in the IMG when setting up various companies to pull address info. Oddly enough, the table includes all fields EXCEPT "regio" (state/province). Anyways, glad I could help...that's what this place is all about!

Former Member
0 Kudos

Thanks Chris, just so happens I have to do almost the same thing and was thinking of going through the Org Structure.

This BAPI Works perfect!

ChrisSolomon
Active Contributor
0 Kudos

Just going to use:

BAPI_COMPANYCODE_GETDETAIL

and viola! All of it is there.

ChrisSolomon
Active Contributor
0 Kudos

err...I meant "payor". haha

...and "retireve" = retrieve ....fat-fingered that one.

😃