Tuesday, December 30, 2014

Job to create a new Invent Dim

Occassionally you may need a code snippet to create invent dim if it didn't exist for the inventory transactions for the new combination. Just sharing to keep it as a knowledge base.

static void CreateInventDim(Args _args) //Create a new invent Dim
    InventDim   inventDim,inventDimFind;

    //Batch = 123459
    inventDim.inventLocationId = 'HOUSTON';
    inventDim.InventSiteId = 'CENTRAL';
    //inventDim.inventBatchId = “123459
    inventDimFind = inventDim::findOrCreate(InventDim);


No comments:

Post a Comment