balaji
One easy method without any fm or objnr, but only by using simply the Order number.
TABLES:afih.
SELECT-OPTIONS: so_aufnr FOR afih-aufnr.
TYPES: BEGIN OF ty_ord,
aufnr TYPE aufnr,
iphas TYPE pm_phase,
END OF ty_ord.
DATA: it_ord TYPE TABLE OF ty_ord.
SELECT aufnr iphas FROM afih INTO TABLE it_ord WHERE aufnr IN so_aufnr.
DELETE it_ord WHERE iphas <> '2'.
Means: The field IPHAS in table AFIH indicates the Order status and if it is '2' then it is an order with system status REL. So at the end of the code above the internal table it_ord is left with all REL orders.
Good luck
KJogeswaraRao