Sage: create article variant (CreateArticleVariant)
Sage: create article variant (CreateArticleVariant)
Create a variant of an article. Two parameter groups are used as the input for this function. The article data and the designation data are saved in the first parameter group, and the criteria for the variant is entered in the second parameter group. The parameter identnr in the first parameter group must be filled with an already existing identification number. The following parameters can also be filled: ekpreism, vpreis. The arrays in the article texts cannot be edited with this function. The text for the base article is always entered. If the designations of variant articles are to be edited, the UpdateArticle function must subsequently be called. In the parameter group of the variant criteria, all criteria allocated to the base article can be used. If the variant already exists, a new variant is not created and the existing variant is returned.
After creating the variants, the data for these variants is returned in the entered parameter group. In the case of an error, the error message is returned on the parameter Message.
Syntax: | Status = f$SageService ( Service , 'CreateArticleVariant' , 'PGINPUTList' , 'PGOUTPUT' ) | |||
| Argument | Type | Meaning | |
| Service | String | URL of the web service | |
| 'CreateArticleVariant' | String | Command constant | |
| 'PGINPUTList' | String | Names of the two ePOS parameter groups with the data for the article and 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: | B7Service = 'http://b7demo.sagebaeurer.de/br71/callin/epos_soap' artikel.ekpreism = 234 artikel.vpreis = 345 artikel.identnr = '11000011-PAM' mm_11000011.MM_LAENGE = 1280 mm_11000011.MM_REST = 240 Status = f$SageService ( B7Service , 'CreateArticleVariant' , 'article,mm_11000011' , 'article' ) | |||