Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Routine in DTP to get only max values of ocalyear dynamically

$
0
0

Hello Rohit,

 

If you wish to select only the highest calendar year in DSO routine could be done this way:

 

data: l_idx like sy-tabix.

data: l_year type /BI0/OICALYEAR.

 

read table l_t_range with key

fieldname = 'CALYEAR'.

l_idx = sy-tabix.


SELECT MAX( CALYEAR ) INTO (l_year) FROM /BIC/ADSO_NAME00.


l_t_range-iobjnm = '0CALYEAR'.
l_t_range-fieldname = 'CALYEAR'.
l_t_range-sign = 'I'.
l_t_range-option = 'EQ'.

 

if l_idx <> 0.

modify l_t_range index l_idx.

else.

append l_t_range.

endif.

p_subrc = 0.

 

BR

Ondrej


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>