READ TABLE <_yth_TG_1>
WITH TABLE KEY
CALDAY = _G_2-CALDAY
CALMONTH = _G_2-CALMONTH
CALWEEK = _G_2-CALWEEK
CALYEAR = _G_2-CALYEAR
MATERIAL = _G_2-MATERIAL
PLANT = _G_2-PLANT
STOR_LOC = SPACE "SPACE
BATCH = SPACE "SPACE
STOCKTYPE = SPACE "SPACE
assign your fields here instead of the space and you will not end up with two records. this is where storage location, batch and stock type are empty instead of something like _G_2-BATCH
that should fix it
Martin