ulrich.fuchs
18th June 2007, 11:02
Hi folks,

with get.compnr() I can get the current company number. However, in a multisite environment, besides the "current company" there is a current logistics company and a current finance company (in the change company dialog I can change all three).

Does anybody know if there is there a 4GL function / DLL / Include I can use to retrieve those company numbers?

Uli

en@frrom
18th June 2007, 14:48
function extern tfgld.dll1002.get.comp.parm(domain tcncmp i.fisc.comp)
{
#ident "@(#)tfglddll1002 tfB50bwrk eureka Rev.No. 3 17 Jun 02 rchacko"
DLLUSAGE
Expl: The function in the DLLs used to read the company parameters of
any finanacial company.
Input: i.fisc.comp: the fiscal company for which the parameters have
to be read.
Output: All fields of the table tfgld004(Company Parameters)
ENDDLLUSAGE

function extern long tfgld.dll1002.get.comp.parm.dal(domain tcncmp i.fisc.comp)
{
DLLUSAGE
Expl: The function in the DLLs used to read the company parameters of
any finanacial company. This function has the same functionality
of the function above, but works with dal.error.messages in case
an error occurs.
Input: i.fisc.comp: the fiscal company for which the parameters have
to be read.
Pre: -
Post: 0, no error occured
DALHOOKERROR, in case of an error.
Output: All fields of the table tfgld004(Company Parameters)
ENDDLLUSAGE