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

help on selection table

selvi1
Explorer
0 Likes
475

hai all,

my requirement is to get the dates given between the low and high values in to an internal table.

how can i do this.

thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
458

Hi,

you can code like this way

Select date from table into table itab where ( date >= s_date-low and date <=s_date-high ).

Reward points if it is helpful

Regards,

Sangeetha.A

Read only

Former Member
0 Likes
458

Hi,

you can do the same using infotypes. There are the two fields , ENDDA and

Begda in infotype pa0001.

also you can use the rp_provide_from_last in your report programme.

****do rewards if usefull

regards,

vijay

Read only

Former Member
0 Likes
458

If u r trying to fetch data from a Infotypte, u can use the function module

<b>HR_READ_INFOTYPE</b>, or if u've two different dates for start date and enddate in ur d/b table, u can use the following form of the select statement to fetch data

select <field list>

from <table>

where begda < enddate

and endda > start date