f$ABAS_PutAddress (f$ABAS_Kundeschreiben)
f$ABAS_PutAddress (f$ABAS_Kundeschreiben)
An address (customer) is written to ABAS with this function. The customer number with the field name num is always to be entered first in the field list. Depending on if a data record exists with this value, the address is modified or created. When creating an address, the customer number is not evaluated and is instead generated by ABAS and returned to the parameter group.
Please note: the name of the parameter groups is usually entered in string constants, i.e. in quotation marks.
Attention: when writing an offer, you must enter at least one position.
Syntax: | Status = f$ABAS_PutAddress (FieldList,PG) | ||
| Argument | Type | Meaning |
| FieldList | String | Field list of ePOS parameters in the PG parameter group that are to be written. |
| PG | String | Name of the parameter group containing the address data. This parameter group either does not have to be indexed, or the index used must also be entered (e.g. 'Addresses[1]' |
Result: | Integer | Status of the function: -5 : the field list is Noval -4 : argument is not consistent -3 : the operation has failed (an error analysis can be performed using the log file) -2 : the ABAS interface is not installed -1 : the interface has not been logged in to 0 : the customer was successfully transferred | |
Example: | Status = f$abas_login('linux',6550,'erp','sy') f$abas_logfile('c:\\temp\\abas' + f$date('yyyyMMdd_hh_mm_ss') +'.log') FieldsAddress = 'FiBuNr,Search,PreferredName,Company1,CountryCode,ZipCode,Town,Street' Status = f$abas_putaddress (FieldsAddress,'abas_address') f$abas_logfile('') Status = f$abas_logout() | ||