Sage: read BOM (ReadBom)
Sage: read BOM (ReadBom)
Read the data for a BOM and the positions in it. In the input parameter group, multiple parameters can be filled with the corresponding search criteria. The individual search criteria are connected with AND. The following search criteria can be used: stlidentnr, aufnr, aendind, aufpos, art, bearb, dataen, datneu, stlnr, txt. The function returns the data for the BOM header in a parameter group and the data for the BOM positions in an indexed parameter group. The indexation of this parameter group is adjusted if necessary. On the parameter textposition, 0 identifies a position and 1 identifies a text position. If a BOM was not found, or if unknown search criteria are used, 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.
The following parameters from the BOM header parameter group are filled:
aendind, aendnr, art, aufnr, aufpos, bearb, dataen, datneu, datvon, etjpl, etname, kn_et, lgber, lgfach, lgnr menge_bezug, staltern, stlidentnr, stlnr, stlvar, txt, useraen, userneu, werk
The following parameters from the BOM positions parameter group are filled: aendnr, agpos, beregelung, cadpos, dataen, datneu, datvon, ersatz, gewicht, gewicht_br, herstellernr, identnr, kostst, lfdnr, meg, menge_bezug, mes, staltern, stid, stlidentnr, stlnr, stlvar, stmenge, stpos, txt_bst, txt_nr, umrech, useraen, userneu, var, vorlzeit, Textposition. The parameter textposition identifies a text position with a 1.
If the BOM position is customized, the following parameters are also read: z_aendnr, z_bez, z_bildnr, z_breite, z_dataen, z_datneu, z_hoehe, z_laenge, z_mezu, z_rbreite, z_rhoehe, z_rlaenge, z_stid, z_useraen, z_userneu, z_vzuschl, z_winka, z_winkb, z_zumenge
Syntax: | Status = f$SageService ( Service , 'ReadBom' , 'PGINPUT' , 'PGOUTPUTList' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'ReadBom' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the search criteria. |
| 'PGOUTPUTList' | String | Names of the ePOS parameter group with the result data for the BOM header and BOM positions, separated by commas. |
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'stueli_such.stlidentnr = '1100001'stueli_such.art = 0Status = f$SageService ( B7Service , 'ReadBOM' , 'stueli_such' , 'stueli_kopf,stueli_pos' )p$anzeige_ergebnis('stueli_pos' ) | ||