Getting factory calender weekly duration timings
hi all,
I have a scenario to get the factory calender weeky avaialable(working) timings like
MONDAY - 8:00 TO 17:00 etc.,
how to get these values is there any function module associate to get those value by passing date rule id.
Appreciate ur help
thanks
viswa
check below code...
DATA: W_FACTORYDATE LIKE SCAL-FACDATE.
Convert Delivery Date to Factory Date
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
CORRECT_OPTION = '-'
DATE = I_EINDT
FACTORY_CALENDAR_ID = I_FABKL
IMPORTING
DATE = E_EINDT
FACTORYDATE = W_FACTORYDATE
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.
Find the Lower Limit of Delivery date
E_LOWER = E_EINDT.
IF I_VINT1 NE 0.
W_FACTORYDATE = W_FACTORYDATE - I_VINT1.
CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
EXPORTING
FACTORYDATE = W_FACTORYDATE
FACTORY_CALENDAR_ID = I_FABKL
IMPORTING
DATE = E_LOWER
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
FACTORYDATE_AFTER_RANGE = 2
FACTORYDATE_BEFORE_RANGE = 3
FACTORYDATE_INVALID = 4
FACTORY_CALENDAR_ID_MISSING = 5
FACTORY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
ENDIF.
Find the Upper Limit of Delivery date
E_UPPER = E_EINDT.
IF I_VINT2 NE 0.
W_FACTORYDATE = W_FACTORYDATE + I_VINT1 + I_VINT2.
CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
EXPORTING
FACTORYDATE = W_FACTORYDATE
FACTORY_CALENDAR_ID = I_FABKL
IMPORTING
DATE = E_UPPER
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
FACTORYDATE_AFTER_RANGE = 2
FACTORYDATE_BEFORE_RANGE = 3
FACTORYDATE_INVALID = 4
FACTORY_CALENDAR_ID_MISSING = 5
FACTORY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
ENDIF.
Similar Messages
-
How to get calender week (200733) from a date (20071002)
Hi All,
Could you please suggest a method or function module to get the calender week of a date.
Thanks and best regards,
Bindiyatry function DATE_GET_WEEK
Regards,
Dirk. -
Factory Calender, Where Can I see it?
Hi Experts,
Pls. let me know that, Where Can I see the Factory Calender?
thanqHi srinivas,
You can use FM FACTORY_CALENDAR_GET to get factory calender.
<REMOVED BY MODERATOR>
Thanks,
Srikanth.A
Edited by: Alvaro Tejada Galindo on Apr 24, 2008 10:49 AM -
ABAP HR- table for factory calender id at employee level..
Hi,
i have a requirement in which i need to retrieve Factory calender ID against holiday calender ID at employee level.
I am able to retrieve Holiday calender ID for an employee.
Now i need a table to where i can get factory calender for an employee against holiday calender Id.
Appreciate your help!
Regards
AleriaHi Aleria
Pass the holiday calendar retrieved to the table TFACD to get the Factory Calendar.
Regards
Bala -
How to get past date based on duration and factory calender?
Hi All,
when i enter the duration ,i want to get the past date based on factory calender w.r.t current date
i.e if current date is 26th jun and duration is 10 , the past date should be 12th jun (which should exclude all holidays and weekends).
Thanks
VasumathiHi,
Please check this FM: I think this will resolve ur issue.
END_TIME_DETERMINE
Cheers,
Vijay. -
Factory calender importance in Sales Organisation.
Hi Experts,
Hope you all doing Gr8t.
Please let me know the importance of specifying Factory calender while defining the Sales Orgination.
Thanks & Regards,
Smithun.Hi
Factory calendar specify the work days at the customer's site .These calendars are used to determine when a delivery must take place in order for it to reach the customer's site on a work day when it can be received. We also use the factory calendar in consolidated invoicing. That is, if we specify that only one day a week is a working day for our customer ,the billing documents are only to be created for that one day each week, causing delivery documents to be consolidated into one billing document.
You maintain the factory calendar in IMG in T code SCAL and assign the factory calendar with plant and also sales org in Img while defining the plant in the Enterprise structure .If you donu2019t maintain it and make the standard order you will get an error-"Factory calendar missing or error in factory calendar".
Factory Calendar decides the holidays for the plant.
Sales order flow to production order and based on the factory calendar material availability will be confirmed to the customer.
Production planning/Scheduling will happen based on Factory Calendar
Regards
Raja -
Activities happening on holidays even though th factory calender is maintai
hi all,
we are creating a sales document
the factory calender assigned to the plant and shipping point are 5 day week calenders
but the activities like loading date, goods issue date are falling on weekends i.e. saturday and sunday.
in the calender weekends are specified as holidays
thanks in advance for help.
hariniHi Harani,
check the assignment of factory calender to the Shipping point , sales organisation in enterprise structure ,
assign the relevant calender to get the correct dates
Hope this helps
Thanks
Akasha -
Calculation of Factory Calender
Hello Gurus,
I am working on DRP(Distribution Resource Planning). My problem is,
I need to add some days to the current date and get the resulatant date in factory calender.
Ex: Current date - 07/20/2009
Days: 8
Resultant date = current Date + Days
= 07/30/2009 (This is excluding week ends).
Basically date needs to be calculated w.r.t factory calender(excluding week ends and holidays defined in factory calender).
Could someone let me know how to acheive this?
Thanks in advance!!!!Use this function module.
BKK_ADD_WORKINGDAY
Hope this will solve your problem. -
How to define a new factory calender?
Hi guys,
I want to have a factory calender that I can use for scheduling batch jobs to run each last sunday in the month. Such factory calender doesn't seem to exist in the system and I'm wondering how I could create it?! Is there a transaction that I can use to create a new factory calender?
BR,
ArminHi,
1. In TCode: SCAL, initially check the public holidays existing in the system, whether those public holidays are sufficient or not, if not create your own public holidays.
2. Then Create public holiday calender and attach your public holidays to this public holiday calender.
3. Then create your own factory calender and attach your public holiday calender to the factory calender and select the working days in a week and then save.
The above are the steps involved in creating a new factory calender.
Hope this helps.
Thanks,
Viswanath -
Tables for plant , factory calender & calender validity period
In which tables we find the data of plant , facory calender & calender validity period.If anybody knows please tell.
I want the combination of plant , factory calender & validity period tables to extract the data.In TFACD table we don't get plant & validity details to know exactly what was done during configuration.
-
Factory Calender - Help Needed
I am getting this messges when i try and transaction MICN...PID for cycle count...
The date 14.07.2009 comes after the end of the validity period of the factory calendar that is assigned to the given plant
Could someone tell me how i fix thisSee if your factory calender is properly maintained in 'SCAL' tcode.
If it is maintained properly, see if that is assigned to your plant in 'OX10' tcode. If this doesn't solve your issue, tell the detailed error message. -
Date is not Defined in Factory Calender
Dear all,
We are facing some issue while releasing Process order. It states that Date is not defined in factory calender. and it throws out dates of for particular process order from 21.05.2014 to 15.07.2017.
Please check the attached screen shot & revert your thoughts.
Thanks in advance.I have found the issue. Actually operation quantities in the phases in the recipe was maintained improperly. Hence the charge quantity was getting multiplied with huge number hence resources allocated to them was considering that huge amt of quantity to be processed on it. Hence dates were coming the ranges of period 2014.
Deep Dave.
However thanks for your all prompt response. -
Invalid Factory Calender error
Hello gurus,
While making a subcontracting PO, the following error is coming "Invalid factory error or error in the factory calender"
I have checked the plant settings & have put Factory calender IN for the plant. Still the error is coming. How to resolve this?
Regards
Prashant>
prashantjalgi wrote:
> The validity is from 1996 to 2010.
>
> If I try to extend it to 2011, the system is not allowing.
>
> The same error is coming when the validity is 1996 to 2010.
Why is it not allowing? what error do you get when trying?
Calendar maintenance is done thru CUNI, and cusotmizing is usually done in development clients. -
Invalid factory calender or error in factory calender
Hi,
invalid factory calender or error in factory calender 26.05.2008
I'm getting this error during STO in VL10B,
I've checked the fac. cal in t-code OX10 it is
K1 - genaral calendar for comp'y
But in shipping point of that plant Fac. calender is IN- India
Should i've to change fac. calender as k1 in shipping point of that plant.
whtr this can i directly change in production server or can i change in dev. server and transport the request to prod. (which is perferrible).
if this is not right, Kidly guide me the right way to resolve thisHi
Please change the Factory calendar for the Shipping point in DEV & then transport the same to QA & PROD.
Thanks & Regards
Kishore -
Doubt regarding : factory calender - reg
During maintenance off we need to change the factory calender to holidays for production shut down purpose .
At the same time warehouse will work through which billing and other things happen.
if i set the days as holidays in factory calender ware hose is not able to bill during these days .
if i am setting as working days production planning is getting effected.
we can not use two different calenders as we can assign only one calender to a plant
what shall we do?
waiting for positive reply
regards
madhu.During maintenance off we need to change the factory calender to holidays for production shut down purpose .
At the same time warehouse will work through which billing and other things happen.
if i set the days as holidays in factory calender ware hose is not able to bill during these days .
if i am setting as working days production planning is getting effected.
we can not use two different calenders as we can assign only one calender to a plant
what shall we do?
waiting for positive reply
regards
madhu.
Maybe you are looking for
-
How can I send a send a reminder text message of an appointment in calendars?
I would like to send a text message to family members to remind them of appointments that I have marked in my calendar. Is there a way I can do this or would I have to do so using an app?
-
Linksys wireless slows gigabit-connected Mac
I have a gigabit-ethernet LAN connecting from my PowerMac running OSX 10.4.11 to a Dell XPS, a Mac 7600, and HP Laserjet 4200 printer. My cable modem connects to my PowerMac via built-in GBEthernet. IPNetRouter is normally my software router/firewall
-
Only 1 spot color of Linked 2-channel Photoshop image appears in acrobat 9.0
I just installed CS 4 design premium. I have a 2-color business package that was created in Illustrator CS2 with 2-color Photoshop links (spot color multichannel files saved as Photoshop DCS 2.0/eps). When working before in CS 2 my spot color links v
-
Adober Reader 11.0.2 printing problems
Our students cann not choose another printer than Adobe pdf from printing dialog in Adobe Reader 11.0.2. The default printer is a network printer from HP connected to our print server and all other programs are using this default printer without any
-
Can you edit muse cc in dreamweaver
Hi Can you edit Muse CC in Dreamweaver ?