BDC- To add ABC indicator in MM02-- MRP1

Hi,
I am working on BDC- To add ABC indicator in MM02--> MRP1.
Problem -->
In some material+ plant  - Reorder point is there. In this case I need to take additional 'BDC_okcode' for ENTER.
HOW CAN I DO THIS? 
I tried it with 'Select statement' between the Perform statement, but it's not working?
IF wa_file-matnr IS NOT INITIAL.
      PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RMMG1-MATNR'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
      PERFORM bdc_field       USING 'RMMG1-MATNR'
                                    wa_file-matnr.
      PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MSICHTAUSW-DYTXT(11)'.
      PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(11)'
                                     'X'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
      PERFORM bdc_dynpro      USING 'SAPLMGMM' '0080'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RMMG1-WERKS'.
      PERFORM bdc_field       USING 'RMMG1-WERKS'
                                    wa_file-werks.
      PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BU'.
      PERFORM bdc_field       USING 'MARC-MAABC'
                                    wa_file-maabc.
      SELECT SINGLE minbe INTO v_minbe FROM marc
                   WHERE matnr = wa_file-matnr
                     AND werks = wa_file-werks.
      IF v_minbe GT 0.
        PERFORM bdc_field     USING 'BDC_OKCODE'
                                    '/00'.
      ENDIF.
    ENDIF.
    CALL TRANSACTION 'MM02' USING it_bdcdata MODE p_mode MESSAGES INTO it_msg.

Hi,
Try to use Bapi and see ..Please find the sample code.
LOOP AT t_itab INTO wa_itab.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input        = wa_itab-matnr
      IMPORTING
        output       = wa_headdata-material
      EXCEPTIONS
        length_error = 1
        OTHERS       = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
prepare the follwing structres ( plantdata,headdata, plantdatax)       .
* Select the MRP view
    wa_headdata-mrp_view =  'X'.
* Call the Bapi to create the MRP view.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata       = wa_headdata
        plantdata      = wa_plantdata
        plantdatax     = wa_plantdatax
      TABLES
        returnmessages = t_return.
ENDLOOP
Regards,
Nagaraj

Similar Messages

  • Difference "abc indicator" in MRP1 & "cc phys inv ind" in plant data stor1

    Hello,
    we want to do cycle counts and I noticed that there are two different field in the material master for that.
    I think they have a different purpose?
    "ABC indicator"  field in MRP1 view
    and
    "cc phys inv ind" field in plant data/ stor 1 view
    Can somebody please explain the difference?
    Thanks
    Anne

    MC40 and MC41 dont need customizing, setting can be made in selection screen.
    ABC analysis for cycle count MIBC needs customizing.
    In MRP1 view the field name is MARC-MAABC while on storage location view the field name is MARC-ABCIN.
    The one on storage location view is used for cycle count, and includes ABC and D, and is caclulated by MIBC transaction.
    The indicator in MRP1 view is calculated and updated by MC40 and MC41 transaction
    MICN is the only one that can update the indicator used for cycle counting.
    if you execute both transaction with same settings, then there should be the same result.
    However, pretty often the cycle count indicators are precalculated by MICN based on consumption, but then individual items are changed to get a different indicator for specific reasons.
    You may have a low value item, which is very important for your processes.
    Based on consumption values it may get indicator C, but if you have differences on that item then it is a critical factor for your business, hence you want count it more often, thus you would manually change it to B or even A. (which can be done directly from the MICN report)
    The focus on both indicators can be equal in many companies, but may also be different in other companies, hence you need 2 indicators for ABC analysis

  • Mandatory check for ABC Indicator- MRP1 view

    Dear All,
    I want to make ABC Indicator mandatory for ROH material type and to the particular plant. How can I achieve this?
    I tried to change in customization (Change 'Field selection for data screens' ), but its effecting other fields also. because in the field selection group 51 has so many other fields.
    Should I have to create new field section group & field reference Or any other way? Need your valuable guidance.
    Thanks.

    hi Vijay,
    if you want to control it thru configuration then you have to create a new field selection group and then you can make the ABC indicator mandatory.
    you can also use the user exit in material master which will throw an error message at the time of saving of material master if the ABC indicator field is blank.
    Regards,
    Anoop singh

  • Can not change the ABC indicator in Material master MRP1 View?

    Hi All,
    I could not change the ABC indicator in Material master for material X. Could some one please specify the condition or prerquisit for making chnages in ABC indicator?

    Hi Animesh,
    In Logistics Information system , ABC analysis can being done  and results updated in Material master for ABC indicator by background job run.
    The relevant transaction is MC40  ( Total Analysis) .
    This transaction when run in backgroung with field "Update ABC Ind.in background processing mode" clicked, will update the ABC indicator appropriately.
    You can find different criteria based on which A, B,C is decided.
    I hope this will be useful to you.
    Please check and confirm.
    Regards
    Datta

  • Customize ABC Indicator (MAABC)?

    Hello,
    Is it possible to change the existing values in the field MAABC (ABC Indicator) in Material Master (screen MRP1). Or enter additional entries?
    Thanks in advance

    Hi Kristin,
    I'd tested in ECC 6.0, now I have verified this issue in  46C, and unfortunately, after more checks on this issue I have to say, that  there is no way in SAP standard system to include additional values (e.g.:D) for MARC-MAABC in your release (there is no "check table" for the field MARC-MAABC in SE11 and hence it's not configurable).                                      
    Kindly note that as this is a standard R/3 Domain, it does not allow any changes to be made to it.  As a workaround You could consider creating a copy of this domain and may be add additional values to the value range. However this would           
    clearly be a modification to the standard SAP system and will not be supported by SAP. (check carefully it)
    Regards,
    Mauro

  • Updation of ABC indicator in Material Master

    Hi,
    For ABC analysis, I carried out it according to T_code MC40(Usage value). I got the category of material. For eg "A".But how the ABC indicator updates in Material master.Because I couldnt get indicator in MRP1 view.
    Whats the right way? Pls guide me.
    Thanks,
    Goraksh.

    Hi,
    Update of consumption is based on movement type, and you can decide which movement types should have or have not consumption updating.
    Check in transaction OMJJ if the movement types in question have indicator "Consumption posting" (field V_156_VC-KZVBU) as marked.
    If it is the case, consumption is updated, opposite for un-ticked.
    Hope that helps.
    Thanks.

  • ABC indicator in Material Master

    Hi experts,
    Could you please let me know if the ABC indicator field used in MRP1 view is Plant dependant or Plant independant?
    We have 2 plants. So should we set this ABC indicator seperately for Plant 1 & Plant 2?
    Thanks,
    Pri

    ABC INDICATOR:
    Indicator that classifies a material as an A, B, or C part according to
    its consumption value. This classification process is known as the ABC
    analysis.
    The three indicators have the following meanings:
    o   A - important part, high consumption value
    o   B - less important part, medium consumption value
    o   C - relatively unimportant part, low consumption value
    So we can say that this information in Material master is plant specific (Plant dependent)
    Logically if we think the material which is of high importance and have high consumption in one plant need not have to be important with same level of consumption in another plant.
    Rerward if it is helpful
    Regards
    Pavan
    So when doing the bifercation of the materials based on their importance it is plant which is of utmost importance

  • Where a system saved a old ABC indicator

    Dear expert Hi
    We are working in our company with ABC indicator for cycle counting , Trans: MIBC
    I will need to create a new Query when we can see what is the old ABC indicator and what is the new ABC indicator after we update a indicator with MIBC
    Please you can explain where a system saved old ABC indicator (TABLE)?
    Regards
    Diana

    Hi,
    For a material master the ABC indicator  is mentioned in the MM01 -MRP1 view screen
    The table name is : MARC
    where as in MBIC t.code if you change the CC indicator the CCindicator changes is indicated inthe same t.code  in X. it is not stored in Table. It is stored in  a structure.
    actually the ABC indicator is stored in table MARC only
    Regards
    G.Ganesh Kumar

  • Regarding ABC indicator

    Hi,
    In our organization if material consumption is more than 1000Qty it will be considered as A category and if it is between 500 to 1000 then B category and less than 500 is C category. Where we can define this in SAP.
    Thanks and Regards
    Pavan

    Hi,
    ABC indicator can be maintained in MRP View in material master
    Difference "abc indicator" in MRP1 & "cc phys inv ind" in plant data stor1
    pherasath

  • Vendor report for ABC indicator field

    Hi All,
    My client uses field ABC indicator in the purchasing data view of the vendor master. They want to have reports based on this field.
    Are there any standard reports in SAP which can give total purchased value and quantity for a vendor with specific value of ABC indicator?
    Regards,
    Vishal

    Hi Vishal
    you can try with T code ME81N
    link:[http://help.sap.com/saphelp_45b/helpdata/en/75/ee128c55c811d189900000e8322d00/frameset.htm]
    Hope this helps
    Regards
    Vikrant

  • ABC indicator removal

    Hi
    Having some clarification cycle count indicator...
    1) How to mass remove the ABC indicator set for the material master ?
    ie,  mass change from a indicator specified to blank field.
    I believe this is kind of basic qsnts, really appreciated your support.
    Thanks
    MM

    Hi,
    Just tested this out in my system and it works. Here's what I did.
    1) Execute MM17
    2) Choose Fields Tab --> Search for MARC-ABCIN and then highlight and execute
    3) Enter Material and Plant then execute
    4) At the new values line, leave it blank then, click on carry out mass change button
    5) Save
    Even with CC Fixed indicator checked, I am still able to change the value to blank.
    Hope this helps
    Regards,
    Nazrin

  • ABC Indicator sap PM

    Hi PM gurus
    I have a problem. I change a ABC Indicator value of Functional Locations to A via transaction IL02. However, when i get a report with transaction IW38, I dont see A value in ABC Indicator field in some of the Functional Locations. I am sure I have changed and saved the value of that field. What may be the reason? Do you have any idea? Thanks in advance

    check the change history, maybe someone else has changed it again.

  • ABC Indicator for Equipment & Functional Location Same or Different

    Hi All,
    We can find ABC indicators in both Equipment & Functional Location (FL) master data.
    Q. Please tell me....whether these fields are different for Equipment & FL or same??
    Problem is that I could see the same field name ABCKZ for both Equipment & FL in tables V_EQUI & ILOA respectively.
    Sundar

    Hi  Sunder
    *The ABC indicator can be entered in equipment as well as functional locations.*
       An indicator that is assigned by the procedure of ABC analysis.
    The following ABC indicators are possible:
    A - Important
    B - Less important
    C - Relatively unimportant
    According to these criteria, "A" materials are those materials that are of greatest importance for the production operations of a company.
    Examples of use for ABC indicators are vendor master records, material master records, and master records of *technical objects.*
    So ABC indicator is same for equipments and Functional LocationBUT value may be diferent
    Regards
    Jitender Suhag

  • ABC indicator for project stock

    Is there a way to run MIBC and assign abc indicator to project stock that is not valuated or even for the part numbers to show up on this list?  What needs to be done in order for this to show up on the report?  IS there a way to make it valuated and but not company own stock valuation?

    Hello Kimberly,
    MIBC report will show the list of material based on the Consumption or Requirement and it will suggest ABC indicator considering the both factor.
    The Project stock can be managed as valuated project stock or nonvaluated project stock.
    For more details, please have a look on the following link
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/4d/2b92c943ad11d189410000e829fbbd/frameset.htm">Project Stock</a>
    Hope this helps.
    Regards
    Arif Mansuri

  • ABC Indicator field in PM MODULE

    Hi gurus,
    I have a problem. I change a ABC Indicator value of Functional Locations to A via transaction IL02. However, when i get a report with transaction IW38, I dont see A value in ABC Indicator field in some of the Functional Locations. I am sure I have changed and saved the value of that field. What may be the reason? Do you have any idea? Thanks in advance....

    Hi,
    The value shown on IW38 will be the ABC Indicator as recorded on the order. When the order was created this value would have defaulted from the functional location. If you later change the functional location value, that is not updated on existing orders.
    You can change the ABC Indicator value directly on the orders location tab (provided it is not completed).
    -Paul
    Please use [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum for PM/CS specific topics

Maybe you are looking for