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

Function module which returns the date are in sequence or not

PritamKunal
Participant
0 Likes
756

I have searched a lot but i am not able to fine the existing function module if it exist which return for the series of date that are in an internal table and sorted too, is in series or not.

Here in series means that continuous date.

can anyone find the function module which returns this. I am checking for the function module which is applicable for only working days date, that is from Monday to Friday.

3 REPLIES 3
Read only

Former Member
0 Likes
609

Hi Pritam,

I don't think there is such FM.

just write a small code something like this..

LOOP AT ITAB.

itab-date1.

READ ITAB into itab2 with index (sy-tabix +1)

if itab2-date itab-date = 1.

Read only

0 Likes
609

Yeah Atish,

but what i think is this is a standard requirement for the HR. where time booking is the most important thing. If it is not there in SAP we can suggest SAP to add this function module in SAP Package. First we need to confirm it whether it is there or not.

Thanks

Pritam

Read only

Former Member
0 Likes
609

Hi

i think there is no such function module.

But you can do it manually

First sort the internal table based on the date

then read the internal table based on your requirement

Regards,

Prasant

*reward all helpful points