Application Development 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: 

Minus the 5 days from current date using factory calendar

Former Member
0 Kudos
532

Hi,

i want to minus the 5 days from current date using factory calendar.

Please provide me any function module.

regards,

Suresh

5 REPLIES 5

former_member233090
Active Contributor
0 Kudos
89

Hi,

These are the function modules for holidays and factory calendar, hope it will help you out

Holidays and Factory Calendar

HOLIDAY_GET Gives holidays for a country.It has two flags Freeday(for weekends)and Holiday(for public holidays).

FACTORYDATE_CONVERT_TO_DATE returns the calendar date for the factory date and the factory calendar passed

DATE_CONVERT_TO_FACTORYDATE returns the factory date for the date and factory calendar passed

cheers,

Bhavana

former_member196079
Active Contributor
0 Kudos
89

Hi

check this

you will find all the FM for data calculation

http://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations

regards

marco

Former Member
0 Kudos
89

Hi Suresh,

Please see the link below.

[add or subtract dates, months,years to date|http://wiki.sdn.sap.com/wiki/display/ABAP/addorsubtractdates%2Cmonths%2Cyearstodate]

Regards,

Md Ziauddin

Former Member
0 Kudos
89

Hi,

use this one.

FACTORYDATE_CONVERT_TO_DATE

regards,

Vivek

Former Member
0 Kudos
89

Moderator message - Please see before posting - post locked (date question) Rob