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

Mesuring Point's last measuring document

Former Member
0 Likes
1,042

Hi Experts,

I am having 1 measuring point and for that 3 measuring document numbers.I want to take latest document number.

suggest me how to do it.

point : 000000000835

document : 00000000000000001287

00000000000000001690

I want to take latest 00000000000000001690 pls help me.

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
785

hi Garima,

you can use:

SELECT MAX( document )

INTO ...

FROM ...

WHERE ...

hope this helps

ec

Read only

0 Likes
785

i am doing like this but it is not working tell me the mistake.

actually i have to select this doc and according to that i have to fetch points position etc.

select single MAX( MDOCM )

from imrg

into corresponding fields of i_mdocm

where idate = dt.

Read only

0 Likes
785

you can only select one field this way (i. e. with SELECT MAX)

select MAX( MDOCM )

from imrg

into gv_mdocm

where idate = dt.

Now you have mdocm and you can select the whole record with a SELECT SINGLE

An other option would be to select all lines into an internal table, sort the internal table by mdocm descending and now you have highest doc number in the first line of the internal table.

Read only

Former Member
0 Likes
785

Hi,

IMPTT is the table storing Measuring point.

IMRG is the table for Measurement documents.

Regards,

Satish