Skip to main content
Skip table of contents

f$ABAS_NewOffer (f$ABAS_Angebotanlegen)


f$ABAS_NewOffer (f$ABAS_Angebotanlegen)

An offer and the positions for the offer are written to ABAS with this function. The positions are transferred over without a structure. If it is necessary to transfer positions with a structure, the offer with the positions in the highest level must be created using this function and the structure subsequently written to an XML file. The position numbers are alphanumeric. Thus it is completely allowed to use, for example, 2.1 as a position number. In most cases it is sufficient to create the offer without a structure and transfer all positions with their position numbers. The number of the offer created is returned in the parameter group for the order data.

With this function you can also modify existing offers. To do this, the first field must identify the offer. If you want to modify only one row, you have to set the argument: count to the negative number of the position.

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_NewOffer (Fieldlistffder,PGOffer,PositionCount,FieldlistPosition,PGPosition)

 

Argument

Type

Meaning

 

Fieldlistffder

String

Field list of ePOS parameters in the offer parameter group which are to be written into the header of the offer.
e.g.: 'ContactNo,Customer,Status'

 

Pgoffer

String

Name of the parameter group containing the data for the offer. This parameter group either does not have to be indexed, or the index used must be entered as well (e.g. 'Offerdata[1]'

 

PositionCount

Integer

Number of positions to be transferred or the negative number of the row, which has to be modified.

 

FieldlistPosition

String

Field list of ePOS parameters in the position parameter group that are to be written with theoffer positions.
z.B.:'PosNo,MaterialNo,Quantity,ListpriceUnit'

 

PGPosition

String

Name of the parameter group containing the position data. This parameter group must be indexed.

Result:

Integer

Status of the function:

-5 : a 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 offer 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')

FieldsOffer = 'ContactNo,Customer,Status'

FieldsOrder = 'PosNo,MaterialNo,Quantity,ListpriceUnit'

Status = f$abas_NewOffer (FieldsOffer,'abas_Offer',PositionCount,FieldsPosition,'abas_positions')

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.