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

Select query

Former Member
0 Likes
590

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
Read only

amit_khare
Active Contributor
0 Likes
555

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
Read only

amit_khare
Active Contributor
0 Likes
556

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

Read only

Former Member
0 Likes
555

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

Read only

Former Member
0 Likes
555

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