Regarding MRP Area

Hi All,
I would like to clarify a doubt regarding MRP Area concept.
1. MRP Area at Storage Loc level:
    What's the main advantage of this? i have gone through the documentation and 
    understood how to configure it, but in a real scenario how its useful?
   For example: I have finished part: A which has components B, C & D. If i assign
   the stor.loc X  MRP area to B & C not D and run the MRP on A, how system
   will react?
  I am not able to understand how it's beneficial in real scenario?
Can some body help me out? i understand how it's useful for MRP Area for Sub-Con coz it will plan seperately for individual sub-con's..
Thanks and looking forward for your valuable hints and answers,
Chandra

The procedure is made clearer in the following example:
Assembly A is produced on production line 1. Components B and C, which are procured externally, are necessary for the production and are withdrawn from storage location 0001.
You can represent this situation in the system as follows:
You create an MRP area of the storage location type for storage location 0001 in Customizing for MRP. You assign the MRP area to storage location 0001.
You assign this MRP area to the components B and C in the respective material master records by creating an MRP area segment. You enter storage location 0001 in the Storage loc. for EP field in the MRP area segment, as this is also to be the receiving storage location for the components.
You create a production version for production line 1 in the material master for assembly A. In this production version, you enter storage location 0001 as the issue storage location for the components.
In the planning run, the system calculates the dependent requirements for components B and C and determines the issuing storage location 0001 using the production version. This enables the assignment of the dependent requirements to the MRP area for storage location 0001. When the system determines the procurement elements for B and C, it reads the external procurement storage location and uses this as the receiving storage location. This is also storage location 0001 so the procurement elements are assigned to the MRP area for storage location 0001. You can use this procedure to selectively plan the components that you require on the production line.
If you do not work with production versions, you can also enter the issue storage location for the components in the BOM, in the work center using the supply area, or in the Issue stor. location field in the MRP data of the material master record
Regards
TAJUDDIN

Similar Messages

  • Sap pp -MRP-area

    Hello SAP-Guruu2019s
    Pls tell me the Procedure/steps/Details to maintain MRP-area for a Vendor & also for a Sub-Contractor.
    Any comments welcome   & Thanks in advanc

    Hi,
    Pls. find the following details regarding MRP Area :
    MRP Area
    Definition
    The MRP area represents an organizational unit for which material requirements planning is carried out independently.
    Basically, there are three types of MRP area:
    Plant MRP Area
    The plant MRP area initially contains the plant together with all its storage locations and stock with subcontractors.
    When you have defined MRP areas for storage locations and for subcontractors and you have assigned the materials, the plant MRP area is reduced by exactly this number of subcontractors and storage locations. This is because they are now to be planned separately.
    MRP Areas for Storage Locations
    You can define an MRP area that consists of a particular storage location, by creating an MRP area and assigning the storage location to it. Material requirements for this storage location are then planned separately from the rest of the plant.
    You can also group several storage locations into one MRP area, by creating an MRP area and assigning the storage locations to it. These storage locations are then planned together.
    A storage location of a plant may be assigned to only one MRP area.
    MRP Areas for Subcontractors
    You can also define an MRP area for each subcontractor.
    A subcontractor may be assigned to only one MRP area. An MRP area of the subcontractor type may also only contain one subcontractor.
    Use
    You can carry out MRP specifically for the determined MRP areas. This enables you to carry out differentiated material requirements planning. The requester can be, for example, the production on a particular assembly line or a subcontract order.
    The MRP area allows you to have specific control over the staging and procurement of important parts produced in-house and purchased parts for each shop floor area. You can, however, also plan the provision of components for the individual subcontractors.
    MRP areas of the storage location or subcontractor type are only suitable for:
    components that are planned and produced for stock
    finished products that are planned and produced for stock. By assigning a storage location in a sales order or by entering an MRP area when creating the planned independent requirements, you can define whether a material is planned in the plant MRP area or in the MRP area of the storage location.
    Finished products and important assemblies intended for make-to-order or engineer-to-order production are always planned in the plant MRP area.
    The planning run takes into account the planning with MRP areas as follows:
    If you do not enter a separate scope of planning, the system plans the whole plant, that is, all MRP areas in the plant, during the total planning run. If you want to carry out a total planning run for a particular MRP area only, you must specify the required MRP area in the scope of planning.
    During single-item, multi-level planning, the system plans the selected material in the MRP area entered. In addition, the system takes into account planning file entries from other MRP areas, for example, if the material is to be procured using stock transfer.
    During single-item, single-level planning, the system plans the selected material in the MRP area entered only.
    Structure
    You define the MRP areas in Customizing for MRP. You can thereby assign the following to an MRP area:
    one or more storage locations (example: you want to carry out planning for a particular assembly line and therefore assign a production storage location to the MRP area)
    a subcontractor.
    You assign the various MRP areas to the materials in the material master. For this, you create an MRP area segment for a material for every MRP area, in which it is used. In this MRP area segment, you can define MRP parameters such as, for example, the lot size or MRP type. This allows you to plan the material differently in the MRP area from how you plan it in the plant MRP area.
    MRP with MRP areas for the material is not activated until the material has been assigned to an MRP area. If you have not assigned a material to an MRP area, that is, you have not created an MRP area segment in the material master, the material will continue to be planned in the plant MRP area only. If you have assigned an MRP area to it, the system can plan it in the plant MRP area and in the assigned MRP area.
    Integration
    You can carry out material requirements planning for MRP areas using all MRP procedures and all lot-sizing procedures.
    You can also carry out an independent material forecast for MRP areas using your own parameters.
    The material consumption values are updated separately for each MRP area.
    A separate ATP check is carried out for each MRP area.
    If several storage locations belong to an MRP area, the system can also carry out a check at two levels, that is, at storage location level and at MRP area level.
    Example: Subcontractor
    You can also carry out planning for components to be provided in subcontracting using an MRP area by defining an MRP area for every subcontractor and assigning the components to be provided to the MRP area of the subcontractor. You therefore plan the requirements to be provided for these components for one subcontractor separately from all other requirements (see Planning for Components to be Provided in Subcontracting).
    Depending on the requirements situation, the system creates either stock transfer reservations from the plant to the stock of material provided of the subcontractor or it creates purchase requisitions within subcontracting/third-party order processing, according to the special procurement key settings.
    Implementing MRP Areas
    Implementation Options
    The main reason for you to implement MRP areas is if you would like to plan materials, which are required in different shop floor areas, storage locations or by subcontractors, separately from one another.
    As soon as you have activated materials requirements planning with MRP areas, this type of MRP is active at client level, that is, MRP will be carried out in this way in all plants.
    Material requirements planning with MRP areas cannot be reversed.
    Process Flow
    You can implement material requirements planning with MRP areas in three steps:
    You convert the existing planning file entries at plant level to planning file entries at MRP area level.
    During the conversion, the system creates a plant MRP area for every plant as a background job. This, however, will not affect your planning. The processes in material requirements planning and the planning results remain unaffected.
    The conversion is also useful even if you do not work with MRP areas, but still have to plan for several plants, as the new planning file improves system performance during the planning run.
    You activate MRP with MRP areas in Customizing for MRP. This causes the MRP area field to appear in the applications of MRP and in related areas. When you enter the plant number, the system automatically fills the field with the number of the plant MRP area. The number of the plant MRP area is the same as the plant number.
    This does not affect the planning run as the plant MRP area still corresponds to the present plant.
    You define an MRP area, for example, for a storage location. You then assign the materials that are to be planned for this storage location, by creating an MRP area segment in the material master.
    Materials requirement planning for this storage location is then carried out separately. The storage location stock is no longer included in the available stock of the plant MRP area. The receipt and issue elements of this storage location (MRP area) are also not taken into account in the plant MRP area. They are only taken into account in the MRP area of the storage location.
    If you have already worked with storage location MRP the system still carries out storage location MRP even after the activation of MRP areas. You need to decide in principle whether you want to continue using storage location MRP or whether you want to create MRP areas for the storage locations that are planned separately. It is not possible to simultaneously plan a material using storage location MRP and an MRP area for the same storage location.
    If you decide to use MRP areas, you should then try to convert all storage locations that are planned separately to MRP areas in one step. Before you assign the material to an MRP area, you must remove the MRP indicator, which is located in the material master at the storage location organizational level (view MRP 4) in the screen area Storage location MRP.
    Even if you have defined MRP areas in Customizing, the system plans the materials in the plant MRP area until you assign the MRP areas to the materials.
    Only the assignment of one or more MRP areas to a material, by creating MRP area segments in the material master, actually cause changes in the material requirements planning.
    Hope this helps.
    Regards,
    Tejas

  • MRP AREA CONFIG & PROCESS

    Hi PP Gurus,
    I want to know about the complete process of MRP Areas.
    1) Complete step by step process in terms of config. & front end in SAP.
    2) How to activae it for Plant, Storage location & vendor.
    3) Difference between above three & where they are exactly used.
    The person who helps will be awarded points = 10.Sure.
    Regards

    Hi,
    Pls. find the following details regarding MRP Area :
    MRP Area
    Definition
    The MRP area represents an organizational unit for which material requirements planning is carried out independently.
    Basically, there are three types of MRP area:
    Plant MRP Area
    The plant MRP area initially contains the plant together with all its storage locations and stock with subcontractors.
    When you have defined MRP areas for storage locations and for subcontractors and you have assigned the materials, the plant MRP area is reduced by exactly this number of subcontractors and storage locations. This is because they are now to be planned separately.
    MRP Areas for Storage Locations
    You can define an MRP area that consists of a particular storage location, by creating an MRP area and assigning the storage location to it. Material requirements for this storage location are then planned separately from the rest of the plant.
    You can also group several storage locations into one MRP area, by creating an MRP area and assigning the storage locations to it. These storage locations are then planned together.
    A storage location of a plant may be assigned to only one MRP area.
    MRP Areas for Subcontractors
    You can also define an MRP area for each subcontractor.
    A subcontractor may be assigned to only one MRP area. An MRP area of the subcontractor type may also only contain one subcontractor.
    Use
    You can carry out MRP specifically for the determined MRP areas. This enables you to carry out differentiated material requirements planning. The requester can be, for example, the production on a particular assembly line or a subcontract order.
    The MRP area allows you to have specific control over the staging and procurement of important parts produced in-house and purchased parts for each shop floor area. You can, however, also plan the provision of components for the individual subcontractors.
    MRP areas of the storage location or subcontractor type are only suitable for:
    components that are planned and produced for stock
    finished products that are planned and produced for stock. By assigning a storage location in a sales order or by entering an MRP area when creating the planned independent requirements, you can define whether a material is planned in the plant MRP area or in the MRP area of the storage location.
    Finished products and important assemblies intended for make-to-order or engineer-to-order production are always planned in the plant MRP area.
    The planning run takes into account the planning with MRP areas as follows:
    If you do not enter a separate scope of planning, the system plans the whole plant, that is, all MRP areas in the plant, during the total planning run. If you want to carry out a total planning run for a particular MRP area only, you must specify the required MRP area in the scope of planning.
    During single-item, multi-level planning, the system plans the selected material in the MRP area entered. In addition, the system takes into account planning file entries from other MRP areas, for example, if the material is to be procured using stock transfer.
    During single-item, single-level planning, the system plans the selected material in the MRP area entered only.
    Structure
    You define the MRP areas in Customizing for MRP. You can thereby assign the following to an MRP area:
    one or more storage locations (example: you want to carry out planning for a particular assembly line and therefore assign a production storage location to the MRP area)
    a subcontractor.
    You assign the various MRP areas to the materials in the material master. For this, you create an MRP area segment for a material for every MRP area, in which it is used. In this MRP area segment, you can define MRP parameters such as, for example, the lot size or MRP type. This allows you to plan the material differently in the MRP area from how you plan it in the plant MRP area.
    MRP with MRP areas for the material is not activated until the material has been assigned to an MRP area. If you have not assigned a material to an MRP area, that is, you have not created an MRP area segment in the material master, the material will continue to be planned in the plant MRP area only. If you have assigned an MRP area to it, the system can plan it in the plant MRP area and in the assigned MRP area.
    Integration
    You can carry out material requirements planning for MRP areas using all MRP procedures and all lot-sizing procedures.
    You can also carry out an independent material forecast for MRP areas using your own parameters.
    The material consumption values are updated separately for each MRP area.
    A separate ATP check is carried out for each MRP area.
    If several storage locations belong to an MRP area, the system can also carry out a check at two levels, that is, at storage location level and at MRP area level.
    Example: Subcontractor
    You can also carry out planning for components to be provided in subcontracting using an MRP area by defining an MRP area for every subcontractor and assigning the components to be provided to the MRP area of the subcontractor. You therefore plan the requirements to be provided for these components for one subcontractor separately from all other requirements (see Planning for Components to be Provided in Subcontracting).
    Depending on the requirements situation, the system creates either stock transfer reservations from the plant to the stock of material provided of the subcontractor or it creates purchase requisitions within subcontracting/third-party order processing, according to the special procurement key settings.
    Implementing MRP Areas
    Implementation Options
    The main reason for you to implement MRP areas is if you would like to plan materials, which are required in different shop floor areas, storage locations or by subcontractors, separately from one another.
    As soon as you have activated materials requirements planning with MRP areas, this type of MRP is active at client level, that is, MRP will be carried out in this way in all plants.
    Material requirements planning with MRP areas cannot be reversed.
    Process Flow
    You can implement material requirements planning with MRP areas in three steps:
    You convert the existing planning file entries at plant level to planning file entries at MRP area level.
    During the conversion, the system creates a plant MRP area for every plant as a background job. This, however, will not affect your planning. The processes in material requirements planning and the planning results remain unaffected.
    The conversion is also useful even if you do not work with MRP areas, but still have to plan for several plants, as the new planning file improves system performance during the planning run.
    You activate MRP with MRP areas in Customizing for MRP. This causes the MRP area field to appear in the applications of MRP and in related areas. When you enter the plant number, the system automatically fills the field with the number of the plant MRP area. The number of the plant MRP area is the same as the plant number.
    This does not affect the planning run as the plant MRP area still corresponds to the present plant.
    You define an MRP area, for example, for a storage location. You then assign the materials that are to be planned for this storage location, by creating an MRP area segment in the material master.
    Materials requirement planning for this storage location is then carried out separately. The storage location stock is no longer included in the available stock of the plant MRP area. The receipt and issue elements of this storage location (MRP area) are also not taken into account in the plant MRP area. They are only taken into account in the MRP area of the storage location.
    If you have already worked with storage location MRP the system still carries out storage location MRP even after the activation of MRP areas. You need to decide in principle whether you want to continue using storage location MRP or whether you want to create MRP areas for the storage locations that are planned separately. It is not possible to simultaneously plan a material using storage location MRP and an MRP area for the same storage location.
    If you decide to use MRP areas, you should then try to convert all storage locations that are planned separately to MRP areas in one step. Before you assign the material to an MRP area, you must remove the MRP indicator, which is located in the material master at the storage location organizational level (view MRP 4) in the screen area Storage location MRP.
    Even if you have defined MRP areas in Customizing, the system plans the materials in the plant MRP area until you assign the MRP areas to the materials.
    Only the assignment of one or more MRP areas to a material, by creating MRP area segments in the material master, actually cause changes in the material requirements planning.
    Hope this helps.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Nov 7, 2008 12:02 PM

  • MRP area for running a sale order MRP

    Hello PP experts,
    I come across a scenario where , I need to do the  MRP run for sale order in a MRP area. I have checked , I can put PIR with respect to MRP AREA , but when I open MD50 screen for running MRP for sale order. I did not found the MRP AREA
    field in the screen.
    In short , my question is , How the sale order MRP run ,  system will do in a MRP
    area defined for the material ?
    Here , I have already defined the material is MRP AREA and also I have created
    MRP area segment in the material master.
    I have also configured the MRP area in SPRO.
    Waiting for your reply.
    Regards,

    Hello ,
    Thanks for reply.
    I am using plant MRP area. For FERT , I am using make to order strategy 20.
    I want to specify the real problem. It is like below.
    Suppose 'A ' is sumassembly goes to a variant configured MTO KMAT say 'V'.
    The same 'A'  subassembly is a child for a make to stock FERT say ' S'.
    Presently  using strtegy 11 for MTS fert 'S' and 10 for the subassembly ---'A'.
    Now the planner want to plan for the subassembly.
    He is putting the PIR for the subassembly as sales order is not availble and he is putting the PIR for FERT 'S'.
    When sales order is coming then additinal quantity planning is happening.
    So I suggested to use the strategy 70 for subassembly 'A' , so the sales order (of 'V') OF  quantity will be offset for the PIR of the SUBASSEMBLY 'A'.
    But the consumption of PIR of 'A' will  be apllicable to MTS  FERT that is 'S'.
    So how can we prevent the system from offsetting the dependent requiremet triggered from the PIR of 'A'.
    That means the consumption  (that is the usage of stategy 70) of the FERT requirement should only work for ' A' and sales order based KMAT 'V'.
    The same offseting should not work for subassembly 'A' and MTS FERT 'S'.
    For for Make to order KAMT 'V' , if I use MRP area and do the sales order planning in MRP area. Will I get the desired result ?
    Waiting for reply.
    Regards,
    Ravindra

  • MRP Area and SA Schedule Lines

    Hello All,
        We are looking at using MRP Areas and noticed it can not be turned off once on (ECC 5.0).  Given that, is the following true with reference to schedule agreements:
    - Will seperate schedule lines be created for each MRP Area (same material)?
    - Does the receiving storage location come from the material master or the MRP Area (Does it matter if it is a type 01 or type 02 MRP Area)?
    - Is it possible to define differen't receiving slocs in a schedule line for a Plant MRP Area?
    Thank you,
    Jerry

    Thank you Charlie,
        The link is helpful however it doesn't come straight out and answer the questions - meaning there is a bit of ambiguity there.
    It would be appreciated if you or anybody that is using MRP areas with schedule agreements is doing the above.
    Regards,
    Jerry

  • MRP AREA NETCH indicator missing in planning file entry

    Hi,
    MRP has been activated at MRP area level storage location level and there were no planning file entries for some materials because we were using the LSMW program RMDATIND for uploading the materials and there was no update flag for Planning File entries. Later we have updated the Direct input session with update Flag.
    I already ran the MDAB and MDRE so by the missing planning file entries.
    We are running the background job RMMRP000 for the MRP. There are some materials which are not being planned in the background job. When i run the MRP for the same materials in MD02/MD03, the procurement proposals are being created using MD02/MD03.
    I checked in MD21, we can see the Planning file entries then there no indicator for NETCH.
    What could be the reason?
    Regards,
    Kumar

    hi
    take t code-md20
    flag required field
    regards
    gyana

  • Planning file entry for MRP Area

    Hi,
    To create planning file entry in the background at plant level we use Transaction MDAB. I would like to know that if MRP area is active than whats the T-code for planning file entry in the background at mrp area level?? To create manualy in the Trx md20 we have that option to select mrp area & plant. So please let me know yours view on this.
    Thanks & Regards
    Kundan Kumar

    Dear,
    If planning file entry are there on plant level then system will convert same on MRp area level. Have you check that tables? (DBVM)
    For planning file entry at MRP area lvel , use report RMDBVM00 (transaction OM0F) to convert the existing table MDVM with the planning file entries into table DBVM. The conversion is also described in MRP Customizing: TA OPP1 -> Planning File Entries.
    There is no need of MDAB just check your entry in MD21 take a MRP run at MRP area lvel and come back if any problem.
    If you want to schedule it on MRP area lvel then use the MDRE or use program RMMDVM10 and in variant here select the MRP Area redio button.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Oct 26, 2009 6:25 PM

  • MRP Area tables for MD06 information access like SQ01, DBM logical database

    We currently use SQ01 DBM logical database to access MD06 information (tables MDKP and MDTB).  The MRP results from the MRP Area are not showing in this query. This implies that the MRP area, MRP results are stored in other tables.
    I have reviewed tables (MDLV, MDMA, MDLG, DVER, MDIP) from a similiar thread.  However, they do not contain the MRP data (planned orders, stock, production orders ect) like in the DBM logical database.   This data access is very powerfull for exporting planning data for more robust analysis.
    Any help is much appreciated.
    Thank you

    Hi,
           Please try FM: 'AUFBAUEN_MDPSX_ANZEIGEN'.
        MD06 dame come many table.
    Example:
    (Plant level)
      icm61w-fabkl  =  wk_fabkl.                  :Factory calender
      imt61d-matnr  =  p_matnr.                    : Materials
      imt61d-werks  =  it_tbl-werks.            : Plant
    AUFBAUEN_MDPSX_ANZEIGEN 呼出
      CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'
        EXPORTING
          ecm61w      =  icm61w
          ecm61x      =  icm61x
          emt61d      =  imt61d
          et399d      =  it399d
          ECM61B      =
          ESFILT      =
        IMPORTING
          icm61m      =  wa_e_cm61m
          imdkp       =  wa_e_mdkp
          imdsta      =  wa_e_mdsta
        TABLES
          mdpsx       =  it_mdps
    regards,
       Gaito

  • BDC for MM02 - MRP area

    Hello everyone!
    I have developed a BDC program to batch input data into MM02 / MRP area.
    It's working perfectly fine when I use mode 'A' in CALL TRANSACTION statement, but when I change it to 'N', so I can give this for the customer to test, it stops working, giving me an error in one of the screens, saying the "MRP area  is not assigned to plant CH01" (when running with mode "E" it also gives me the error).
    Here's my coding:
    REPORT  zload_mrp_areas.
    Data and variables definition
    DATA:  bdcdata    LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_header OCCURS 0,
            link      LIKE mara-matnr,
            matnr     LIKE mara-matnr,
            werks     LIKE marc-werks,
            mstae(2)  TYPE c,
            perkz(2)  TYPE c,
          END OF t_header.
    DATA: BEGIN OF t_details OCCURS 0,
            muvbr(5)  TYPE c,
            unvbr(5)  TYPE c,
            matnr     LIKE mara-matnr,
            priod(6)  TYPE c,
            gsvbr(5)  TYPE c,
          END OF t_details.
    DATA: v_count(3)  TYPE n,
          v_week      LIKE scal-week,
          v_week1(6)  TYPE n,
          v_week2(6)  TYPE n,
          v_page(5)   TYPE p DECIMALS 2,
          v_index(3)  TYPE n,
          v_field(19) TYPE c,
          v_mode      TYPE c,
          v_date1     LIKE sy-datum,
          v_date2     LIKE sy-datum,
          v_date3     TYPE i.
    Screen definition
    SELECTION-SCREEN  BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
    PARAMETERS: headfile     LIKE rfpdo1-febauszf OBLIGATORY,
                detsfile     LIKE rfpdo1-febauszf OBLIGATORY.
    SELECTION-SCREEN  END OF BLOCK 1.
    File selection
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR headfile.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          mask      = ',Multicash,*.txt'
          static    = 'X'
        CHANGING
          file_name = headfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR detsfile.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          mask      = ',Multicash,*.txt'
          static    = 'X'
        CHANGING
          file_name = detsfile.
    START-OF-SELECTION                                           *
    START-OF-SELECTION.
    Load files
      PERFORM load_files.
      PERFORM process_file.
    *&      Form  LOAD_FILES
          Load files from network to SAP
    FORM load_files .
    File upload
      DATA: l_filename TYPE string.
      l_filename = headfile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = l_filename
          filetype            = 'ASC'
        TABLES
          data_tab            = t_header.
      IF sy-subrc <> 0.
      ENDIF.
      l_filename = detsfile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = l_filename
          filetype            = 'ASC'
        TABLES
          data_tab            = t_details.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.                    " LOAD_FILES
    *&      Form  process_file
          Load files into Material Master
    FORM process_file .
      LOOP AT t_header.
        REFRESH bdcdata.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '0060'.
        PERFORM bdc_field   USING 'RMMG1-MATNR'     t_header-matnr.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '/00'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '0070'.
        PERFORM bdc_field   USING 'BDC_OKCODE'       '=SELA'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '0070'.
        PERFORM bdc_field   USING 'BDC_OKCODE'       '=ENTR'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '0080'.
        PERFORM bdc_field   USING 'RMMG1-WERKS'     t_header-werks.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=ENTR'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '4004'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=SP12'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '4000'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=PB42'.
        PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0010'.
       PERFORM bdc_field   USING 'SMDMA-BERID(01)' 'X'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=AEND'.
        PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=SP04'.
        CLEAR v_week.
        CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
          EXPORTING
            date = sy-datum
          IMPORTING
            week = v_week.
        CALL FUNCTION 'WEEK_GET_FIRST_DAY'
          EXPORTING
            week = v_week
          IMPORTING
            date = v_date1.
        LOOP AT t_details WHERE matnr = t_header-matnr.
          CLEAR: v_week1, v_week2.
          v_week1 = v_week.
          v_week  = t_details-priod.
          CALL FUNCTION 'WEEK_GET_FIRST_DAY'
            EXPORTING
              week = v_week
            IMPORTING
              date = v_date2.
          v_date3 = v_date1 - v_date2.
          v_page  = v_date3 / 7.
          IF v_page > 11.
            v_index = v_page MOD 11.
            v_page  = v_page / 11.
            COMPUTE v_count = TRUNC( v_page ).
          ELSE.
            v_index = v_page.
          ENDIF.
          IF v_index IS INITIAL.
            v_index = 11.
            v_count = v_count - 1.
          ELSE.
            v_index = v_index + 1.
          ENDIF.
    Paging
          IF v_count NE 0.
            v_count = v_count + 1.
            DO v_count TIMES.
              PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
              PERFORM bdc_field   USING 'BDC_OKCODE'      '=P-'.
            ENDDO.
            PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
            PERFORM bdc_field   USING 'BDC_OKCODE'      '=P++'.
            v_count = v_count - 1.
            DO v_count TIMES.
              PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
              PERFORM bdc_field   USING 'BDC_OKCODE'      '=P-'.
            ENDDO.
          ENDIF.
          PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
          v_field = 'RM03M_DB-KOVBW(*)'.
          REPLACE '*' WITH v_index INTO v_field.
          PERFORM bdc_field   USING v_field     t_details-muvbr.
          v_field = 'RM03M_DB-VBWRT(*)'.
          REPLACE '*' WITH v_index INTO v_field.
          PERFORM bdc_field   USING v_field     t_details-unvbr.
         PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
          PERFORM bdc_field   USING 'BDC_OKCODE'      '=WEIT'.
          PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
          PERFORM bdc_field   USING 'BDC_OKCODE'      '/00'.
          PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
          PERFORM bdc_field   USING 'BDC_OKCODE'      '=P++'.
        ENDLOOP.
        PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0020'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=UEBE'.
        PERFORM bdc_dynpro  USING 'SAPLMD_MGD1'     '0010'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=UEBE'.
        PERFORM bdc_dynpro  USING 'SAPLMGMM'        '4000'.
        PERFORM bdc_field   USING 'BDC_OKCODE'      '=BU'.
        DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
        v_mode = 'N'.
        CALL TRANSACTION 'MM02' USING bdcdata
                       MODE   v_mode
                       UPDATE 'S'
                       MESSAGES INTO ITAB.
        if sy-subrc is initial.
        endif.
      ENDLOOP.
    ENDFORM.                    " process_file
    *&      Form  BDC_DYNPRO
          text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "BDC_DYNPRO
    *&      Form  BDC_FIELD
    FORM bdc_field USING fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    "BDC_FIELD
    Can anyone help? Please!
    Thanks and regards,
    Fernanda

    You are trying to access one of the MRP area which is not yet assigned to CH01 plant. You need to make sure wheather the MRP view was already created for that material for CH01 plant.
    So, first check your data against the MARC for material and plant. If you don't fine any material for that plant than don't run BDC for that plant.
    Regards,
    Naimesh Patel

  • Query related to RM maintained for two MRP areas.

    Hi PP Gurus,
    The scenario is we modeled two Storage location MRP Areas say 1001 and 2001. There are two FG getting manufactured at them, say FG-1 at 1001 and FG-2 at 2001. Say there are three RMs viz. RM-1, RM-2, and RM-3. RM-1 and RM-2 included in FG-1  BOM and RM-3 and RM-2 in FG-2 BOM. Means RM-2 is common in both MRP areas.
    Now I've extended FG-1 and FG-2 for respected MRP areas. RM-1 extended to MRP area 1001, and in MRP views of material master, Production storage location and Storage location for EP is maintained as 1001. Same is maintained for RM-3 except MRP area as 1001, it's 2001.
    The concern is about RM-2, though I extended RM-2 for both MRP areas i.e. 1001 and 2001 but I can maintain Production storage location and Storage location for EP either as 1001 or 2001. So whenever I'm taking MRP run, for RM-2 it's either proposing 1001 or 2001 as Storage location for withdrawl or EP.
    My requirement is when I run MRP for FG-1 system should show me Sloc for RM-2 as 1001 and in case of FG-2 as 2001.
    As a try I tried to remove Production and Issue Sloc from MRP views and maintained Issue Sloc/Receive Sloc in PV of FG-1 and FG-2 but still unable to get the requirement fulfil.
    Please make prompt comments
    Thanks & Regards,
    Abu Arbab

    Dear ALL
    my requirement is exactly same as above that i need my component to be issued from different slocs depending on diffreent MRP areas in which they are being planned.
    But in my case FG is same and is being planned in 2 different MRP areas. So my BOM is same in both cases.
    For eaxmple--2000 is MRP area 1 and 3000 is MRP area 2
    Requirement is components should be issued from 2000 when panned in 2000 and from 3000 when planned in FG is planned in 3000.
    Kindly let me know what settings are required at components level to do this
    thanks

  • MRP areas with subcontracting

    Hi,
    Details:
    1) we have BOM like A is the finished product and under A -B and C are the compnents.
    2) we have created the mrp areas and assigned in the materials master for all the materials.
    and   created the  purchasing info records as well.
    B and C will be procure from from vendor1 and will supply to vendor 2.
    Vendor2 will use  the B and C materialsand to make the Finished material A and supplies to plant.
    So i defined subcontracting for A material.
    I have created the scheduling aggrement for B and C material with Vendor1 and A with vendor2.
    After MRP run schedule lines are creating for B and C materials only and PRs is creating for A material in place of schedule lines.
    To create the schedule lines for A material is there any config settings to be done.
    My requirement is schedule lines to be created for A,B and C materials.
    Suggest me how to solve run the scenerio.
    Waiting for responce.
    Thanks
    Chindam

    Hi Chindam,
                      Check whether you had maintained source list if so the schedule lines will be created automatically when trigger a MRP run.
    regards,
    patil

  • MRP area in Source list

    Hello
    Can anyone tell me how the MRP Area field (BERID) is maintained in  source list (transaction ME01).  In my system it is greyed out?
    We are running MRP at MRP Area level and I was hoping that this field would allow me to maintain source lists at this level.
    Thanks in advance for your help.
    Kind regards
    Sue

    Hello Sue,
    The MRP area field will appear if you are planning with MRP option 2 - Record relevant to MRP. Sched. lines generated automatically.
    You can see help document below explaining this process:
    http://help.sap.com/saphelp_47x200/helpdata/en/49/d8fe86df2c11d1a6a80000e83235d4/frameset.htm
    I hope it helps.
    Kind Regards,
    Prakash

  • TCode to see List of Plant + MRP Areas + MRP Type

    Hi,
    Can anyone tell whether any TCode exists which gives List of Plant + MRP Areas + MRP Type for the List of Material Number Input.
    For eg:  MM60 will give list of materials with Plant and its MRP Type.
    But it wont give detailes of other MRP Areas under which the Material is maintained.
    Regards,
    Prathap

    Hi,
    MC47 will give the list only if some requirement is loaded for the material.
    Vishal - Table serves the purpose but i need Tcode only.
    Does anyone has idea on other possible TCodes.???
    Regards,
    Prathap

  • MRP AREA

    Hi
    I have  created MRP AREA FOR MATERIAL with procurement type F.
    Also  production storage location and EP storage location is maintained in MRP Area.
    Planning file entry is available for material and mrp area.
    SLoc MRP indicator is 1.
    But this material is getting planned in PLANT MRP area.
    Am I missing any config

    Hi,
    Materials are planned in more that one area, according to where the requirements are. So, in your case, even if you have defined all these definitions, but you have requirements in the plant MRP area, you'll get planning there too.
    Regards,
    Mario

  • Any Prerequisite for adding MRP Area?

    Hi Gurus,
    I need to add MRP area data to a large number of materials. I tried testing for some material . For some materials I am able to add the data. For other I am not able to add.
    Is there any prerequisite for adding MRP area to a material?
    Can some suggest any BAPI to add/ update MRP area for a material?
    I am basically a ABAPer and don't have much Idea about MRP area. Please suggest any link where I can learn overview about MRP area.
    Thanks in Advance,
    KG

    hi,
    the prerequisities for MRP area are
    1> ACTIVATE MRP AREA
    2> DEFINE MRP AREAS.u will find the settings under the menu path:
    SPRO > IMG > MATERIAL MANAGEMENT > CONSUMPTION BASED PLANNING > MASTER DATA > MRP AREAS
    or u can find it under the menu path:
    SPRO > IMG > PRODUCTION > MATERIAL REQUIREMENT PLANNING > MASTER DATA > MRP AREAS.
    regards
    jash
    Edited by: diptasya jash on Apr 30, 2009 11:35 AM

Maybe you are looking for