Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Urgent

Former Member
0 Likes
479

I need to use last value for the field AUFK-AUFNR,

Can any body send the code for this , i need it Urgently.

I need to use last value for the field AUFK-AUFNR,

Can any body send the code for this , i need it Urgently.

3 REPLIES 3
Read only

Former Member
0 Likes
455

last value means what?

Do u have specific requirement?

Read only

Former Member
0 Likes
455

data : aufn like aufk-aufnr.

select max( aufnr ) into aufn from aufk.

write : / aufn.

regards

shiba dutta

Read only

Former Member
0 Likes
455

Hi,

use below code.

data : gv_aufnr like aufk-aufnr.

select max( aufnr )

into gv_aufnr

from aufk.

if not gv_aufnr is initial.

write 😕 'Last Order is', gv_aufnr

else.

write 😕 'Last Order not found'.

endif.

thanks,

sksingh