Physical Inventory Questions

We’re about to kickoff another full PI, here, and there were a couple of things I was hoping you all could confirm for me before we get started:

  1. The Count Variance Reports can be ran whenever/as many times as wanted, can’t they?

They have to be run before the discrepancy reason codes can be entered?

  1. Does a reason code have to entered part-by-part in Count Discrepancy Reason Code? Or is there a faster way to assign a single reason code to all?

  2. Once the reason code is input, the count should then be posted back in Count Cycle Maintenance, correct? So the order of operations would be tag entry, count variance reports, discrepancy reason code entry, post counts, run capture?

Thanks all!

In december we will hold our first full physical, so no real experience here.

One thing we did is create an epicor function to set reason codes automatically, since reason code selection depends on plant in our case. Here’s a simplified version of the code :

const int WITHIN_TOLERANCE = 1;
const int OUT_OF_TOLERANCE = 2;

this.CallService<Erp.Contracts.CCCountCycleSvcContract>(bo =>
{
	Erp.Tablesets.CCCountCycleTableset tableSet = bo.GetByID(this.Plant, this.WarehouseCode, this.CCYear, this.CCMonth, this.FullPhysical, this.CycleSeq);

	var ccDtlRows = tableSet.CCDtl.ToList();

	foreach(var ccDtlRow in ccDtlRows)
	{
		if(ccDtlRow.VarToleranceStat == WITHIN_TOLERANCE)
		{
			if(ccDtlRow.CDRCode == "") continue;

			var originalClearedRow = (Erp.Tablesets.CCDtlRow) tableSet.CCDtl.NewRow();
			BufferCopy.Copy(ccDtlRow, originalClearedRow);
			tableSet.CCDtl.Add(originalClearedRow);

			ccDtlRow.CDRCode = "";
			ccDtlRow.RowMod = "U";
			continue;
		}

		if(ccDtlRow.VarToleranceStat != OUT_OF_TOLERANCE)
		{
			continue;
		}

		// Hors tolérance : code de raison selon le site / entrepôt
		string plant = ccDtlRow.Plant.ToUpper();
		string warehouse = ccDtlRow.WarehouseCode.ToUpper();
		string reasonCode = "";

		if(plant == "P2K")
		{
			reasonCode = "5";
		}
		else if(plant == "P2F" && warehouse.StartsWith("STA"))
		{
			reasonCode = "6";
		}
		else if(plant == "P2F" && warehouse.StartsWith("STL"))
		{
			reasonCode = "7";
		}
		else if(plant == "P2A" && warehouse.StartsWith("STL"))
		{
			reasonCode = "19";
		}

		if(ccDtlRow.CDRCode == reasonCode) continue;

		var originalRow = (Erp.Tablesets.CCDtlRow) tableSet.CCDtl.NewRow();
		BufferCopy.Copy(ccDtlRow, originalRow);
		tableSet.CCDtl.Add(originalRow);

		ccDtlRow.CDRCode = reasonCode;
		ccDtlRow.RowMod = "U";
	}

	bo.Update(ref tableSet);
});

Yes, and in fact it needs to be run before posting anything if any new counts have been added.

There is no built in way. The post above by @mbilodeau would do nicely with some modifications for your company.

Yes. You can actually post before entering reason codes, which will only post counts with variances that are within tolerance.

Exactly, with the caveat that you can create recount tags and enter them. This would be between Count Variance and add Discrepancy Reasons.

Thank you, @mbilodeau & @kve. I appreciate your assistance!