2007 May 02 7:57 AM
Hi all
I want to get the no.of days if I will pass months.
for examples if I pass 18 months, it has to calculate how many days for 18 months calculation starts from the date which I give. for example if I give 02.05.2007 as date and no.of months 18, it has to give either no.of days or date after adding 18 months.
is there any function modules to get above result or any method is there in the SAP.
Awaiting for your reply
Regards
Praveen
Hi all
I want to get the no.of days if I will pass months.
for examples if I pass 18 months, it has to calculate how many days for 18 months calculation starts from the date which I give. for example if I give 02.05.2007 as date and no.of months 18, it has to give either no.of days or date after adding 18 months.
is there any function modules to get above result or any method is there in the SAP.
Awaiting for your reply
Regards
Praveen
2007 May 02 7:59 AM
try this fm
HR_SGPBS_YRS_MTHS_DAYS-->no of days
to add dates
'RP_CALC_DATE_IN_INTERVAL'
Regards
Prabhu
2007 May 02 8:00 AM
CALL FUNCTION 'RE_ADD_MONTH_TO_DATE'
EXPORTING
months = 1
olddate = olddate
IMPORTING
newdate = newdate
EXCEPTIONS
OTHERS = 0.
2007 May 02 8:02 AM
2007 May 02 8:03 AM
2007 May 02 8:03 AM
Hi,
Just check this if it helps you:
parameters: p_date1 like sy-datum,
p_date2 like sy-datum.
data: diff_days(10) type c.
diff_days = p_date2 - p_date1.
write:/ diff_days,'days'.
Regards,
Varun.
2007 May 02 8:26 AM
HI Praveen,
why u not check out this link i think this will help you to sort out all your requirements.
http://www.geocities.com/victorav15/sapr3/abapfun.html
Please award graciously if found useful.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |