<?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: Price change BDC using MR21 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996837#M1494655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Records the BDC recording with the DEFAULT SIZE checkbox tick while recording this will solve the problem of the no of entries difference on different m/c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madhukar Shetty on Jun 9, 2010 7:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 05:57:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-09T05:57:08Z</dc:date>
    <item>
      <title>Price change BDC using MR21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996834#M1494652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to update price of material using t-code MR21. We have around 18000 material. &lt;/P&gt;&lt;P&gt;We have created a BDC for this. The problem is that MR21 takes some entries in first screen and then we have to page down to pass furthur entries. We are facing problem in passing entries after page down. Also we have noticed that when we run MR21 in one machine it takes 20 entries in first screen, if run in the second screen it takes 13 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to pass entries using page down in MR21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 04:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996834#M1494652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T04:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Price change BDC using MR21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996835#M1494653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajiv ,&lt;/P&gt;&lt;P&gt;First I will suggest you to go for LSMW instead of BDC . It will solve most of such problems for you.&lt;/P&gt;&lt;P&gt;Secondly in BDC you will specifically have to write a logic to handle this situation.&lt;/P&gt;&lt;P&gt;As mentioned below , as its taking different number of entries : is it fix that it always takes 2o entries in first screen and 13 in second. Thne you can handle this in BDC code. but if that is different in dufferent runs then you can do as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as below&lt;/P&gt;&lt;P&gt;Do a BDC Recording where you will all the time click on the next page icon while making entry for every item. Hope you get this. It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 05:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996835#M1494653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T05:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Price change BDC using MR21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996836#M1494654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajiv ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the bapi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_MATVAL_PRICE_CHANGE&lt;/P&gt;&lt;P&gt;BAPI_M_REVAL_CREATEPRICECHANGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 05:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996836#M1494654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T05:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Price change BDC using MR21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996837#M1494655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Records the BDC recording with the DEFAULT SIZE checkbox tick while recording this will solve the problem of the no of entries difference on different m/c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madhukar Shetty on Jun 9, 2010 7:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 05:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996837#M1494655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T05:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Price change BDC using MR21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996838#M1494656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajiv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there is index problem in MR21 BDC, I faced the same one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving you my code from MR21 BDC, I am sure this will help you to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If other help required, kindly reply - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLEAR w_index.

  DESCRIBE TABLE it_exceldata LINES data_lines.

  LOOP AT it_exceldata .

    w_index = w_index + 1.             "****************

    PERFORM bdc_dynpro USING 'SAPRCKM_MR21' '0201'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=ENTR'.

    PERFORM bdc_tfield  USING 'CKI_MR21_0250-MATNR'       it_exceldata-matnr       w_index.
    PERFORM bdc_tfield  USING 'CKI_MR21_0250-NEWVALPR'    it_exceldata-newvalpr    w_index.

    nxtpage = w_index MOD 11.      "********************

    IF nxtpage = 0.
      CLEAR w_index.
      PERFORM bdc_dynpro      USING 'SAPRCKM_MR21' '0201'.
      PERFORM bdc_field USING 'BDC_OKCODE' '=DOWN'.
    ENDIF.

  ENDLOOP.

  PERFORM bdc_dynpro USING 'SAPRCKM_MR21' '0201'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=SAVE'.

  CALL TRANSACTION 'MR21' USING bdcdata
                          MODE  v_mode
                          UPDATE 'A'
                          MESSAGES INTO itab_bdc.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashlesha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 11:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/price-change-bdc-using-mr21/m-p/6996838#M1494656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T11:16:40Z</dc:date>
    </item>
  </channel>
</rss>

