‎2009 Dec 17 1:16 PM
Hi all. Is there a function to get the company code address in sap script ?
Regards,
Cristian.
‎2009 Dec 17 1:21 PM
Hello,
How about trying BAPI_COMPANYCODE_GETDETAIL.
You have to create an subroutine & retrieve the data. I donot think there is any shortcut to this
BR,
Suhas
‎2009 Dec 17 1:22 PM
Hello Christian,
The better way to solve is :
Create an include program and fetch the company code related address number (adrnr) field from the master table for company codes i.e,
T001 and populate this adrnr normally in the script to fetch the address details.
Thanks,
M.Naveen Kumar
‎2009 Dec 17 6:22 PM
Hi Cristian,
As Naveen had rightly said, you need to pass BUKRS to TOO1 table, and get ADRNR.
Call function module ADDR_GET
Importing parameters
Pass address_selection:
Pass ADDRNUMBER & NATIO
If you pass NATIO = I , you will get international version of address.
If you pass NATIO as blank, you will get local address details.
Exporting parameter
ADDRESS_VALUE structure will have company code address.
Regards,
Nisha Vengal.