Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>CompanyCode



Index

CompanyCode

CompanyCode


The business object Company code is the smallest organizational
unit of financial accounting for which a complete, self-contained accounting can be represented. This contains the recording of all
accountable events and the drawing up of all statements for individual
accounts as required by law, such as balance sheets as well as profit and loss statements.


11-Dec-2005


Methods

Available Methods


  • ExistenceCheck : Check if company code exists [ BAPI_COMPANYCODE_EXISTENCECHK ]
  • GetDetail : Company Code Details [ BAPI_COMPANYCODE_GETDETAIL ]
  • GetList : List of Company Codes [ BAPI_COMPANYCODE_GETLIST ]
  • GetPeriod : Determine period for posting date/company code [ BAPI_COMPANYCODE_GET_PERIOD ]

11-Dec-2005


ExistenceCheck

ExistenceCheck


No document is available


11-Dec-2005


GetDetail

GetDetail


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 code message.

Notes

The same authorization checks are carried out as take place when displaying 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 other detail from being returned.


Messages are returned under the RETURN parameter. This parameter documentation contains the return codes and their meaning.


11-Dec-2005


GetList

GetList


This method provides the user with a list of company codes. The systemreturns both the keys and the names of the company codes, in so far asthe latter exist in the system. Problems arising are returned as a return code message.

Notes

The same authorization checks are carried out as take place when displaying information within an R/3 transaction.


Texts for the company code are returned only if these exist in the system.

Messages are returned in the RETURN parameter. This parameter documentation contains the return codes and their meaning.



11-Dec-2005


GetPeriod

GetPeriod


This method returns the corresponding fiscal year and posting period to a company code and posting date.


11-Dec-2005