Sage: read the purchase price of an article (GetBasePrice )
Sage: read the purchase price of an article (GetBasePrice )
Read the data related to a specified quantity and, if desired, date of validity for the valid purchase price of an article. In the input parameter group, the following parameters can be filled with the corresponding values: identnr and var to identify the article, BasePricemenge_ab for the desired quantity and BasePricedatum for the desired date of validity. If this is not given, the current date is used. The function returns the price found and its attributes in a parameter group. If a price is not found with the given data, the result parameter group is not filled.
The following parameters in the parameter group are filled:
identnr, konto, dataen, datneu, useraen, userneu, best_art, bonuskz, datvon, ekpreis, faktor, formelnr, kn_aktionsprs, kn_bestueb, menge_ab, peek, pr_art, pr_bezug, preisgrp_e, pr_herk_e, waehrung, znr, zu_ab, zuab_wert, zuab_wertf, zuab_wert2, zuab_wert3, zu_ab2, zu_ab3, mep, umrechb, mep, umrechp.
Syntax: | Status = f$SageService ( Service , 'GetBasePrice' , 'PGINPUT' , 'PGOUTPUT' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'GetBasePrice' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the search criteria. |
| 'PGOUTPUT' | String | Name of the ePOS parameter group with the result data. |
Result: | Integer | Status of the function: 1 : the service function was successfully called -1 : the component eposvbcomexe could not be found -2 : function URL not entered -4 : general error | |
Example: | baseprice_such.identnr = '0 093 S 544 1N' baseprice_such.var ='' baseprice_such.BasePricemenge_ab = 1000 baseprice_such.BasePricedatum = '2015-03-18T00:00:00Z' Status = f$SageService ( B7Service , 'GetBasePrice', 'baseprice_such' , 'baseprice_erg' ) | ||