Plant Calendar into SAP

We would like to configure the plant calendar for holidays, etc so
that when MRP runs and we do shipping/receiving it works around those
days automatically.
Please suggest what configuration we need to do

Hi,
You can do it by creating (SCAL)and assiging the Calender to the Plant.
I can also suggest you to use the planning calender which is specifically use for the Manufacturing scenaro.
Planning calendar is use at material level and you can assign this in MRP2 view along with lot size procedure (period lot size according to planning calander PK). By doing this procurement proposals will be created according to the periods defined in the planning calendar.
Create one Planning calendar in MD25.
Maintain Lot size as PK (MRP 1 view) and Planning calendar(MRP 2 view) in material master.
After MRP, system will group all the requirements in each period and creates PR according to the planning calender.
Also check the below link for the better understanding of planning calender
[Factory Calender and Planning Calenderr;
Check and revert.
Thanks
Hrishi

Similar Messages

  • How to maintain TFACS table (Factory calendar) into SAP BI

    Hi,
    I deal with a daily stock infocube and I would like to set a flag when the warehouse doesn't work (on holiday).
    to do this, I would like to use the factory calendar (TFACS), and I have 2 questions:
    1) How to maintain the TFACS table into SAP BI ?
    2) How to use the TFACS data into SAP BI ? In other words, How to convert the TFACS data values in date ?
    Thx.
    Radj.

    1.
    rsa1(source-systems) --> right-click on the source system you load from --> transfer global settings --> flag 'factory calendar' and 'rebuild' or 'update tables'
    2.
    use function module DATE_CONVERT_TO_FACTORYDATE.
    it returns workingday_indicator (initial if it's a worling day) that you can use as a flag, or it also returns the next working day.
    you can use this function module in the transformation in the field routine of the flag...i think this is the best option.
    M.

  • Insert into sap r/3 table

    hi,guruvulu
    this is the program...............to insert the data into sap r/3 table
    but record is not inserting....any commit i have to write in my program?
    Created on Feb 20, 2007
    TODO To change the template for this generated file go to
    Window - Preferences - Java - Code Style - Code Templates
    package comm;
    @author sapusr006
    TODO To change the template for this generated type comment go to
    Window - Preferences - Java - Code Style - Code Templates
    Example2.java
    Property of SAP AG, Walldorf
    (c) Copyright SAP AG, Walldorf, 2000-2005.
    All rights reserved.
    //import java.sql.Connection;
    //import java.sql.PreparedStatement;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IRepository;
    import com.sap.mw.jco.JCO;
    @version 1.0
    @author  SAP AG, Walldorf
    public class Fm {
      // The MySAP.com system we gonna be using
         static final String SID = "R3";
    // static String query="insert into BAPI_COMPANYCODE_GETLIST values(?,?)";
      // The repository we will be using
      IRepository repository;
                                 //ESTABLISHING A CONNECTION TO SAP
      public Fm()
        try {
          JCO.addClientPool( SID,            // Alias for this pool
                             10,             // Max. number of connections
                             "800",          // SAP client
                             "RFCTEST",      // userid
                             "welcome",      // password
                             "EN",           // language
                             "10.10.88.170", // host name
                             "01" );
           //   Create a new repository
          //    The repository caches the function and structure definitions
          //    to be used for all calls to the system SID. The creation of
          //    redundant instances cause performance and memory waste.
            repository = JCO.createRepository("MYRepository", SID);
        catch (JCO.Exception ex) {
          System.out.println("Caught an exception: \n" + ex);
                               // RETRIEVES AND DISPLAY A  ZHR INFOTYPE OPERATION
      public void salesOrders()
        JCO.Client client = null;
        try {
          // Get a function template from the repository
             //System.out.println("goes to sales order");
          IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZHR_INFOTYPE_OPERATION");
          System.out.println("hai");
               if(ftemplate != null) {
            // Create a function from the template
           JCO.Function function = ftemplate.getFunction();
           JCO.ParameterList paralist=function.getImportParameterList();
                             paralist.setValue("0000000011","PERNR");
                             paralist.setValue("UPD","ACTIO");
                             paralist.setValue("A","TCLAS");
                             System.out.println("hello");
                             paralist.setValue("20061215","BEGDA");
                             System.out.println("hello");
                             paralist.setValue("20061215","ENDDA");
                             paralist.setValue("1","OBJPS");
                             paralist.setValue("LTA","SUBTY");
              System.out.println("SETTING VALUES");
            // Get a client from the pool
              client = JCO.getClient(SID);
              System.out.println("goes to sales order");
              //function.getImportParameterList().setValue("QUERY_TABLE","ZHRJ2EETEST");
                //EXECUTING THE FUNCTION
               client.execute(function);
              System.out.println("after exeucting the function");
                 // NO OF IMPORT PARAMS IT DISPLAY
                             //STRUCTURE
                              JCO.Structure returnStructure =
                                                                              function.getExportParameterList().getStructure("RETURN");
                              String structure=returnStructure.toString();
                              System.out.println(structure);
                                                                                    JCO.Table sales_orders = function.getTableParameterList().getTable("PROPOSED_VALUES");
                             System.out.println("after function");
                               System.out.println("proposed111"+sales_orders.getNumRows());
                                                                                    sales_orders.firstRow();
                                    sales_orders.appendRows(3);
                                 sales_orders.setValue("0582","INFTY");
                                 sales_orders.setValue("P0582-AMTEX","FNAME");
                                  sales_orders.setValue("200.00","FVAL");
                                  sales_orders.nextRow();
                                  sales_orders.setValue("0582","INFTY");
                                  sales_orders.setValue("P0582-JBGDT","FNAME");
                                  sales_orders.setValue("20061215","FVAL");
                                  sales_orders.nextRow();
                                  sales_orders.setValue("0582","INFTY");
                                  sales_orders.setValue("P0582-JENDT","FNAME");
                                  sales_orders.setValue("20061215","FVAL");
                                  System.out.println("proposed222"+sales_orders.getNumRows());
                                                                                    /*for (int i = 0; i <sales_orders.getNumRows(); i++) {
                                  sales_orders.setRow(i);
                                  System.out.println(sales_orders.getString("INFTY"));
                     JCO.Table sales_orders1 = function.getTableParameterList().getTable("MODIFIED_KEYS");
                             System.out.println("modified"+sales_orders1.getNumRows());
                                                                                    sales_orders1.setRow(1);
                               sales_orders1.appendRows(1);
                               sales_orders1.setValue("0000000011","PERNR");
                               sales_orders1.setValue("0582","INFTY");
                               sales_orders1.setValue("LTA","SUBTY");
                               sales_orders1.setValue("1","OBJPS");
                               sales_orders1.setValue("20061215","BEGDA");
                               sales_orders1.setValue("20061215","ENDDA");
                             System.out.println("modified222"+sales_orders1.getNumRows());
                                                                                    System.out.println("execute222"+sales_orders1.getNumRows());
                                                                                    for (int i = 0; i <sales_orders1.getNumRows(); i++) {
                                  sales_orders.setRow(i);
                                  System.out.println("hia"+sales_orders1.getString("SUBTY"));
                                                                                    System.out.println("NO OF ROWS ARE:---"+ sales_orders.getNumRows());
               String fieldName[]=new String[sales_orders.getFieldCount()];
               System.out.println("THE COLUMNS IN THE TABLE ARE:--"+sales_orders.getFieldCount());
               // sales_orders.firstRow();
               //COLUMNS NAMES
               System.out.println(fieldName.length);
               for (int iCtrst = 0;iCtrst < sales_orders1.getFieldCount();iCtrst++) {
                        fieldName[iCtrst] = sales_orders1.getName(iCtrst);
                        System.out.println(fieldName[iCtrst]);
            if (sales_orders.getNumRows() > 0) {
              // Loop over all rows
               do {
                     System.out.println("----
                     //int r=1;
                // Loop over all columns in the current row
                for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements();)
                       JCO.Field field = e.nextField();
                       String compcode=field.getString();
                       //pst.setString(r,compcode);
                       System.out.println(field.getName() + ":\t" + field.getString());
                      // r++;
                   }//for
                    // i=pst.executeUpdate();
                } while(sales_orders.nextRow());
            else {
              System.out.println("No results found");
            if (sales_orders1.getNumRows() > 0) {
                // Loop over all rows
                 do {
                       System.out.println("----
                       //int r=1;
                  // Loop over all columns in the current row
                  for (JCO.FieldIterator e = sales_orders1.fields(); e.hasMoreElements();)
                             JCO.Field field1 = e.nextField();
                         //String compcode=field1.getString();
                         //pst.setString(r,compcode);
                         System.out.println(field1.getName() + ":\t" + field1.getString());
                        // r++;
                                                                                    }//for
                      // i=pst.executeUpdate();
                  } while(sales_orders1.nextRow());
              else {
                System.out.println("No results found");
               System.out.println("modified"+sales_orders1.getNumRows());
               System.out.println("modified"+sales_orders.getNumRows());
            //if
           /* if(i>=1)
                 System.out.println("\t\t\tUpdated ORACLE successfully");
          else {
            System.out.println("FUNCTION MODULE not found in backend system.");
          }//if
        catch (JCO.AbapException ex) {
          System.out.println("Caught an exception: \n" + ex);
        }catch(Exception en){en.printStackTrace();}
        finally {
                   JCO.releaseClient(client);
      protected void cleanUp() {
          JCO.removeClientPool(SID);
      public static void main(String[] argv)
        Fm e=new Fm();
       // e.systemInfo();
        e.salesOrders();
        e.cleanUp();
    output:
    TABLE: MODIFIED_KEYS
    TABLE: PROPOSED_VALUES
    IMPORT         ACTIO
    IMPORT         BEGDA
    IMPORT         DIALOG_MODE
    IMPORT         ENDDA
    IMPORT         LUW_MODE
    IMPORT         MASSN
    IMPORT         NO_ENQUEUE
    IMPORT         NO_EXISTENCE_CHECK
    IMPORT         OBJPS
    IMPORT         PERNR
    IMPORT         PERSG
    IMPORT         PERSK
    IMPORT         PLANS
    IMPORT         SEQNR
    IMPORT         SPRPS
    IMPORT         SUBTY
    IMPORT         TCLAS
    IMPORT         WERKS
    EXPORT          HR_RETURN
    EXPORT          RETURN
    EXPORT          RETURN1
    appending
    NO OF ROWS ARE:---3
    THE COLUMNS IN THE TABLE ARE:--4
    INFTY:     0582
    FNAME:     P0582-AMTEX
    FVAL:     200.00
    SEQNR:     00
    INFTY:     0582
    FNAME:     P0582-JBGDT
    FVAL:     20061215
    SEQNR:     00
    INFTY:     0582
    FNAME:     P0582-JENDT
    FVAL:     20061215
    SEQNR:     00
    PERNR:     00000011
    INFTY:     0582
    SUBTY:     LTA
    OBJPS:     1
    SPRPS:     
    ENDDA:     2006-12-15
    BEGDA:     2006-12-15
    SEQNR:     000

    hi jagadesh,
    ur code is very length to see.
    see the following code ,
    JCO.Function objFunction =
                   this
                        .objIRepository
                        .getFunctionTemplate("BAPI_MATERIAL_AVAILABILITY")
                        .getFunction();
              objFunction.getImportParameterList().setValue(strPlant, "PLANT");
              objFunction.getImportParameterList().setValue(strMaterial, "MATERIAL");
              objFunction.getImportParameterList().setValue(strQuantity, "UNIT");
              this.objClient.execute(objFunction);
              JCO.Structure ret =
                   objFunction.getExportParameterList().getStructure("RETURN");
              String strRetMsg = ret.getString("MESSAGE");
    System.out.println(strRetMsg);  // it will tell whether record is inserted or not
    /*JCO.Function objFunction1 =
                   this
                        .objIRepository
                        .getFunctionTemplate("BAPI_TRANSACTION_COMMIT")
                        .getFunction();
    objFunction1.setValue("",WAIT);
    objClient.execute(objFunction1);*/
    CHECK THE RETURN MSG .IT WILL TELL THE PROBLEM
    give me points if it is useful
    regards
    Guru
    Message was edited by:
            Guruvulu Bojja
    Message was edited by:
            Guruvulu Bojja
    Message was edited by:
            Guruvulu Bojja

  • Error while uploading MSP project into SAP PS

    Dear Friend's,
    For uploading MSP project into SAP PS we are using openps4MSP version 4.0 & MSP version 2007. incase of SAP PS to MSP downloading is ok.
    While uploading we are getting following error. Also I have gone through relevant notes on MSP PS interface still I am unable to understand what exactly is the missing.
    Action log is as follows.
    The WBS.Maintain BAPI was called.
    - duration in sec.:0.109396699997887
    - return code: E
    - I CJ546 WBS-Dates Create
         Start date is in the past
         - object ID: B1101501000000000 /
    - I CJ546 WBS-Dates Create
         Start date is in the past
         - object ID: B1101500000000000 /
    - E CN009 NetworkActivity Create
         Network 4003941 does not exist
         - object ID: 0000040039410010 /
    - E CN009 NetworkActivity Create
         Network 4003941 does not exist
         - object ID: 0000040039410020 /
    - E CJ280 NetworkActivity Create
         Termination: Too many errors (more than 10% of methods)
         - object ID: 0000040039410020 /
    ERROR test import into PS system failed
    ERROR updating PS project
    Thanks & Regards,
    Suvin

    Hi,
    Which type of scheduling setting have you configured for WBS scheduling and for n/w. ?
    Also, download calendar from SAP to MSP and then add column 'Task Calendar' in which select the downloaded calendar.
    Check SAP NOTE 579761
    Regards,
    Harsh.
    Edited by: Harsh Saxena on Aug 10, 2011 3:18 PM

  • Error while uploading a LOGO into SAP by using SE78

    Hi All
    we are not able to uplaod a LOGO into DEV200 but the same LOGO is successfully uploaded into DEV215. When we tried in DEV200 it is giving the error "ERROR LOADING FILE <PATH>".
    As a Basis/ Security consultant I checked:
    1) Authorizations
    2) Client settings ( in SCC4 ) and System Change Optioin in SE06
    These both are looks fine.
    Can anyone Please help to resolve this issue.
    Thanks and Regards
    Kasi

    Hi,
    Which type of scheduling setting have you configured for WBS scheduling and for n/w. ?
    Also, download calendar from SAP to MSP and then add column 'Task Calendar' in which select the downloaded calendar.
    Check SAP NOTE 579761
    Regards,
    Harsh.
    Edited by: Harsh Saxena on Aug 10, 2011 3:18 PM

  • Get Month & Quarter from Factory Calendar in SAP BI

    Hi,
    Requirement is how to get the month & quarter from the factory calendar in SAP BI.
    lets say the day is 29.12.2008 , if we use this date in SCAL it comes into 2009.
    Im getting the week as 01.2009 by using the Function Module DATE_GET_WEEK which is correct from where i can take week & the Year.
    Now how to get the month & quarter, for the above date i need month as 01 & quarter as 01.
    Please advice.
    regards
    Hari

    Hi,
    Please use the below code:
    v_day = '20081229'.
    *( Fiscal Variant)
    v_fin = '10'.
    Data : V_period(3) type c.
    Data: v_year(4) type c.
    call function 'DATE_TO_PERIOD_CONVERT'
        exporting
          i_date                      = v_day
          i_periv                     = v_fin
        importing
          e_buper                     = v_period
          e_gjahr                     = v_year
        exceptions
          input_false                 = 1
          t009_notfound               = 2
          t009b_notfound              = 3.
      if sy-subrc = 0.
        v_quart                 = v_period.
        v_fiquart        = ( v_quart  - 1 ) div 3 + 1.
        v_period    = v_period.
    endif.
    -Vikram

  • Can we integrate SAP PM functional location into sap ehs waste management?

    Can we integrate SAP PM functional location into sap ehs waste management?
    We have already imported functional location into Incident Management.
    The requirement is that we need to somehow integrate either functional location of PM or location of Incident Management
    to EH&S Waste Management module.
    Any comments/ideas would be highly appreciated !!

    Hi !
    Through this IMG activity you can integrate Waste Management business partner to other objects. What  you have asked should be possible. But default settings provided with this IMG activity are,
    You can integrate Business partner to,
    1. Plant
    2. Company Code
    3. Cost Center
    4. Controlling Area
    5. Order
    6. Customer
    7. Vendor
    8. Storage Location
    9. Plant for Storage Location
    You can see this in the structure, “EHSWAS_MDINTO”.
    See this IMG activity,
    Environment, Health & Safety -> Waste Management -> Master Data -> Basic Settings for Master Data -> Specify Object Types for Integration.
    “A waste management business partner can be identical to other objects in the SAP System, for example, a plant, a company code, or a cost center. In the master data for the Waste Management component, you can also assign a waste management business partner the object in the SAP System to which it is identical.
    In this IMG activity you specify which object types you can assign to the waste management business partners.
    Standard settings:
    Default settings are delivered. You cannot change these settings, but you can add more settings.”
    Regards
    Subash Sankar

  • Scenario mapping into SAP

    Hi All...
    We have a new machine in a Plant , which needs to be tracked as a seperate division. Can you tell me how to achieve this?
    I want all issues, receipts, purchases and Invoicing from this division to be tracked seperately and I want to know the profit of this division also.
    Kindly suggest most appropriate mapping this into SAP.
    With Regards,
    L N

    hi Ln
    i am not sure abt profit but i suugest for all transactions u mentioned u can go with a new order types
    define new order type like ZNEW - for purchase and sales entries wich will easy to jkeep track of all its outgoing and incoming money..
    kaustubh

  • What is Investment allowance on asset. and How can we map into SAP?

    Hi all,
    I want know what is investment allowance on asset and how can we map into sap?
    Thank you in advance.
    Regards,
    Chandu.

    hello chandu ,
    In order to encourage substantial investment in plant or machinery clause 5 of the Finance Bill, 2013 seeks to insert new section 32AC in the Income-tax Act, 1961 to provide for deduction for
    investment in new plant or machinery by a company.   It is allowed over and above the depreciation rates.   This is for tax calculation purpose for availing this benefit so many conditions to be fullfilled.   In sap this can be handled through development only.  n.selvakumar.

  • Check plant calendar against backend system

    Hello,
    Is there a way that when creating a SC item the systems checks if the delivery date is a working day on plant calendar in backend system and if not give an error message?
    Regards,
    Nelson

    Hi,
       You can maintain the same calendar in SRM also,path is:
    SAP Web Application Server>General Settings>Maintain Calendar.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Plant Calendar

    Hello i have a problem with the plant calendar..., the PP consultant was modify the customizing of the plant calendar with all 7 days of week, and the  MRP creates provisionals orders with delivery date on  satuday or sunday..., that was wrong....
    If the delivery date is on a saturday or sunday, MRP moves the delivery date on monday. When the plant calendar was modificated, we lost this funcionality.
    Do you know how to solve this problem?
    Thanks, Regards.
    Cristian.-

    Hi Cristian,
    Well the only other alternative, which i can think of is to define your production area as one plant and your office as another plant. The production area will have 7 working days, while your office plant will have 5 working days.
    I agree it will bring in a lot of additional work, but i do not see any other possible solution. Maybe you can check with SAP, if they have any SAP notes or alternative solutions for your specific requirement.
    Alternatively, if you have found a solution, maybe you can share it in the forum.
    Regards,
    Vivek

  • I create a birthday calendar in iCal and then click on it in iphoto at the begining of the calendar project each year.  Some how the birthday did not populate the photo calendar.  Is there a way to add the birthday iCal calendar into the calendar project?

    I created a birthday calendar to use in iphoto for calendar.  When a new calendar project is started each year, I click on it in.  Some how the birthday did not populate the photo calendar this year.  The photo calendar is almost complete.  Is there a way to add the birthday iCal calendar into the calendar project? I would prefer not to start over.

    Hi,
    If you first select the calendar on the left, so that its background is highlighted blue/grey, when you make a new events they should be added to that calendar.
    Best wishes
    John M

  • Steps to prepare and upload legacy master data excel files into SAP?

    Hi abap experts,
    We have brand new installed ECC system somehow configured but with no master or transaction data loaded .It is new empty system....We also have some legacy data in excel files...We want to start loading some data into the SAP sandbox step by step and to see how they work...test some transactions see if the loaded data are good etc initial tests.
    Few questions here are raised:
    -Can someone tell me what is the process of loading this data into SAP system?
    -Should this excel file must me reworked prepared somehow(fields, columns etc) in order to be ready for upload to SAP??
    -Users asked me how to prepared their legacy excel files so they can be ready in SAP format for upload.?Is this an abaper job or it is a functional guy job?
    -Or should the excel files be converted to .txt files and then imported to SAP?Does it really make some difference if files are in excel or .txt format?
    -Should the Abaper determine the structure of those excel file(to be ready for upload ) and if yes, what are the technical rules here ?
    -What tools should be used for this initial data loads? CATT , Lsmw , batch input or something else?
    -At which point we should test the data?I guess after the initial load?
    -What tools are used in all steps before...
    -If someone can provide me with step by step scenario or guide of loading some kind of initial master data - from .xls file alignment to the real upload - this will be great..
    You can email me some upload guide or some excel/txt file examples and screenshots documents to excersize....
    Your help is appreciated it.!
    Jon

    hi,
    excel sheet uploading:
    http://www.sap-img.com/abap/upload-direct-excel.htm
    http://www.sap-img.com/abap/excel_upload_alternative-kcd-excel-ole-to-int-convert.htm
    http://www.sapdevelopment.co.uk/file/file_upexcel.htm
    http://www.sapdevelopment.co.uk/ms/mshome.htm

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • Upload data from Excel into SAP CRM using webservices

    Hi,
               I want to upload the data from EXCEL into SAP CRM using a web  service, can anyone say me the process and also how to map the excel and the source code structures.
    Thanks,
    Sanju.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

Maybe you are looking for

  • Downpayment request-Payment terms

    Hi Gurus, We need to activate payment terms while posting Downpayment request, i tried to activate in the field status and posting key. it will not work out. Our business need to assign payment terms, while posting downpayment request. Highly apprici

  • Using a dropdown box to change the specified value of a radio button?

    I have a form that generates the body text for an email. First there is a dropdown box in which the choices are either "red" or "blue" Further down the page, there is a radiobutton list with 2 items "available" and "unavailable". The specified values

  • Maintain Default Cost element in controlling Area

    I am getting the following error while working on Down payments : " CO down payment is active in the controlling area.You must therefore maintain default Cost elemnts and revenue elementsfor down payments. Maintain the default cost element for down p

  • ESS Leave Request Edit

    Hi All, We are working on ECC 5.0 and ENT portal 6.0 User has applied the leave in ESS, which is yet not approved. Business want this leave request to be editable before it gets approved. Please guide me on this, how this can be done??? Regards, Aman

  • Shared_pool_size in 9i

    Oracle: 9.2 Does the value specified by SHARED_POOL_SIZE init parameter indicate the maximum memory to be allocated by Oracle for shared pool or the initial? When I do "show parameter shared_pool_size" I see the size as 50MB but when I do "select sum