How to check the previous working date of a working date?

Question: Dear Experts,

When developing an ABAP program for FI, it is required to check some data should be processed when payment date - 1 is true.

However, we need to make sure that the payment data - 1 must be a valid working date in factory calendar.

How can I code in ABAP to check and find this valid working date?

Thanks a lot

Green Green

Answer:
Call the DATE_CONVERT_TO_FACTORYDATE with date, calendar and correct option '-'. If it returns a different date - the date with which it's called is not a working day. The date returned is.
_________________
ilya

More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com
Copyright ?2007 - 2008 www.jt77.com