Hi Gurus!
I have alogic which checks if a particular document condition item is active and then selects all and checks if the document is list or off-list. I want the logic to loop through the same logic for all conditions for the same item to determine if the item is list or off-list setting. At the end of loop it will show if it is list -1 or off list 2 or not applicable -0 and then continue with the loop. I have prepared the l;ogic but not getting through the loop logic.
data: lv_kotabnr type c length 15,
it_konv type konv,
lv_kozgf type T685-kozgf,
it_t685 type standard table of t685.
select * from konv
into it_konv where
kinak = ' ' and
knumv eq iv_knumv and
kposn eq iv_kposn .
select single kozgf into lv_kozgf
from T685 where
kappl = 'V' and
kschl = it_konv-kschl.
if sy-subrc eq 0.
select single kotabnr into lv_kotabnr
from T682I
where kappl = 'V' and
kolnr eq it_konv-kolnr and
kozgf eq ( select kozgf
from T685
where kappl = 'V' and
kschl = it_konv-kschl ).
if sy-subrc eq 0.
select single ZPRICE_TYPE into RV_IS_LIST from zsd_price_type where kotabnr = lv_kotabnr .
endif.
endif.
endif.
endselect.
If someone can help on this would be very kind.
Thanks