Не уверен, что правильно понял вопрос, но приведу на всякий случай выдержку из навиженской справочной системы:
COMPANYNAME (Database)
Use this function to return the current company name.
Name := COMPANYNAME
Name
Data type: text constant or code
The name of the company, or an empty string if no company has been selected.
Example
This example shows how to use the COMPANYNAME function to retrieve the name of the current company.
Name := COMPANYNAME;
MESSAGE(Text000, Name);
Create the following text constant in the C/AL Globals window:
Text Constant
ENU Value
Text000
'The name is: %1'
|