Fonction SAP BAPI_COMPANY_GETDETAIL - Company details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYID BAPI0014_2-COMPANY C 6 Company

Paramètre Reférence Type Long. Description
COMPANY_DETAIL BAPI0014_2 u 162 Company detailed data
RETURN BAPIRETURN u 452 Return code

Functionality
This method enables the user to access further information about acompany. The company's detailed data as determined by the system isreturned. Any problems arising are returned as a return code message.

Notes
The same authorization checks are carried out under this method as takeplace when 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.
Messages are returned within the RETURN parameter. This parameterdocumentation contains the return codes and their meaning.

Description
The system returns details of a company in one structure. You can finddefinitions of the various parameters in their respective data elementdocumentation.
Structure Layout
COMPANY Company
NAME1 Company name
NAME2 Company name 2
COUNTRY Country of company
LANGU Language key
STREET Company street
PO_BOX Company P.O. box
POSTL_COD1 Company postal code
CITY Company city
CURRENCY Local currency

Value range
COMPANY Dictionary data type: CHAR (field length 6)
NAME1 Dictionary data type: CHAR (field length 30)
NAME2 Dictionary data type: CHAR (field length 30)
COUNTRY Dictionary data type: CHAR (field length 3)
LANGU Dictionary data type: CHAR (field length 1)
STREET Dictionary data type: CHAR (field length 30)
PO_BOX Dictionary data type: CHAR (field length 10)
POSTL_COD1 Dictionary data type: CHAR (field length 10)
CITY Dictionary data type: CHAR (field length 30)
CURRENCY Dictionary data type: CHAR (field length 5)

Description
The system returns the return code of this method in one structure withfive fields. You can find definitions of these fields in theirrespective data 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

Default

Description
You can find the definition of company in the data elementdocumentation.
Company