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

how to select the last date in infoset

$
0
0

hi guru

 

I inserted the following code in a infoset to have the latest date in the face of a selection, but does not work, please help me

thank you in advance

 

 

data: begin of itab_date occurs 0,

                    itab_date like ekbe,

                    NEWFIELDS like ekbe-budat,

                    end of itab_date.

clear itab_date.

clear NEWFIELDS.

select budat from ekbe into itab_date-budat

  WHERE EBELN = EKPO-EBELN

  AND   EBELP = EKPO-EBELP

  AND   VGABE = '8'.

  Sort itab_date by itab_date-budat  descending.

  read table itab_date index 1.

endselect.

NEWFIELDS = itab_date-budat.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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