<?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: Batch Input HELP!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377331#M184803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I hope it works.&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;Sampath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2006 15:05:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-16T15:05:17Z</dc:date>
    <item>
      <title>Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377325#M184797</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;I'm working in SD and I'm doing my first Batch Input called from a program, the problem is when I execute it in mode 'A' or 'E' changes are made, but if I execute it in mode 'N' no changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The batch input execute MM01, but exactly when is selecting the views I have to drop down the scroll to select two check box more data is loose (no show on screen) and the action is not completed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you could give me some ideas because it's urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.D. The language is 'ES' (Spanish - Español).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adavance.&lt;/P&gt;&lt;P&gt;Tokio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377325#M184797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377326#M184798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of doing a bdc for mm01 try using the bapi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the link &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; for how to pass the data to the bapi.&lt;/P&gt;&lt;P&gt;This way you can be relieved of handling the scrolling up and down in the screens dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377326#M184798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377327#M184799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BDC over MM01 is tough.  You will never get it to work 100% evertime.   I would strongly suggest using BAPI_MATERIAL_SAVEDATA.  Here is a sample program which creates a material with the least amount of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003 .

data: headdata type bapimathead.
data: clientdata type bapi_mara.
data: clientdatax type bapi_marax.
data: descdata type table of BAPI_MAKT with header line.
data: return type  bapiret2 .
data: returnm type table of bapi_matreturn2 with header line.
data: xmara type mara.


parameters: p_matnr type mara-matnr.


headdata-material        = p_matnr.
headdata-ind_sector      = 'M'.
headdata-matl_type       = 'FERT'.
headdata-basic_view = 'X'.


clientdata-BASE_UOM   = 'EA'.
clientdatax-BASE_UOM   = 'X'.
clientdata-old_mat_no = 'Old Material'.
clientdatax-old_mat_no = 'X'.
clientdata-division = '00'.
clientdatax-division = 'X'.

descdata-LANGU = sy-langu.
descdata-MATL_DESC = 'This is the description'.
append descdata.

call function 'BAPI_MATERIAL_SAVEDATA'
  exporting
    headdata                   = headdata
    clientdata                 = clientdata
    clientdatax                = clientdatax
*   PLANTDATA                  =
*   PLANTDATAX                 =
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
*   STORAGELOCATIONDATA        =
*   STORAGELOCATIONDATAX       =
*   VALUATIONDATA              =
*   VALUATIONDATAX             =
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
*   SALESDATA                  =
*   SALESDATAX                 =
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
 importing
   return                     = return
  tables
    MATERIALDESCRIPTION        = descdata
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
*   TAXCLASSIFICATIONS         =
    returnmessages             = returnm
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
          .

check sy-subrc  = 0.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377327#M184799</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-16T14:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377328#M184800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI CHANG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK THIS LINK&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1617886"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHICH HAS SOME BDC CODE FOR MM01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS,&lt;/P&gt;&lt;P&gt;PRIYA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377328#M184800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377329#M184801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Its better to use the BAPI FM 'BAPI_MATERIAL_SAVEDATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BDC is not preferable for MM01 transaction where as the standard BAPI FM is available for the same.&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;Sampath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377329#M184801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377330#M184802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all of you... but I apologize for answering ... Does 'BAPI_MATERIAL_SAVEDATA' works for v 4.0B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tokio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377330#M184802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377331#M184803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I hope it works.&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;Sampath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 15:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377331#M184803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377332#M184804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tokio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_SAVEDATA is not available in 4.0B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use BDC to create material. For selecting views, you can use this tables as references to find out the sequence number prior to code the BDC program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;T133A&lt;/P&gt;&lt;P&gt;T133B&lt;/P&gt;&lt;P&gt;T133*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 15:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377332#M184804</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-05-16T15:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377333#M184805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to solve this problem checking the Batch Input which I created, code lines and views selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was a very hard and slow job but I learned, that's the way you get knowlodgement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all of you too, because you're always there, helping people like me (beginner).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tokio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 23:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377333#M184805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T23:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input HELP!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377334#M184806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Takio Franco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;mbrsh like mara-mbrsh,&lt;/P&gt;&lt;P&gt;mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;meins like mara-meins,&lt;/P&gt;&lt;P&gt;end of it_mara.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;perform upload_data.&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;it_mara-matnr.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;it_mara-mbrsh.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;it_mara-mtart.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'MSICHTAUSW-DYTXT(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MSICHTAUSW-KZSEL(02)'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;it_mara-maktx.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;it_mara-meins.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form upload_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM upload_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'c:\mat_bdc.txt'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = it_mara.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;SORT IT_MARA BY MATNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " upload_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flat file structure is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRANIT_011 CCOUP This is Testing material kg &lt;/P&gt;&lt;P&gt;PRANIT_012 CCOUP This is Testing material kg &lt;/P&gt;&lt;P&gt;PRANIT_013 CCOUP This is Testing material kg &lt;/P&gt;&lt;P&gt;PRANIT_014 CCOUP This is Testing material kg &lt;/P&gt;&lt;P&gt;PRANIT_015 CCOUP This is Testing material kg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 07:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-help/m-p/1377334#M184806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T07:50:16Z</dc:date>
    </item>
  </channel>
</rss>

