2008 Nov 18 6:39 AM
select matnr netpr aedat from ekpo INTO table IT_EKPO where matnr = BOM-idnrk
for this 11 records are coming to internal table, for this i need latest date price,
how to take that .
can u guide me.
select matnr netpr aedat from ekpo INTO table IT_EKPO where matnr = BOM-idnrk
for this 11 records are coming to internal table, for this i need latest date price,
how to take that .
can u guide me.
2008 Nov 18 6:43 AM
Hi use this
select matnr netpr aedat
from ekpo
up to 1 rows
INTO table IT_EKPO
where matnr = BOM-idnrk
order by aedat decending.
Here u will get last price
Regards
Srimanta
2008 Nov 18 6:44 AM
Hi,
Sort your internal table descending order..then read the internal table at index 1.
sort itab descending by aedat.
read table itab index 1.
Arunima
2008 Nov 18 6:48 AM
Hi,
use like this:
select matnr netpr aedat upto 1 rows from ekpo INTO table IT_EKPO where matnr = BOM-idnrk
order by aedat descending.
2008 Nov 18 6:49 AM
Hi,
You can do as below:
Once IT_EKPO is filled up with the data. Use the code below :
SORT IT_EKPO BY aedat.
READ TABLE IT_EKPO INDEX 1.
WRITE : IT_EKPO.
Thanks,
Sriram POnna.
2008 Nov 18 7:25 AM
hi,
If you want latest date or hight price the you can write select statement
select matnr
max( netpr )
aedat from ekpo INTO ekpo where matnr = BOM-idnrk
this may solve your problem.
Thanks & regards