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 Issue

Former Member
0 Likes
306

I have a Funtion module name as HR_AUPBS_MONTH_DAY ,to which i am giving input in the form as follows:

From date: 12.09.2006

To Date : 06.10.2006

And it is returning the days as 24, but when i m using this funtiocn module in scripts by perform statement its not giving me the exact result . Even i tried this funcion module in the individual report progm, even there also it is taking input as 12092006 only not the periods in between.

pls let me knw the solution.

Thanks in advance ramada

2 REPLIES 2
Read only

Former Member
0 Likes
271

Hi

Seems to be obvious but did u try 20060912 to 20061006 ?

Regards,

Erwan

Read only

Former Member
0 Likes
271

You can use the FM 'DAYS_BETWEEN_TWO_DATES'.

If u test the FM HR_AUPBS_MONTH_DAY in SE37 u have to give the date in From date: 12.09.2006

To Date : 06.10.2006

But if u call the FM in program it should be

From date: 20060912 and To date: 20061006, Because it is of type D.

Regards,

PRakash.