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:
LGNUM | NLTYP | MATNR | MAKTX | NLPLA | QDATU | QZEIT |
XXX | YYY | MAT A | AAAAA | CC-YY-ZZ | 17-09-2013 | 15:34:52 |
XXX | YYY | MAT A | AAAAA | DD-YY-ZZ | 07-10-2013 | 17:04:19 |
XXX | YYY | MAT A | AAAAA | EE-YY-ZZ | 07-10-2013 | 17:04:22 |
XXX | YYY | MAT A | AAAAA | FF-YY-ZZ | 09-10-2013 | 10:12:58 |
XXX | YYY | MAT B | BBBBB | GG-AF-02 | 17-09-2013 | 15:34:52 |
XXX | YYY | MAT B | BBBBB | HH-AF-03 | 17-09-2013 | 15:34:53 |
XXX | YYY | MAT B | BBBBB | II-AF-02 | 07-10-2013 | 17:04:19 |
Table 2:
LGNUM | NLTYP | MATNR | MAKTX | NLPLA | QDATU | QZEIT |
XXX | YYY | MAT A | AAAAA | FF-YY-ZZ | 09-10-2013 | 10:12:58 |
XXX | YYY | MAT B | BBBBB | II-AF-02 | 07-10-2013 | 17:04:19 |
Thanks in advance.