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

Problem WITH ERZET

Former Member
0 Likes
1,025

Hy ALL

I have a little problem with the correct selection.

I select data from VBAK, but the selection is not correct.

Coding

AND aedat GE i_aedat

AND erzet GE i_erzet

But i does not work. For Example, erzet = 12:00:00. If the day Change i could not find data's.

Perhaps anybody have a Tip

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
859

Hi,

Try not passing the ERZET in the selection logic, instead use this to process the internal table after retrieving the data,

Rgds,

Hy ALL

I have a little problem with the correct selection.

I select data from VBAK, but the selection is not correct.

Coding

AND aedat GE i_aedat

AND erzet GE i_erzet

But i does not work. For Example, erzet = 12:00:00. If the day Change i could not find data's.

Perhaps anybody have a Tip

4 REPLIES 4
Read only

Former Member
0 Likes
860

Hi,

Try not passing the ERZET in the selection logic, instead use this to process the internal table after retrieving the data,

Rgds,

Read only

0 Likes
859

Ok

you tell me this

select * from Vbak where ERDAT = I_ERDAT.

If sy-datum GE I_ERDAT

If sy-Uzeit GE I_ERZet

Perform work.

endif.

endif.

Correct so ??

Read only

0 Likes
859

Hi,

select * from Vbak into table i_vbak where ERDAT = I_ERDAT .

loop at i_vbak.

if sy-uzeit ge i_vbak-erzet.

continue.

else.

delete i_vbak.

endif.

endloop.

Regards

Subbu

Read only

0 Likes
859

select vbeln erdat erzet into table lt_vbak

from vbak

where ( ( erdat = '20081123' and erzet >= '155127' ) or erdat > '20081123' ) "lower limit date and time

and ( ( erdat = '20081124' and erzet <= '190000' ) or erdat < '20081124' ). "upper limit date and time

Regards

VS