SAP ABAP Select Last Record
Hi All,
We are on SAP 4.7R3 ext 200. Oracle 9.2 and Solaris 5.9
I upgraded my SAP Support packages, since then my SAP is running slow
In stack 30 I upgraded:
- ABA_PLUS 16 to 20 PI patch 8 to 15
- PI_BASIS 2004_1_620 to 2005_1_620 patch 16
- SAP_ABA 55 TO 64
- SAP_APPL 25 to 30
- SAP_BASIS 55 TO 64
my SP Manager was 6.20/32 and kernel was 221
After applying above stack I run SGEN and generate only above. I ignore others like SAP_HR,EA_APPL etc.
Is that OK or I should generate all in my SAP
Any suggestion in this regard.
Thanks in Advance!
try this.
Types:begin of ty_zbt_bonus,
man(3) type c,
poz(3) type c,
tel(6) type c,
name(25) type c,
surname(35) type c,
novi(1) type c,
dat type dats,
usnam(12) type c,
end of ty_bonus.
DATA: WA_ZBT_BONUS TYPE TY_ZBT_BONUS,
IT_ZBT_BONUS TYPE STANDARD TABLE OF TY_ZBT_BONUS.
select * from
zbt_bonus
into table IT_ZBT_BONUS.
SORT it_zbt_bonus BY dat descending.
read table IT_ZBT_BONUS INTO WA_ZBT_BONUS index 1.
WRITE: / WA_ZBT_BONUS- poz,
WA_ZBT_BONUS- tel,
WA_ZBT_BONUS- name,
WA_ZBT_BONUS- surname.
Because we are descending by date, we make sure that while inserting records, system date is used and last record is with latest date always in inserting ..then it will work out.
Hope it clarifies,,