<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Factory Calender Determination in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933744#M941645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CONVERT_TO_FACTORYDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the returned date = to the sent date, it is a working day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: senddt TYPE d VALUE '20080601',  "&amp;lt;== this is Sunday
      recvdt TYPE d.

CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
     EXPORTING
          correct_option      = '+'
          date                = senddt
          factory_calendar_id = 'US'
     IMPORTING
          date                = recvdt.
*   FACTORYDATE                        =
*   WORKINGDAY_INDICATOR               =
* EXCEPTIONS
*   CALENDAR_BUFFER_NOT_LOADABLE       = 1
*   CORRECT_OPTION_INVALID             = 2
*   DATE_AFTER_RANGE                   = 3
*   DATE_BEFORE_RANGE                  = 4
*   DATE_INVALID                       = 5
*   FACTORY_CALENDAR_NOT_FOUND         = 6
*   OTHERS                             = 7
.
IF senddt NE recvdt.
  WRITE:/ senddt, 'is not a working day'.
ELSE.
  WRITE:/ senddt, 'is a working day'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 18:32:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T18:32:17Z</dc:date>
    <item>
      <title>Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933740#M941641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone tell me how can we determine if a particular day is a working day or not, based on the Factory Calender?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.Its urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933740#M941641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933741#M941642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapab016.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapab016.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the above link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933741#M941642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933742#M941643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shashi,&lt;/P&gt;&lt;P&gt;Use function module: DATE_CHECK_WORKINGDAY&lt;/P&gt;&lt;P&gt;pass date and factory calender ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933742#M941643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933743#M941644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Use function module GET_DATE_FROM_CALID&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933743#M941644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933744#M941645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CONVERT_TO_FACTORYDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the returned date = to the sent date, it is a working day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: senddt TYPE d VALUE '20080601',  "&amp;lt;== this is Sunday
      recvdt TYPE d.

CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
     EXPORTING
          correct_option      = '+'
          date                = senddt
          factory_calendar_id = 'US'
     IMPORTING
          date                = recvdt.
*   FACTORYDATE                        =
*   WORKINGDAY_INDICATOR               =
* EXCEPTIONS
*   CALENDAR_BUFFER_NOT_LOADABLE       = 1
*   CORRECT_OPTION_INVALID             = 2
*   DATE_AFTER_RANGE                   = 3
*   DATE_BEFORE_RANGE                  = 4
*   DATE_INVALID                       = 5
*   FACTORY_CALENDAR_NOT_FOUND         = 6
*   OTHERS                             = 7
.
IF senddt NE recvdt.
  WRITE:/ senddt, 'is not a working day'.
ELSE.
  WRITE:/ senddt, 'is a working day'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933744#M941645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933745#M941646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to determine the Factory Calender for a Shipping Point in a Delivery.&lt;/P&gt;&lt;P&gt;How can we do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933745#M941646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933746#M941647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Based on Delivery number you can get factory calender from table LIKP.&lt;/P&gt;&lt;P&gt;KNFAK - Customer factory calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick this and use the function module to get working day or determine working day or convert to working day. You can search all these function modules in SE37 by doing F4 on search term - star working star day star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should explore ABAP first before putting question on SDN for every doubt you have. You should alsywas check all the fields in the tables you are using. Most of the time you will get all the required fields in the same or corresponding tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933746#M941647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Factory Calender Determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933747#M941648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried that field and saw that its blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats the reason I was trying to ask questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calender-determination/m-p/3933747#M941648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T20:15:25Z</dc:date>
    </item>
  </channel>
</rss>

