generate/cbs2.gif Service Status Change Hook (R-SMSTAT.MAC) generate/en72.jpg


 

The script file must be located in your CAPITAL program or data directory and must have the file name R-SMSTAT.MAC

If the script can be found, it is called to report the change of the job status of a Service Manager job card.

Entry Values

Variable

Purpose

OldStatus

The old/original status code, before the status was changed.

Status codes are:

O = Open

C = Closed

Q = Quotation

X = Completed

H = Suspended (held)

NewStatus

The new status code, after the status was changed.

Smjobs->X

The service manager job field.

Smaux000->X

Service manager user fields if applicable.

Return Values

None.

Comments

This script hook is called even if the status is not changed. To determine a status change compare OldStatus to NewStatus to see if the value has changed.

____________________________

Related Topics:

Scripting Hooks

Script Programming

Service Manager Concepts



Help Topic Map