f$ABAS_GetOffer (f$ABAS_Angebotlesen)
f$ABAS_GetOffer (f$ABAS_Angebotlesen)
An offer and the positions of an offer are read from ABAS with this function. If a duplicate name is found while reading positions from an offer or order, the identifier that itself relates the field to the article is introduced thereby by writing artˆ before the actual name, e.g.: artˆnummer
Please note: the name of the parameter groups is usually entered in string constants, i.e. in quotation marks.
Syntax: | Status = f$ABAS_GetOffer(OfferNr,NamePGOffer,NameCount,NamePGPositions) | ||
| Argument | Type | Meaning |
| OfferNo | String | The identification number for the offer to be read. |
| NamePGOffer | String | Name of the parameter group to which the offer data is read. This parameter group either does not have to be indexed, or the index used must be entered as well (e.g. 'Offerdata[1]' |
| NameCount | String | Name of the parameter on which the number of positions is written. |
| NamePGPositions | String | Name of the parameter group to which the position data is written. This parameter group must be indexed. If needed, the size will be extended. |
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 offer was read successfully | |
Example: | Status = f$abas_login('linux',6550,'erp','sy') f$abas_logfile('c:\\temp\\abas' + f$date('yyyyMMdd_hh_mm_ss') +'.log') Status = f$abas_GetOffer ('100007','abas_Offer','Count', 'read_abas_positions' ) f$abas_logfile('') Status = f$abas_logout() | ||