Prerequisite: for the highlighted three objects below, the initial download for them must be done successfully. This could be checked in tcode R3AM1.
(1) in MM02, view classification, assign class 023 - Batch to material
In this example, batch id: 023_03
In warehouse management view, select this checkbox:
(2) download this product to CRM.
You can observe the field BATCH_DEDICATEd is marked as true now.
The settype is marked with correct batch id: