Sage: create sales price (CreateSalesPrice)
Sage: create sales price (CreateSalesPrice)
With this function, a price including discount can be assigned to an article. The following parameters can be filled with their corresponding values in the input parameter group: aendnr, aktionsnr, auf_art, auszpreis, bonuskz, bruttospanneb, bruttospannev, datbis, datvon, etname, faktor, formelnr, herstellernr, identnr, kd_grp, kn_aktionsprs, kn_evp, kn_mindmenzus, kn_nettoprs, kn_preis_hk, kn_rab_einr, konto, lgnr, menge_ab, mindmenzus, modellprl, pe_ausz, pevk, preisgrp, provschl, prsgrpkd, rabatt2, rabatt3, rabatt, rabattkz, satzart, uvb, var, vb, versionsnr, vkpreis, waehrung, werk, wgr, znr, zu_ab, zu_ab_ek If the price cannot be created, the service delivers a corresponding error message. This is entered via the parameter Message. Before evaluating the output parameter group, the parameter Message should be verified.
Note that the arrays identnr and datvon are mandatory. The array datvon must be entered in the format: yyyy-MM-ddTHH:mm:ssZ.
The following parameters in the output parameter group are filled:
aendnr, aktionsnr, auf_art, auszpreis, bonuskz, bruttospanneb, bruttospannev, dataen, datbis, datneu, datvon, etname, faktor, formelnr, herstellernr, identnr, kd_grp, kn_aktionsprs, kn_evp, kn_mindmenzus, kn_nettoprs, kn_preis_hk, kn_rab_einr, konto, lgnr, menge_ab, mindmenzus, modellprl, pe_ausz, pevk, preisgrp, provschl, prsgrpkd, rabatt2, rabatt3, rabatt, rabattkz, satzart, useraen, userneu, uvb, var, vb, versionsnr, vkpreis, waehrung, werk, wgr, znr, zu_ab, zu_ab_ek
Syntax: | Status = f$SageService ( Service , 'CreateSalesPrice', 'PGINPUT' , 'PGOUTPUT' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'CreateSalesPrice' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the data for the pricing information to be created. |
| '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: | B7Service = 'http://b7demo.sagebaeurer.de/br71/callin/epos_soap' SalesPrice.identnr = 'BNUESSLE-T04' SalesPrice.konto = 100 SalesPrice.vkpreis = 123 SalesPrice.rabatt = 10 SalesPrice.menge_ab = 1 SalesPrice.datvon = '2015-01-01T00:00:00Z' Status = f$SageService ( B7Service , 'CreateSalesPrice' , 'SalesPrice' , 'SalesPrice_res' ) | ||