<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI for the transaction MM02 for Production Version: Mass Processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577637#M1272173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try BAPI_MATERIAL_SAVEREPLICA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 10:58:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-04T10:58:10Z</dc:date>
    <item>
      <title>BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577636#M1272172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone tell me a relevant BAPI for the transaction MM02 for Production Version: Mass Processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nalina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 May 2009 10:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577636#M1272172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-03T10:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577637#M1272173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try BAPI_MATERIAL_SAVEREPLICA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 10:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577637#M1272173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577638#M1272174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;            You can use the following BAPI's&lt;/P&gt;&lt;P&gt; 1) /SAPMP/BAPI_MATERIAL_SAVEDATA -Create and change of Material Master Data. &lt;/P&gt;&lt;P&gt; 2) BAPI_MATERIAL_EDIT - To change a material&lt;/P&gt;&lt;P&gt; 3)BAPI_MATERIAL_GETALL - To get all the material No.&lt;/P&gt;&lt;P&gt; 4)BAPI_MATERIAL_SAVEREPLICA - To change material master data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577638#M1272174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577639#M1272175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nalina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of going with BAPI go for BDC as I have done the same when uploading REM data and uploaded huge amount of data with no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The template for uploading is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR	WERKS	SAUFT	SFEPR	VERID	TEXT1	PLNTY	PLNNR	ALNAL	STLAL	STLAN	MDV01	ELPRO	ALORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577639#M1272175</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-05-04T11:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577640#M1272176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil Nautiyal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont mind, could you send me that BDC Upload program codin please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nalina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 14:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577640#M1272176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577641#M1272177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following steps to find a BAPI for any transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Open transaction SE24.&lt;/P&gt;&lt;P&gt;2.Now open the object CL_EXITHANDLER in display mode.&lt;/P&gt;&lt;P&gt;3.Go to the method tab and double click on the method GET_INSTANCE.&lt;/P&gt;&lt;P&gt;4.Put a break point on cl_exithandler=&amp;gt;get_class_name_by_interface.&lt;/P&gt;&lt;P&gt;5.Now execute the transaction you want to find BAPI for, it will take you to the above method.&lt;/P&gt;&lt;P&gt;6.Write EXIT_HANDLER in fieldnames and hit enter, it will tell you the BAPI used for your transaction.&lt;/P&gt;&lt;P&gt;7.Hit F8 and it will tell you all the BAPIu2019s for your transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 14:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577641#M1272177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for the transaction MM02 for Production Version: Mass Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577642#M1272178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nalina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot paste the entire code as the message size cannot exceed more than 15000 characters. So I am giving only the BDC part wherein the logic has been written. input the file with value as per the template specified in the previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT it_data INTO wa_data.

    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING 'RMMG1-MATNR'
                                  wa_data-matnr.

    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(06)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.

    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input  = wa_data-matnr
          IMPORTING
            output = wa_data-matnr.

    select single * from mara where matnr =  wa_data-matnr.

    if sy-subrc &amp;lt;&amp;gt; 0.
        flag = 1.

        wa_messages-msgtyp = 'E'.
        wa_messages-matnr = wa_data-matnr.
        wa_messages-werks = wa_data-werks.
*        wa_messages-message = wa_data-matnr + ' ' + text-005.
        concatenate wa_data-matnr 'does not exist in table mara.' into wa_messages-message separated by space.
        APPEND wa_messages TO it_messages.
        CLEAR wa_messages.

    else.

      CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
                EXPORTING
                  material                  = wa_data-matnr                 "Material to which char.values are attached
                  materialart               = mara-mtart                 "Material type
                  selection                 = 'D'                           "Indicator for MRP3 view
                  tcode                     = 'MM02'                        "Transaction code
                TABLES
                  btci_d0070                = it_bdcdata1                   "Internal table from which position of MRP3 view can be found out
                EXCEPTIONS
                  material_not_found        = 1
                  material_number_missing   = 2
                  material_type_missing     = 3
                  material_type_not_found   = 4
                  no_active_dynpro_selected = 5
                  no_authority              = 6
                  OTHERS                    = 7.

              IF sy-subrc &amp;lt;&amp;gt; 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.

               LOOP AT it_bdcdata1 INTO wa_bdcdata1 WHERE fval = 'X'.

*Take the position no.of MRP4 view
                var_view = wa_bdcdata1-fnam+17(2).

                sel_view = var_view.
                CONDENSE sel_view NO-GAPS.
                ctr = ctr + 1.


                IF ctr EQ 4.
                  CONCATENATE 'MSICHTAUSW-KZSEL(0' sel_view ')' INTO view.

                  PERFORM bdc_field       USING view 'X'.

                  CLEAR ctr.
                  EXIT.
                ENDIF.

                CLEAR view.
                CLEAR wa_bdcdata1.
              ENDLOOP.

*CONCATENATE 'MSICHTAUSW-KZSEL(' zchar ')' INTO VAR1.
*    PERFORM bdc_field       USING var1    "'MSICHTAUSW-KZSEL ( zchar )'
*                              'X'.
    PERFORM bdc_dynpro      USING 'SAPLMGMM' '0080'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RMMG1-WERKS'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.
    PERFORM bdc_field       USING 'RMMG1-WERKS'
                                  wa_data-werks.

    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=PB03'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MARC-SFEPR'.
    PERFORM bdc_field       USING 'MARC-SAUFT'
                                  wa_data-sauft.

    PERFORM bdc_field       USING 'MARC-ALTSL'
                                  '2'.


    PERFORM bdc_field       USING 'MARC-SFEPR'
                                  wa_data-sfepr.

    PERFORM bdc_dynpro      USING 'SAPLMDIA' '0100'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MKAL-TEXT1(01)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.

    PERFORM bdc_field       USING 'MKAL-VERID(01)'
                                  wa_data-verid.

    PERFORM bdc_field       USING 'MKAL-TEXT1(01)'
                                  wa_data-text1.

    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=PB03'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.

    PERFORM bdc_dynpro      USING 'SAPLMDIA' '0100'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MKAL-TEXT1(01)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=DETA'.

    PERFORM bdc_dynpro      USING 'SAPLMDIA' '0200'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MKAL-ALORT'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=PRFG'.
    PERFORM bdc_field       USING 'MKAL-PLNTY'
                                  wa_data-plnty.
    PERFORM bdc_field       USING 'MKAL-PLNNR'
                                  wa_data-plnnr.
    PERFORM bdc_field       USING 'MKAL-ALNAL'
                                  wa_data-alnal.
    PERFORM bdc_field       USING 'MKAL-STLAL'
                                  wa_data-stlal.
    PERFORM bdc_field       USING 'MKAL-SERKZ'
                                  wa_data-sauft.

    PERFORM bdc_field       USING 'MKAL-STLAN'
                                  wa_data-stlan.
    PERFORM bdc_field       USING 'MKAL-MDV01'
                                  wa_data-mdv01.
    PERFORM bdc_field       USING 'MKAL-ELPRO'
                                  wa_data-elpro.
    PERFORM bdc_field       USING 'MKAL-ALORT'
                                  wa_data-alort.

    PERFORM bdc_dynpro      USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  '01/02'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=RW'.

    PERFORM bdc_dynpro      USING 'SAPLMDIA' '0200'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MKAL-TEXT1'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.

    PERFORM bdc_dynpro      USING 'SAPLMDIA' '0100'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'RM03T-AKTZL'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=ENTR'.

    PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=BU'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'MAKT-MAKTX'.

    IF p_modea = 'X'.
      l_option = 'A'.
    ELSEIF p_modee = 'X'.
      l_option = 'E'.
    ELSEIF p_moden = 'X'.
      l_option = 'N'.
    ENDIF.

    CALL TRANSACTION 'MM02' USING it_bdcdata MODE l_option
          UPDATE 'S' MESSAGES INTO it_bdcmsg.

    REFRESH it_bdcdata.

    PERFORM write_msg using wa_data-matnr.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 03:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-the-transaction-mm02-for-production-version-mass-processing/m-p/5577642#M1272178</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-05-05T03:01:21Z</dc:date>
    </item>
  </channel>
</rss>

