Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Planned Cost in a Query

0 Kudos

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.

1 ACCEPTED SOLUTION

0 Kudos

I've been able to resolve this by removing the statement "exit".

1 REPLY 1

0 Kudos

I've been able to resolve this by removing the statement "exit".