EndSCVBatch macro at system level

The EndSCVBatch macro is used to release the previously acquired ‘named lock’ or ‘global lock’ for an SCV batch. An SCV batch is a sequence of macro steps included in a macro between the StartSCVBatch and EndSCVBatch commands.

For executing the macro, the value in the Command field must be specified in this format:

EndSCVBatch()

This table lists the examples of the EndSCVBatch macro:

Example Syntax

The SCV outbound flow to export the scheduled orders from PS model ‘UK Brewery’ to M3 is completed.

The scheduler can now start another export from the UK brewery.

EndSCVBatch() -> Matching with StartSCVBatch("UK Brewery")

The SCV inbound flow to import the production order from M3 for ‘UK Brewery’ and ‘NL Brewery’ are completed.

Schedulers from the separate UK and NL PS models can start new imports at the same time. However, one scheduler at a time can start the import for each brewery.

EndSCVBatch() -> Matching with StartSCVBatch("UK Brewery")

EndSCVBatch() -> Matching with StartSCVBatch("NL Brewery")

The SCV inbound flow to import master data from M3 for all breweries is completed.

PS models can start importing the order data from M3.

EndSCVBatch() -> Matching with StartSCVBatch()
Start an SCV Batch and explicitly end the batch at the end of the macro execution.

StartSCVBatch("UK Brewery")

do something useful

EndSCVBatch()

Start an SCV Batch and implicitly end the batch at the end of the macro execution.

StartSCVBatch("UK Brewery")

do something useful

Start an SCV Batch and explicitly end the batch in the middle of the macro execution.

StartSCVBatch("UK Brewery")

do something useful

EndSCVBatch()

do something else

Start and end two SCV batches during the macro execution.

StartSCVBatch("UK Brewery")

do something useful

EndSCVBatch()

StartSCVBatch("NL Brewery")

do something else

EndSCVBatch()