Fonction SAP BAPI_COMPANYCODE_GETDETAIL - Company Code Details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODEID BAPI0002_2-COMP_CODE C 4 Company Code

Paramètre Reférence Type Long. Description
COMPANYCODE_ADDRESS BAPI0002_3 u 832 Company Code Address Data
COMPANYCODE_DETAIL BAPI0002_2 u 112 Company Code Detail Data
RETURN BAPIRETURN u 452 Return Code

Functionality
This method enables the user to access further information for acompany code. The system returns the detail data and address data forthe company code. Problems arising are retured as a return codemessage.

Notes
The same authorization checks are carried out as take place whendisplaying displaying information within an R/3 transaction.
The system does not convert the input parameter COMPANYID, meaning thatleading blank characters within this parameter are not cleared.
Where no address data is found for a company code, a warning message isreturned by the return parameter. This does not however prevent otherdetail from being returned.
Messages are returned under the RETURN parameter. This parameterdocumentation contains the return codes and their meaning.

Description
The system returns company code address details in one structure.
Structure Layout
ADDR_NO Address number
FORMOFADDR Title
NAME Name 1
NAME_2 Name 2
NAME_3 Name 3
NAME_4 Name 4
C_O_NAME c/o name
CITY City
DISTRICT District
CITY_NO City code for city and street file
POSTL_COD1 Postal code of city
POSTL_COD2 Postal code of P.O. box
POSTL_COD3 Postal code of company (for major customers)
PO_BOX P.O. box
PO_BOX_CIT City of P.O. box
DELIV_DIS Postal delivery district
STREET Street
STREET_NO Code for city and street file
STR_ABBR Abbreviation of street name (Spain)
HOUSE_NO House number
STR_SUPPL1 Supplement 1 for street
STR_SUPPL2 Supplement 2 for street
LOCATION Building and location description
BUILDING Building
FLOOR Floor
ROOM_NO Room number
COUNTRY Country key
LANGU Language key
REGION Region (state, county, province)
SORT1 Search term 1
SORT2 Search term 2
TIME_ZONE Time zone of address
TAXJURCODE Jurisdiction for taxation - tax jurisdiction code
ADR_NOTES Notes to address
COMM_TYPE Communication type (key)
TEL1_NUMBR First telephone no.: area code + number
TEL1_EXT First telephone no.: extension
FAX_NUMBER First fax no.: area code + number
FAX_EXTENS First fax no.: extension

Value range
ADDR_NO Dictionary data type: CHAR(field length 10)
FORMOFADDR Dictionary data type: CHAR(field length 15)
NAME Dictionary data type: CHAR(field length 40)
NAME_2 Dictionary data type: CHAR(field length 40)
NAME_3 Dictionary data type: CHAR(field length 40)
NAME_4 Dictionary data type: CHAR(field length 40)
C_O_NAME Dictionary data type: CHAR(field length 40)
CITY Dictionary data type: CHAR(field length 40)
DISTRICT Dictionary data type: CHAR(field length 40)
CITY_NO Dictionary data type: CHAR(field length 12)
POSTL_COD1 Dictionary data type: CHAR(field length 10)
POSTL_COD2 Dictionary data type: CHAR(field length 10)
POSTL_COD3 Dictionary data type: CHAR(field length 10)
PO_BOX Dictionary data type: CHAR(field length 10)
PO_BOX_CIT Dictionary data type: CHAR(field length 40)
DELIV_DIS Dictionary data type: CHAR(field length 15)
STREET Dictionary data type: CHAR(field length 40)
STREET_NO Dictionary data type: CHAR(field length 12)
STR_ABBR Dictionary data type: CHAR(field length 2)
HOUSE_NO Dictionary data type: CHAR(field length 10)
STR_SUPPL1 Dictionary data type: CHAR(field length 40)
STR_SUPPL2 Dictionary data type: CHAR(field length 40)
LOCATION Dictionary data type: CHAR(field length 40)
BUILDING Dictionary data type: CHAR(field length 10)
FLOOR Dictionary data type: CHAR(field length 10)
ROOM_NO Dictionary data type: CHAR(field length 10)
COUNTRY Dictionary data type: CHAR(field length 3)
LANGU Dictionary data type: CHAR(field length 1)
REGION Dictionary data type: CHAR(field length 3)
SORT1 Dictionary data type: CHAR(field length 20)
SORT2 Dictionary data type: CHAR(field length 20)
TIME_ZONE Dictionary data type: CHAR(field length 6)
TAXJURCODE Dictionary data type: CHAR(field length 15)
ADR_NOTES Dictionary data type: CHAR(field length 50)
COMM_TYPE Dictionary data type: CHAR(field length 3)
TEL1_NUMBR Dictionary data type: CHAR(field length 30)
TEL1_EXT Dictionary data type: CHAR(field length 10)
FAX_NUMBER Dictionary data type: CHAR(field length 30)
FAX_EXTENS Dictionary data type: CHAR(field length 10)

Description
The system returns company code detials in one structure with twelvefields. You can find a definition of these parameters in the respectivedata element documentation.
Structure Layout
COMP_CODE Company code
COMP_NAME Company code or company name
CITY1 City
COUNTRY1 Country key
CURRENCY Currency key
LANGU1 Language key
CHRT_ACCTS Chart of accounts
FY_VARIANT Fiscal year variant
VAT_REG_NO VAT registration number
COMPANY Company
ADDR_NO Address number

Value range
COMP_CODE Dictionary data type: CHAR(field length 4)
COMP_NAME Dictionary data type: CHAR(field length 25)
CITY1 Dictionary data type: CHAR(field length 25)
COUNTRY1 Dictionary data type: CHAR(field length 3)
CURRENCY Dictionary data type: CHAR(field length 5)
LANGU1 Dictionary data type: CHAR(field length 1)
CHRT_ACCTS Dictionary data type: CHAR(field length 4)
FY_VARIANT Dictionary data type: CHAR(field length 2)
VAT_REG_NO Dictionary data type: CHAR(field length 20)
COMPANY Dictionary data type: CHAR(field length 6)
ADDR_NO Dictionary data type: CHAR(field length 10)

Description
The system returns the return code of this method in one structure withfive fields. You can find definitions of these fields in the respectivedata element documentation.
Structure Layout
TYPE Message type
CODE Message code
MESSAGE Message text
LOG_NO Application log: log number
LOG_MSG_NO Application log: sequence number of message

Description
You can find out what a company code is in the data elementdocumentation
Company Code