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

Purchase order

Former Member
0 Likes
539

Hi,

In purchase order if we create a new line itme it is updating ekbe-bwart = 641, and after that if we delete that line item it is updating ekbe-bwart = 642 if we again

create line item it will update eket-bwart = 641 so i wont to read latest

line item. is there any function module for getting these details directely.

could any one help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
498

do this way...select data from ekbe into itab.

sort itab descending.

delete adjacent duplicates from itab comparing <order>.

U will have the latest one in itab.

do this way...select data from ekbe into itab.

sort itab descending.

delete adjacent duplicates from itab comparing <order>.

U will have the latest one in itab.

3 REPLIES 3
Read only

Former Member
0 Likes
499

do this way...select data from ekbe into itab.

sort itab descending.

delete adjacent duplicates from itab comparing <order>.

U will have the latest one in itab.

Read only

0 Likes
498

Hi,

it wont work,i already done in that way.

Message was edited by:

lakkireddy sarala

Read only

Former Member
0 Likes
498

I think you can fetch the data from EKBE table for the document and item for the selected movt type. Order the data by posting date (i.e. EKBE-BUDAT) in descending order..and the first record would give you the last document.

Regards

Anurag