Application Development 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: 

Select query

Former Member
0 Kudos

Hi,

Need to write a select statement to get the records from IHPA table. The condition is to get the records where the System date between Start date and End date.

Pls let me know how to write the same.

Regards,

Venu

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

select * from IHPA inti table i_IHPA

where start date <= sy-datum

and end date >= sy-datum.

Choose the appropriate fields from the tables to replace start and end dates.

Regards,

Amit

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

select * from IHPA inti table i_IHPA

where start date <= sy-datum

and end date >= sy-datum.

Choose the appropriate fields from the tables to replace start and end dates.

Regards,

Amit

Former Member
0 Kudos

Hi,

Use the following:

SELECT fields into internal table FROM IHPA where sy-datum BETWEEN start date and ENDDAte.

Here, START DATE and END DATES are te user enterable parameters , ithink.

Regards,

Himanshu

Former Member
0 Kudos

Hi Ram,

data : GT_IHPA type table of IHPA .

select * from IHPA into table GT_IHPA where sy-datum between ERDAT and AEDAT.

regards,

Rajesh.

Message was edited by:

RK