Skip to main content
Skip table of contents

Sage: create BOM header (CreateBom)


Sage: create BOM header (CreateBom)

Create a BOM header. Multiple parameters can be filled with their corresponding values in the input parameter group. The following parameters can be used: stlidentnr, aufnr, aufpos, art, bearb, etjpl, etname, kn_et, lgber, lgfach, lgnr, menge_bezug, stlnr, staltern, stlvar, useraen, userneu, werk, txt. The arrays stlidentnr and art are required. The arrays aufnr and aufpos are also required for order-related BOMs (art=6). The function returns the data for a BOM header in a parameter group after its creation. The same parameter group can be used for input and output. The identifier for the BOM created is returned on the parameter stlnr. This is needed to create the BOM’s positions in subsequent function calls. If the BOM 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 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

Syntax:

Status = f$SageService ( Service , 'CreateBom' , 'PGINPUT' , 'PGOUTPUT' )

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateBom'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the data for the BOM header.

 

'PGOUTPUT'

String

Name of the ePOS parameter group with the result data for the BOM header.

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_kopf.stlidentnr = 'BNUESSLE-T02'stueli_kopf.art = 1Status = f$SageService ( B7Service , 'CreateBOM' , 'stueli_kopf' , 'stueli_kopf' )p$anzeige_ergebnis('stueli_kopf' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.