the way you have written ur selects wont work, fetch the data into 2 internal tables separately then loop at ptab.
LOOP at p_tab assigning <FS>.
"use read table to get the value and fill them in the field symbol which would automatically update the p_tab.
U need appropriate keys to match and read.
ENDLOOP