You use the CREATE_BATCH hook point activity to automatically generate and assign a batch number to the shop order upon completion of the first SFC number.
Note that this activity does not generate a batch number if the shop order already has a batch number assigned.
This activity is commonly used only with the PRE_COMPLETE hook point for an operation, resource, and routing step.