Sage: extract article criteria
Sage: extract article criteria
The read criteria for the variant are copied to a parameter group in the user set of rules with this function. To do this, the description of the criteria (criterion definition) must have been read prior. In this function, all read criteria in the criterion definition is searched in order to obtain the data type and name of the criterion. The value of the criterion is then copied onto the parameter of the same name in the criterion parameter group.
Syntax: | Status = p$tdv:sage:merkmale_lesen ( 'NamePGCriteriondefinition' , 'NamePGCriterionlist' , 'NamePGCriterion') | ||||
| Argument | Type | Meaning | ||
| NamePGCriteriondefinition | String | Name of the ePOS parameter group for the description of the criteria which can be read with the base article. | ||
| 'PGINPUT' | String | Name of the ePOS parameter group with the criterion characteristics of the variant | ||
| PGOUTPUT | String | Name of the ePOS parameter group with the result data. | ||
Result: | Integer | Status of the function: 0 : everything ok -1 : the parameter group for the criterion definition is empty -2 : the parameter group for the criterion characteristics is empty | |||
Example approach:
Read the criteria for the base variant
Status = f$SageService ( B7Service , ’ReadArticleCriterion’ , ’art_such’ , ’Criteria’ )
p$anzeige_ergebnis( ’Criteria’ )
Result:
fldname | Kritart | kritnr | krittyp |
PRIORITAET | 9 | 142 | 2 |
MM_GROESSE | 2 | 131 | 2 |
MM_V_ART | 2 | 132 | 0 |
MM_LAENGE | 2 | 134 | 2 |
MM_ZUSCHNITT | 2 | 135 | 0 |
MM_ANSCHNITT | 2 | 136 | 2 |
MM_REST | 2 | 137 | 2 |
MM_OBERFLAECHE | 2 | 138 | 0 |
MM_B_ANZAHL | 2 | 164 | 2 |
MM_GENAU | 2 | 162 | 0 |
MM_TEILIG | 2 | 163 | 0 |
Read the criterion characteristics for the variant
art_such.identnr = ’11000011-PAM’
art_such.var = ’0001’
Status = f$SageService ( B7Service , ’ReadArticle’ , ’art_such’ , ’art_erg,Criteria’ )
p$anzeige_ergebnis( ’Criteria’ )
Result
ausprfloat | ausprid | ausprint | ausprtxt | kritgrp | kritnr | Lfdnr |
| 0 | 0 |
| 28 | 131 | 3 |
| 1 | 0 | von oben | 28 | 132 | 4 |
| 0 | 0 |
| 28 | 134 | 5 |
| 1 | 0 | synchron | 28 | 135 | 6 |
| 0 | 0 |
| 28 | 136 | 7 |
| 0 | 0 |
| 28 | 137 | 8 |
| 0 | 0 |
| 28 | 138 | 9 |
| 0 | 0 |
| 28 | 164 | 10 |
| 1 | 0 | N | 28 | 162 | 11 |
| 0 | 0 |
| 28 | 163 | 12 |
Read criteria
Status = p$tdv:sage:merkmale_lesen(’Criteriadef’ , ’Criterialist’ , ’mm_11000011’)
Result
MM_ANSCHNITT | MM_B_ANZAHL | MM_GENAU | MM_GROESSE | MM_LAENGE | MM_OBERFLAECHE | MM_REST | MM_TEILIG | MM_V_ART | MM_ZUSCHNITT |
0 | 0 | N | 0 | 0 |
| 0 |
| von oben | synchron |