Skip to main content
Skip table of contents

Sage: create routing header (CreateRouting)


Sage: create routing header (CreateRouting)

Create a routing header. The line items must be created in a special function. Multiple parameters can be filled with their corresponding values in the input parameter group. The arrays aplidentnr and art are required. Furthermore, the arrays aufnr and aufpos are required with an order-related routing (art=6). The following parameters can be used: aendind, aendnr, agaltern, altern, aplnr, aplidentnr, aplvar, art, aufnr, aufpos, bearb, datvon, etjpl, etname, fam, kn_et, kn_reihenfolge, kostst, menge_ab, ncprognr, txt, useraen, userneu. The function returns the data for the created routing header in a parameter group. If a routing could not 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 routing header parameter group are filled:

aendind, aendnr, agaltern, altern, aplidentnr, aplnr, aplvar, art, aufnr, aufpos, bearb, dataen, datneu, datvon, etjpl, etname, fam, kn_et, kn_reihenfolge, kostst, menge_ab, ncprognr, txt, useraen, userneu

Syntax:

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

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateRouting'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the data for the routing.

 

'PGOUTPUT'

String

Name of the ePOs parameter group with the result data for the routing 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'
arpl_kopf.aplidentnr = 'BNUESSLE-T02'
arpl_kopf.art = 0
Status = f$SageService ( B7Service , 'CreateRouting' , 'arpl_kopf' , 'arpl_kopf' )
p$anzeige_ergebnis('arpl_kopf' )

JavaScript errors detected

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

If this problem persists, please contact our support.