Hi Experts,
i have one query.
STEP 1.* select qmnum tplnr ingrp bautl arbpl
* from viqmel
* into table it_qmel
* where iwerk eq p_iwerk and
* ingrp in s_ingrp and
* arbpl in r_arbpl and
* bautl in s_bautl and
* qmart eq c_notif and
* kzloesch ne 'X
STEP 2: again based on the records in internal table it_qmel we are performing below action.
loop at it_qmel.
if it_qmel-tplnr(2) <> p_line.
delete it_qmel.
continue.
endif.
step 3:based on step 2 we are fecthing below query.
select qmnum fenum fetxt fecod otgrp oteil bautl zztrktype
zzchainage_low zzchainage_high zzsector zzrefnotifobj
into table it_qmfe
from viqmfe
for all entries in it_qmel
where qmnum = it_qmel-qmnum and
zztrktype in s_track and
zzsector in s_sector and
zzchainage_low ge w_chainl and
zzchainage_high le w_chainh and
otgrp in p_otgrp and
oteil in p_oteil and
kzloesch ne 'X'.
How can i acheive the above requirement in AMDP