Entry points > Module Geode GX > Standard script SUBCAD 

CHGDOHSTA: after updating DO lines and DO header status

This entry point is used to take control after the header and lines of a delivery order have been updated by splitting the order through a status change.

Context and operating method

This entry point is called after the header and the lines of a delivery order have been updated, when a change is needed on the DO status and before the creation of completed DO and delivery reports.

The GOK variable is tested on return from the entry point. If GOK<1, the current transaction will be rolled back.

Transaction

A transaction is in progress when calling this entry point.

Available variables and tables

DLVORDERH table open and fed

ODOHSTA contains the status of the DO header before the status update.