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

Re: Select Statement to check date between dates

$
0
0

Hi

 

The rule to convert is easy:

GDATU = '99999999' - DATE (YYYYMMDD)

 

Try to run this report:

 

parameters: p1 type sy-datum,

                  p2 type sy-datum.

 

data date_c(8) type c.

data p1_int(8) type c.

data p2_int(8) type c.


   move p1 to date_c.

   p1_int = '99999999' - date_c.

 

   write: p1, p1_int.

 

   move p2 to date_c.

   p2_int = '99999999' - date_c.

 

   skip.

   write: p2, p2_int.

 

 

if P1 is greater than P2 => P2  (converted) will be greater than P1 converted

 

Max


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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