Factory Calender in Select options

Hi,
I need to add the factory calender in Select Option. 
(I have already added f4_date function module for F4 help as Factory calender.)
Eg. If i select any holiday in the selection screen - need message for " HOLIDAY" like that..
:--  SELECT-OPTIONS: s_date  FOR sy-datum NO-EXTENSION.
Experts please help me.
Thanks.
Viji.

Vijay,
One option could be to perform validations in event - At SELECTION-SCREEN on s_date
Hope it helps!
Thanks,
VM.

Similar Messages

  • 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,
    Armin

    Hi,
    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

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to get calender in f4 helpfor select options in module pool (urgent)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi,
    Check this Example..
    Tables:Mara.
    Select-options:s_matnr for mara-matnr.
    Types:Begin of i_mara,
           matnr like mara-matnr,
           end of i_mara.
      data:it_mara type standard table of i_mara.
      At selection-screen on value-request for s_matnr-low.
      Select matnr from mara into table it_mara.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'MATNR'
        PVALKEY                = ' '
         DYNPPROG               = SY-REPID
         DYNPNR                 = SY-DYNNR
         DYNPROFIELD            = 'S_MATNR-LOW'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = IT_MARA
        FIELD_TAB              =
        RETURN_TAB             =
        DYNPFLD_MAPPING        =
       EXCEPTIONS
         PARAMETER_ERROR        = 1
         NO_VALUES_FOUND        = 2
         OTHERS                 = 3

  • Displaying Selection option values in header using alv-factory

    Hi all,
    I am using alv factory class 'CL_SALV_TABLE'.
    I want to display selection-option values on my header.
    I have creted grid using class 'CL_SALV_FORM_LAYOUT_GRID' and am displaying other values.
    But am facing problem in displaying selection option values.
    Any pointer on this will be GR8.
    Thanks & Regards.
    Yats.

    Hi,
    Use this sample code.
    form top_of_the_list_main  changing lv_grids type ref to cl_salv_table.
    *Creating instances of the clases
      data :     lv_grid   type ref to  cl_salv_table,
                 lv_header type ref to  cl_salv_form_element,
                 lv_layout type ref to  cl_salv_form_layout_grid.
      move lv_grids to lv_grid.
    *Creating the layout object
      create object lv_layout.
    *Setting the Header Text
      lv_layout->create_label(
                             row     = 1
                             column  = 1
                             text    = text-008 ).
      lv_header = lv_layout.
      lv_grid->set_top_of_list( lv_header ).
    endform.                    " TOP_OF_THE_LIST_MAIN
    Loop it and keep changing the row and colom..Pass the selection option to the text field.
    Regards
    Ansair

  • Factory calender transport- not allowing

    I have created a holiday calender and factory calender.
    I have assigned the holiday calender to factory calender.
    In the initial screen of factory calender, when i selected calender from the menu
    the transport option is greyed out.
    So i am not able to create transport request.
    Please sdvice how to solve this?
    Regards
    Govindarajan

    Hi,
    Its related to authorization,check with BASIS guys,they will help you.
    Refer this SAP note
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=86621
    Hope it helps

  • Lead time from catalog does not consider factory calender

    Hi,
    we are working with SRM 2.0 classic scenario. I have following problem:
    We take over lead time from a supplier catalog via OCI in EBP. This works but the lead time does not consider holidays and weekends. How can I activate the Factory Calender?
    Thanks Thomas

    Hello,
    I just sniff arround and found out that EBP 3.0  does not support factory calendar.
    You should use BBP_DOC_CHECK_BADI or BADI BBP_CATALOG_TRANSFER and call within this BADI the function modules requesting the factory calendar data via RFC on the backend.
    i.e.
    get the target system of the follow-on document            
        SELECT log_sys from BBP_DET_LOGSYS INTO wa_logsys-log_sys
        WHERE CATEGORY = ls_item-category.                       
        ENDSELECT.                                                                               
    read table T001WK                                          
        CALL FUNCTION 'META_READ_TABLE'                          
          EXPORTING                                              
            query_table    = 'T001W'                             
            logical_system = wa_logsys-log_sys                   
          TABLES                                                 
            options        = options                             
            fields         = fields                              
            data           = tabcont                             
          EXCEPTIONS                                             
            OTHERS         = 1.
    fill the internal table xt001w                         
        LOOP AT tabcont INTO la_tabcont.                     
          MOVE la_tabcont-content+3(4) TO la_xt001w-werks.   
          MOVE la_tabcont-content+61(2) TO la_xt001w-fabkl.  
          APPEND la_xt001w TO xt001w.                        
        ENDLOOP.                                             
        SORT xt001w BY werks.                                                                               
    get the fabric calendar related to the plant           
        READ TABLE xt001w INTO ma_XT001W                     
        with KEY werks = ls_item-BE_PLANT.                   
    check if delivery date is a working day                
        CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'          
          DESTINATION wa_logsys-log_sys                      
          EXPORTING                                          
            DATE                 = ls_item-DELIV_DATE        
            FACTORY_CALENDAR_ID  = ma_XT001W-fabkl           
          IMPORTING                                          
            WORKINGDAY_INDICATOR = W_IND.                                                                               
    get an error message if delivery date is not a working date             
        IF W_IND = '+'.                                                                               
    CLEAR ls_message.                                                                               
    ls_message-msgty   = 'E'.                                           
          ls_message-msgid   = 'ZBBP'.                                        
          ls_message-msgno   = 'xxx'.                                         
          ls_message-msgv1   = 'error message text, e.g. delivery date not    
    working date'.                                                            
          ls_message-item_guid = ls_item-guid. "assign message to item        
          APPEND ls_message TO et_messages.                                                                               
    ENDIF.                                                                               
    endloop.

  • Invalid factory calender error in creating subcontrating po

    hello all,
    during creation of subcontracting po,system shows the error message "invalid factory calender error".
    i have checked the assignment in oy05.seems ok.
    pls provide some input.
    regards
    sumit simran.

    Hi,
    Please check the path.
    IMG>Enterprise Structure>Definition>Logistics - General>Define, copy, delete, check plant-->Define Plant.
    Here you can find the which factory calender is assigned to your plant.
    Then go to  Tcode SCAL ,  select the Holiday calender and edit it . Double click on your holiday calender   and change it  i.e valid From year to To year. Go back , select the factory calender and edit it ,  give  valid From year to To year.
    Thanks.

  • Problem in Factory Calender

    Hi,
    When creating the sales order the system shows the messege" Date 05.02.2009 occurs after the end of factory calendar IN from plant X".
    So when i tried to change the validity period for factory calender IN to 2009, then the system again showing the messege "Please enter validity area between years 2007 - 2007"-The validity period specified for the factory calendar exceeds that of the selected public holiday calendar.
    So how can i change the Year in Factory Calender.
    Regards
    JYOTI

    Hi,
    under SAP Netweaver - General Setting - Maintain Calendar check which holday calendar is assigned to your factory calendar IN. In the secons step change the validity for your holiday calendar.

  • How to extend factory calender to a plant ?

    Hi Ranga:
    How to extend factory calender to a plant ? ( Tcode: SCAL, The calender is not client specific)
    I check marked US factory calender, where after can you tell how to extend factory calender to plant
    Note: I am using IDES ( International Demonstration & Education System)
    Thanks

    Hi Sandeep,
    you need to use the following path
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Here you need to assign the factory calendar. The assignment in work center will only applicable for capacity not for MRP and others.
    <b>For information how to create a factory calendar</b>
    Pl follow the steps
    1.Go to SCAL transaction
    2.there will be three options.
    Click first public holidays and go in change mode.
    Click create and create your holidays there and save.(Generally fixed date will be used in the pop up)
    3.Now click Holiday calendar and go in change mode.
    Click create and give holdiay cal id and description.
    Click assign public holiday and add your holidays one by one and save
    Now holiday cal is created.
    4.Now come out and choose fact calendar and go in change mode
    Click create and give Factory calendar id and description, and validity period.
    Give the holiday calendar ID.
    If you want to give special rule like any of the specific date/ day is the holiday or work day (which is different from holiday calendar you can define)
    and save.
    5.You have to assign factory calendar to PLANT
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Choose your plant and go to details-
    You have to define factory calendar there
    Hope this will help you
    Regards
    Ranga

  • Consideration of network activity factory calender

    Hi,
    I am facing problem regarding considering of  factory calendar.
    scenario: we are assigning the personnel nos in person assignment tab in internal activity. confirmation of activities will be done through CATS. at the time of confirmation it is considering the calender given in work scheduling in HR master data rather considering the factory calendar of network activity.
    i require how to select the factory calendar of network activity rather selecting the calendar from work scheduling of HR data.
    With Regards
    Prasanth.N

    Hi Prashant,
    This is solution for PS without HR integration..............Please do the following steps:
    1.  Create a person responsible using OPS6
    2.  Assign a desired factory calender in the particular activity at internal tab of the activity.
    3.  Then Plan your work and save and release.
    4.  Then do the confirmation in CATS
    Hope it will be clear now.  Appreciate if it is useful
    Thanks and Regards
    Vetrivelan

  • Transport for SCAL 'factory calender' or administer SCAL in prod system?

    Hi togehther,
    we could change the factory calender in the development system and afterwords transport this changes by using a transport request and STMS.
    But our Consultants recommend not to transport these changes. They recommend to open the prod System with SCC4 to open status (Changes are allowed) and then make the changes in the prod system.
    I think, this is the wrong way. How do you solve this probem?
    Carsten Schulz
    Teamlead SAP-Basis

    Hi ,
    You are consultants are right because SAP clear tells that "You cannot transport individual public holidays or calendars. You can only transport calendar data in its entirety. When you do this, all public holidays, public holiday and factory calendars existing in the target system are deleted".
    As from your mail i understood that in development system,all users have access to to SCAL transaction,if some users have craeted or changed the factory calendar changes.all this changes get in to trnsport request which in turn affect the calendars in production system.
    Thats Y in some industries,Consultants will do the changes through fire fighter ID directly in production or in some industries for development system SCAL authorization will not be given to all.so that as Juregn pointed development and production system will be in SYnc and you can do transport.
    In this situation you can try one more option,after generating the transport request go to SE01 ,go to change mode and edit the request (double click on the request).
    then go to obects tab you will see lot of tables related to factory calendar.check each tables in SE16 for the calendar you made the changes.if entries are there retain the table else delete the table.
    If entries are there,then double click on the table,you will get the table key.in that put calendar id if there is only one entry,if more entries are ther e put calendar id suffix star.and save.
    Check this solution first intest system and ensure whether it is trnsaporting only the particular changes

  • Factory Calender assigned to Plant & resource/Work center

    Hello,
    If we have assigned the Factory Calender "XX" which has 5 working day(Monday to Friday) with no Special rules & no Holiday Calender to Plant & "YY" Factory Calender to Work center which has 365 days working with no no Special rules & no Holiday Calender.Now, when MRP creates Planned Orders for FERT material It did not create it on Weekends(i.e. on Saturday & Sunday) though the factory calender assigned is  "YY" (which has 365 days working )in work center.Why?
    Actually it should have consider the Work center assigned Calender for Capacity planning & Schedulling purpose.
    If I assign the Factory Calender "YY"  to plant then it will create the procurement proposal on weekends which is not acceptable to external procurement MRP Controller as plant office works only 5 days.
    Please guide.

    Dear
    Goto CR02/03 , select the Capacity tabe "hat" and u will fined there is tabe "Available Capacity " .U have to maintain the Active version ok.
    Basically , the active version is used for scheduling and capacity planning. If you have not entered an active version, the standard available capacity is used, even if an available capacity version has been entered.
    At the same u have to check out the below requirement :
    you must maintain the following data in the capacity header:
    1.The grouping, that defines which shift sequences and shift definitions can be used to maintain the available capacity
    2.The number of the active version of available capacity
    3.The base unit of measure of the available capacity
    3.The factory calendar, that is the basis of the available capacity-Workcentre
    If you do not enter a factory calendar , the system uses the default calendar for the plant.
    I hope in your case , u have the shift sequence of 5 work days for the calander you have assinged in work centre .
    Please check all those n come back .
    Reward points if usefull.
    Regards
    Jia

  • Time Settings in Factory Calender

    Dear All,
    Where to set the working hours for a factory calender? Tr code SCAL shows only the year , month and day. Where to set the time ?
    Thanks in advance.
    Regards,
    Niketan

    Hi !
    In specified transaction you can set the starting and finish times for your shifts.
    Once inside the transaction of 'Maintain working hours', click on 'Shift definitions'.
    In the first column give some identificatin for the shift, in next column give some text for the shift. In the third & fourth column give some start and end date for the shift(for ex. 01.01.2007 & 31.12.2007.
    Then in the fifth & sixth column you can give start and end times for the shift. You the option of following a 12Hrs or a 24hrs format in this.
    This <b>will</b> serve your purpose.
    Reward if helpful.
    Regards,
    PATHIK

  • Factory Calender and Planning Calenderr

    Hi,
    i want to plan my production for 7days a week. and want to plan for Raw materials also 7 days a week.
    but here my requirement is that i dont want to receive raw materials on weekends. i mean no one will be in Factory to receive raw materials on Weekends.
    If i maintain Planning Calender for 7 days and assign to Raw materials in MRP View 2 and Factory Calender for 5 days can i achieve this requirement?
    for in house production i have to plan for 7 days a week. (Scheduling and Capacity Calculation)
    i dont want to receive rawmaterils in weekends.
    Please suggest.
    Thanks
    Nag

    Dear
    Based on your business requirement ,  you should have the following set up :
    1.One Factory Calender  with Work Days Monday-to-Friday  Let say FC1 .This will be used on all the organisational level starting from Materials Planning to Sales  .But will not be assinge to Capacity Requirement Planning Purpose or Any Production Activity in Work Centre .
    2.You should have one more Factory Calander with work Days Monday to Monday ( 7 days week ) with some special rule like Plan Shutdown Days , Breakdown Maintainnece  etc  and this should be assinged to  all the work centres -CR02-Capacity Tab -Capacity Header -Factory Calader ID -Let say it is FC2.
    You need to ceate Calander in OP03/SCAL .It does nto have any transport and  it will be a Cleinet level changes  which requires proper approval .Please rememeber , you need to assing only FC1 to Plant assingement in OP03 where as FC2 will be asisnged only in Work Centre level  .
    Steps : Goto -OP03
      1.Identify all those Public Holidays frist with Fixed or moveable as per business requirement
      2.Goto Holiday Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Add all those holidays as per Public holidays as applicable in your business  with proper valididty  and finally SAVE
    3.Goto Factory Calander -Hit the pencil -Hit Create option -Enter ID , Description , Valid To/From Year ( shd be 20 yrs differnce )
       Asisng Hioliday Calander . In case of FC2-Work centre Calander , here you can hit the Special Rules .Include Special Activity like Plan Shut down of factory with Validity  etc and SAVE .
    4.Come back to OP03 main screen -Assing the factory Calender in plant .
    5.Goto -CR02-Capacity -Capacity Header -Available Capacity Header -Factory Calander-Assing FC2
    I do not  think you should have planning calander seperately if you do not have any specific reason .
    Hope it helps
    Regards
    JH

Maybe you are looking for

  • Putting more than 1 movie into iDVD

    This may seem a stupid question but I have made one movie with English subtitles in it for my company, what I would like to do now is copy the original iMovie and insert say German and French subtitles so I would end up with maybe 3 or 4 iMovies (eac

  • What laptop to get for CS5 or CS6...

    Increasingly there appear questions about which laptop to get for CS5/6. First, the question is why a laptop and why not a desktop? Laptops are always at least 2 to 3 times slower than a desktop, they are significantly more expensive than a desktop w

  • Runtime Error in Import Manager

    Hello, when I try to import data using Import Manager it brakes up showing the message "Runtime Error! ....path to application... R6025 - pure virtual function call". I'm running MDM 5.5 SP02 Release 5.5.24.06 and also tried to use the Import Manager

  • Changes dont take effect in the view

    Hi, I am modifying the UI-Table which is editable. What has to be done to show the current new content of the table on the view. There is a calculation and the result will be inserted into the cost column. Cleary how can I see that the changes take e

  • Routine for GR Value as at postig date

    HI all, I have problem in 2lis_02_scl transformation Routine in 0pur_c01 cube where i am using a routine for GR as at posting date (0GR_Val_pd) KF. But problem is that I am using routine in BI 7.0 version.but routine is working as GR Value as shown i