Skip to main content
Skip table of contents

Sage: create sales text (CreateSalesText)


Sage: create sales text (CreateSalesText)

With this function, a text can be allocated to an article. This text must have been created prior in the system (e.g. with CreateRichText). The following parameters can be filled with their corresponding values in the input parameter group: identnr, konto, satzart, txt_nr, var. Satzart is 1 for a sales text. If konto = 0 is entered, the sales text applies to all customers. You receive the txt_nr as a result when creating a text using CreateRichText. 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:

dataen, identnr, konto, satzart, txt_nr, useraen, var.

Syntax:

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

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateSalesText'

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'

rich_text.txtrich = 'Description of the article'

rich_text.lang_ext = 'en_us'

rich_text.txt_art = 'TKT'

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

Salestext.identnr = 'BNUESSLE-T10'

Salestext.konto = 0

Salestext.satzart = 1

Salestext.txt_nr = rich_text.txt_nr

Status = f$SageService ( B7Service , 'CreateSalesText' , 'Salestext' , 'Salestext_res' )

JavaScript errors detected

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

If this problem persists, please contact our support.