Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

ABAP SQL query on

$
0
0


Hi,

     Can anyone tell me what is the SELECT statement for getting the latest time records based on date and other parameter.

 

 

Table data
DATETIMESOURCEDESTPRDQTY
10.03.201413:18:51UHAABDHDXCC17B1,000.00
10.03.201413:24:56UHAABDHDXCC17B3,000.00
10.03.201413:24:56UHAABDHDXCC16B1,000.00
11.03.201413:18:35UHAABDHDXCC17B1,000.00
11.03.201413:24:20UHAABDHDXCC17B3,000.00
11.03.201413:24:30UHAABDHDXCC17B1,000.00
11.03.201413:24:30UMECHKHDXCC17B1,000.00
11.03.201413:24:30UMECHKHDXCC16B1,000.00

 

My selection screen input as

 

Input
Source locUHAUME
Dest locABDHCHKH
Date10.03.201411.03.2014

 

Output must be

 

Source and destination and date wise latest time records shoul be extracted by SELECT Statment.

Expected output as below

 

Output
DATETIMESOURCEDESTPRDQTY
10.03.201413:24:56UHAABDHDXCC17B3,000.00
10.03.201413:24:56UHAABDHDXCC16B1,000.00
11.03.201413:24:30UHAABDHDXCC17B1,000.00
11.03.201413:24:30UMECHKHDXCC17B1,000.00
11.03.201413:24:30UMECHKHDXCC16B1,000.00

 

Thanks

Ajit


Viewing all articles
Browse latest Browse all 8332

Trending Articles