Sage: create a BOM position (CreateBomLineItem)
Sage: create a BOM position (CreateBomLineItem)
Create a line (position) in a BOM. Multiple parameters can be filled with their corresponding values in the input parameter group. The following parameters can be used: agpos,aufbr, beregelung, cadpos, chargen_rein, datvon, ersatz, gewicht, gewicht_br, herstellernr, identnr, kn_ausliefteil, kn_matdruck, kn_vdispo, kostst, kzmat, lgber, lgfach, lgnr, meg, menge_bezug, mes, staltern, stlnr, stlvar, stmenge, stpos, umrech, var, vorlzeit, werk. The arrays identnr, stlnr, and stmenge are required. If necessary, information on customization can also be delivered to the BOM position. The array names of the customization from B7 have been given the prefix z_ so that they can be identified. The following parameters can be entered: z_bez, z_bildnr, z_breite, z_hoehe, z_laenge, z_mezu, z_rbreite, z_rhoehe, z_rlaenge, z_useraen, z_userneu, z_vzuschl, z_winka, z_winkb, z_zumenge. The function returns the data for the BOM position in a parameter group after its creation. The same parameter group can be used for input and output. If an indexed parameter group is present, the index must also be entered. If the BOM position 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.
The following parameters from the BOM positions parameter group are read: 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.
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 , 'CreateBomLineItem' , 'PGINPUT' , 'PGOUTPUT' ) | |||
| Argument | Type | Meaning | |
| Service | String | URL of the web service | |
| 'CreateBomLineItem' | String | Command constant | |
| 'PGINPUT' | String | Name of the ePOS parameter group with the data for the BOM position. | |
| 'PGOUTPUT' | String | Name of the ePOS parameter group with the result data for the BOM position. | |
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: |
CODE
} | |||