Hi Muhammad Aftab ..
There is not direct link between the GRPO and Transfer can you explain the link.
If you want to block the Transfer without frieght try this
IF @Object_type = '67' and @transaction_type in ( 'A' ,'U')
BEGIN
If exists
( SELECT T0.DocNum FROM OWTR T0
INNER JOIN WTR T1 ON T0.DocEntry = T1.DocEntry
WHERE isnull(TotalExpns,'')='' and T1.DocEntry =@list_of_cols_val_tab_del
)
Beign
Select @error = 1,
@error_message = 'have No Landed Cost!'
END
End
Regards
Kennedy