Sage: change article (UpdateArticle)
Sage: change article (UpdateArticle)
Modify an article. The parameter identnr in the input parameter group must be filled with a unique and already existing identification number. If a variant article is being modified, the parameter var must also be filled. This function is principally for modifying the designations of variant articles. The following parameters can be filled: ekpreism, vpreis, bs , me. The following arrays in the article texts can also be filled: abmessung, ben, ben1, klasse, kurz_ben, lang_ext, mc_var, norm, normnr, updatenr, werkstoff. If the article cannot be modified, the service delivers a corresponding error message. This is entered via the parameter Message. After creating the article, the data for it is returned to the specified parameter group.
Syntax: | Status = f$SageService ( Service , 'UpdateArticle' , 'PGINPUT' , 'PGOUTPUT' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'UpdateArticle' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the data for the article |
| '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' artikel.abmessung = '2000x1500' artikel.ben = 'Nüßle-02' artikel.ben1 = 'ben 25.02.2015' artikel.identnr = 'BNUESSLE-T02' Status = f$SageService ( B7Service , 'UpdateArticle' , 'article' , 'article' ) | ||