2016 Mar 18 8:52 PM
I am trying to create a new query where I require the planned costs from table PMCO. I can not get the value to populate. I have tried a few different things but nothing seems to be working.
data: lv_wrt07 type pmco-wrt07
clear: zplan
select sum( wrt07 ) as wrt07
from pmco into lv_wrt07
where objrn = aufk-objnr and
wrttp = '1'.
If lv_wrt07 is not initial.
zplan = lv_wrt07.
exit.
endif.
I've also tried summing WRT00 - WRT16 and I get the same results. Not sure what I am missing.
2016 Mar 24 6:14 PM
I've been able to resolve this by removing the statement "exit".
2016 Mar 24 6:14 PM
I've been able to resolve this by removing the statement "exit".