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

date GDATU qustion

Former Member
0 Likes
915

Hi,

i do this select and i wont to ask if gdatu is sequential,

i.e. if i have date

e.g.

date gdatu

1.1.2008 7000001

2.1.2008 7000002

3.1.2008 7000003

4.1.2008 7000004

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
875

to make the fetch records sequential add ORDER BY gdatu at the end of where clause.

Hi,

i do this select and i wont to ask if gdatu is sequential,

i.e. if i have date

e.g.

date gdatu

1.1.2008 7000001

2.1.2008 7000002

3.1.2008 7000003

4.1.2008 7000004

Regards

6 REPLIES 6
Read only

Former Member
0 Likes
876

to make the fetch records sequential add ORDER BY gdatu at the end of where clause.

Read only

0 Likes
875

Hi karthik,

Thanks i do it like this,

its o.k.?

ukurs = ''.

WHILE ukurs IS INITIAL.

SELECT SINGLE ukurs

FROM tcurr

INTO ukurs

WHERE kurst = '1002' AND

fcurr = wa_dp-currency AND

tcurr = 'USD0' AND

gdatu = datecur.

datecur = datecur + 1.

ENDWHILE.

Regards

Read only

0 Likes
875

from where your getting this value ??? Is it from selection screen or from a table fetch.

Read only

0 Likes
875

Hello

No (-:

In your case

datecur = datecur - 1.

Read only

0 Likes
875

Hi karthik ,

i take it from table tcurr.

Regards

Read only

0 Likes
875

data : tcurr type TCURR.

SELECT *

FROM tcurr

INTO tcurr

WHERE kurst = '1002' AND

fcurr = wa_dp-currency AND

tcurr = 'USD0' AND

gdatu ge datecur

order by tcurr.

if sy-subrc eq 0.

exit.

endif.

endselect.