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

Re: Max time & date in SAP query

$
0
0

Hi Shaik,

 

As an example, with the data below (table 1), by entering in the query with fields LGNUM, MATNR, WERKS, NLTYP, VLTYP and PQUIT (Indicator: confirmation complete), I want to get for material A and material B the storage bins with last confirmation date and confimation time. After process the query, the result should be as shown in table 2.


As I understant, QDATU and QZEIT, should be ZQDATU an ZQZEIT so we can insert the coding.

 

In which one of the code sections should the code be inserted?

 

Table 1:

 

LGNUMNLTYPMATNRMAKTXNLPLAQDATUQZEIT
XXXYYYMAT AAAAAACC-YY-ZZ17-09-201315:34:52
XXXYYYMAT AAAAAADD-YY-ZZ07-10-201317:04:19
XXXYYYMAT AAAAAAEE-YY-ZZ07-10-201317:04:22
XXXYYYMAT AAAAAAFF-YY-ZZ09-10-201310:12:58
XXXYYYMAT BBBBBBGG-AF-0217-09-201315:34:52
XXXYYYMAT BBBBBBHH-AF-0317-09-201315:34:53
XXXYYYMAT BBBBBBII-AF-0207-10-201317:04:19

 

Table 2:

 

LGNUMNLTYPMATNRMAKTXNLPLAQDATUQZEIT
XXXYYYMAT AAAAAAFF-YY-ZZ09-10-201310:12:58
XXXYYYMAT BBBBBBII-AF-0207-10-201317:04:19

 

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 9076

Trending Articles



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