Skip to main content
Skip table of contents

Sage: create BOM text (CreateBOMText)


Sage: create BOM text (CreateBOMText)

A text can be assigned to a BOM position or the BOM header with this function. This text must have been created prior in the system (e.g. with CreateRichText). Multiple parameters can be filled with their corresponding values in the input parameter group. The following parameters in the parameter group can be filled: lfdnr, staltern, stid, stlnr, stpos, txt_bst, txt_nr, typ. Meaning of the parameters:

typ

Type of connection

Describes what sort of text is present

TP = pure text position

KT = header text

PT = position text

stlnr

BOM number

Must be entered with pure text positions and header texts

stpos

BOM position

Must be entered with pure text positions and header texts

staltern

Position option

Must be entered with pure text positions and header texts

stid

BOM position ID

Must be entered with position texts

txt_nr
txt_bst

Text number
Text component

One of the two indicators must be entered


.If the allocation 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 in the output parameter group are filled:

lfdnr, staltern, stid, stlnr, stpos, txt_bst, txt_nr, typ.

Syntax:

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

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateBOMText'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the data for the text line to be created.

 

'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'

stueli_such.stlidentnr = 'BNUESSLE-T08'

stueli_such.art = 1

f$PGNoVal( 'stueli_pos[]' )

Status = f$SageService ( B7Service , 'ReadBOM' , 'stueli_such' , 'stueli_kopf,stueli_pos' )

rich_text.txtrich = 'Description of first article'

rich_text.lang_ext = 'en_us'

rich_text.txt_art = 'TTI'

Status = f$SageService ( B7Service , 'CreateRichText' , 'rich_text' , 'rich_text' )

stueli_text.typ = 'PT'

stueli_text.stlnr = stueli_pos[1].stlnr

stueli_text.stpos = stueli_pos[1].stpos

stueli_text.staltern = stueli_pos[1].staltern

stueli_text.stid = stueli_pos[1].stid

stueli_text.txt_nr = rich_text.txt_nr

Status = f$SageService ( B7Service , 'CreateBOMText' , 'stueli_text' , 'stueli_text' )

JavaScript errors detected

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

If this problem persists, please contact our support.