Combining Stock Records

SUGGESTED

Looking at the Stock table, I see that I have a lot of cases where a product is listed multiple times with a different STOCOU number. Everything else is identical (except for the quantities).

For example: Product (ABC), STOCOU#, Bin Location and Qty.

ABC    3837838    W180   25
ABC    3815780    W180   5
ABC    3802076    W180   1
ABC    3835948    W180   1
ABC    3641630    W180   1

I checked STOALL to see if anything is allocated to these STOCOU numbers and none of the were in there. Is there a way to combine these 5 records into 1 record with QTY of 33?

Thank you for your help!

Parents
  • 0

    Are you sure you don't have different stock units (PCU), status (ITMSTA), or lot numbers (LOT) ?  These would result in split stock lines.

  • 0 in reply to Allison Tentis
    SUGGESTED

    I agree with Allison: you must have a difference elsewhere. Stock records are merged automatically as long as the following fields have the same value:

    • Product code
    • Site
    • Location
    • Pack unit
    • Unit Conversion
    • Lot
    • Sub-lot
    • Status
    • Quality control request
    • Serial number
    • Identifier 1 (palnum)
    • Identifier 2 (ctrnum)
  • 0 in reply to Julien Patureau

    Thank you for your help!

    Yeah, I  double checked everything  and the only difference is in the STOCOU, QTY, LASRCPDAT, CREDATE, UPDDAT, UPDUSR, CREUSR, CREDATTIM and UPDDATTIME.

    Here is what I think had happened. I feel like some of these records had serial numbers on them. We only track those when the product leaves the building. So somehow they were on the stock record initially and then they were wiped (as we don't keep serial numbers in stock), leaving these separate stocou transactions. Though some parts that have it are not serialized, so I can't explain those.

    I am just trying to figure out a safe way to combine them now. Slight smile

Reply
  • 0 in reply to Julien Patureau

    Thank you for your help!

    Yeah, I  double checked everything  and the only difference is in the STOCOU, QTY, LASRCPDAT, CREDATE, UPDDAT, UPDUSR, CREUSR, CREDATTIM and UPDDATTIME.

    Here is what I think had happened. I feel like some of these records had serial numbers on them. We only track those when the product leaves the building. So somehow they were on the stock record initially and then they were wiped (as we don't keep serial numbers in stock), leaving these separate stocou transactions. Though some parts that have it are not serialized, so I can't explain those.

    I am just trying to figure out a safe way to combine them now. Slight smile

Children