Skip to main content
Skip table of contents

Sage: finish processing order (FinishGenOrderAssignedMasterData )


Sage: finish processing order (FinishGenOrderAssignedMasterData )

After new order-related master data has been created or existing order-related master data modified, this function must be called. The function detects the main BOM/routing via the order number and enters the corresponding BOM number and routing number in the f010 tax rate. If master data is being created, then no further action is taken.If a reconfiguration is carried out, then the detected numbers are additionally entered in the topmost production order. For all existing production orders, an action set for calculating requirements (parts swap - table r115, fu_bedr = 4) is made available and the requirement calculation subsequently launched. The modifications to the order-related master data are thereby directly carried into the production. Orders no longer required are deleted.

 If the parameter ANP_STLAPL_AEND_TODO and the parameter "todoeintrag" are set, then an additional to-do entry from the template saved in the parameter ANP_STLAPL_AEND_TODO is created.

The function has the following mandatory arrays: order number (aufnr), order position (aufpos), identification number (identnr), and reconfiguration (rekonfiguration). Reconfiguration specifies if order-related master data is created (0) or reconfigured (1).

The service delivers a corresponding error message on the parameter Message. If successful, no message is returned.

Syntax:

Status = f$SageService ( Service , 'FinishGenOrderAssignedMasterData' , InputPG , '' )

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'FinishGenOrderAssignedMasterData'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the input data.

 

''

String

Placeholder

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'
eposcall_such.id = ID
Status = f$SageService ( B7Service , 'ReadEposCall' , 'eposcall_such' , 'eposcall_ret' )

Auftrag_bearbeiten.aufnr = eposcall_ret.aufnr

Auftrag_bearbeiten.aufpos = eposcall_ret.aufpos

Auftrag_bearbeiten.identnr = eposcall_ret.identnr

Auftrag_bearbeiten.var = eposcall_ret.var

Auftrag_bearbeiten.satzart = 1

auftrag_such.aufnr = eposcall_ret.aufnr

Status = f$SageService ( B7Service , 'ReadOrder' , 'auftrag_such' , 'auftrag_kopf,auftrag_pos' )

Auftrag_bearbeiten.konto = auftrag_kopf.konto

Status = f$SageService ( B7Service , 'StartGenOrderAssignedMasterData' , 'process_order' , 'process_order' )

...

Status = f$SageService ( B7Service , 'FinishGenOrderAssignedMasterData' , 'Auftrag_bearbeiten' , '' )

JavaScript errors detected

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

If this problem persists, please contact our support.