Skip to main content
Skip table of contents

f$ABAS_Getaddress (f$ABAS_Kundelesen)


f$ABAS_Getaddress (f$ABAS_Kundelesen)

One or more addresses from ABAS are read with this function. The search is managed through a search parameter group. However, the only parameters which are evaluated are those for which an allocation to an ABAS field was made in the designation column in the parameter group definition. Wildcards are always used for searching. That means if A is entered as a name, all addresses beginning with A are searched for.

Please note: the name of the parameter groups is usually entered in string constants, i.e. in quotation marks.

Syntax:

Status = f$ABAS_GetAddress (SearchPG, DestPG, NameCount, Sort)

 

Argument

Type

Meaning

 

SearchPG

String

Name of the parameter group containing the search criteria. This parameter group either has to be indexed, or the index used must also be entered.

 

DestPG

String

Name of the parameter group to which the address data is written. This parameter group must be indexed. If needed, the size will be extended.

 

NameCount

String

Name of the parameter on which the number of addresses found is written.

 

Sort

String

Sort criteria. Only the field name to be used for sorting search results is to be entered here. You cannot sort by any field. You can only sort by fields which can also be selected with interactive search.

Result:

Integer

Status of the function:

-4 : argument is not consistent

-3 : the operation has failed (an error analysis can be performed using the log file)

-2 : no data found

-1 : the interface has not been logged in to

0 : the customer was read successfully

Example:

In this example, all addresses beginning with A are read.

Status = f$abas_login('linux',6550,'erp','sy')

f$abas_logfile('c:\\temp\\abas' + f$date('yyyyMMdd_hh_mm_ss') +'.log')

Address_s.Preferredname ='A'

Status = f$abas_GetAddress ( 'Address_s', 'Addresses', 'Count', '')

f$abas_logfile('')

Status = f$abas_logout()

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.