<?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: Material master upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412006#M198355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you can use either BDC / LSMW for your requirement..&lt;/P&gt;&lt;P&gt;I would prefer LSMW over BDC due no/less code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 01:31:58 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-07-06T01:31:58Z</dc:date>
    <item>
      <title>Material master upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412005#M198354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to upload material master data with basic , sales , plant, purchasing, MRP , accounting and costing views. Please let me know the best way to do this. With LSMW will there be any programming required. and how should the input file be for these views. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 01:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412005#M198354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T01:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Material master upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412006#M198355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you can use either BDC / LSMW for your requirement..&lt;/P&gt;&lt;P&gt;I would prefer LSMW over BDC due no/less code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 01:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412006#M198355</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-06T01:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Material master upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412007#M198356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the below steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Tcode MM01 -- Maintain the source fields are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) mara-amtnr char(18)&lt;/P&gt;&lt;P&gt;2) mara-mbrsh char(1)&lt;/P&gt;&lt;P&gt;3) mara-mtart char(4)&lt;/P&gt;&lt;P&gt;4) makt-maktx char(40)&lt;/P&gt;&lt;P&gt;5) mara-meins char(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flate file format is like this as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAT991,C,COUP,Srinivas material01,Kg&lt;/P&gt;&lt;P&gt;MAT992,C,COUP,Srinivas material02,Kg&lt;/P&gt;&lt;P&gt;AMT993,C,COUP,Srinivas material03,Kg&lt;/P&gt;&lt;P&gt;MAT994,C,COUP,Srinivas material04,Kg&lt;/P&gt;&lt;P&gt;MAT995,C,COUP,Srinivas material05,Kg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto Tcode LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give Project Name&lt;/P&gt;&lt;P&gt;Subproject Name&lt;/P&gt;&lt;P&gt;object Name&lt;/P&gt;&lt;P&gt;Press Enter -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Press Execute Button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives 13 radio-Button Options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following 13 steps as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) select radio-Button 1 and execute &lt;/P&gt;&lt;P&gt;Maintain Object Attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select Standard Batch/Direct Input&lt;/P&gt;&lt;P&gt;give Object -- 0020&lt;/P&gt;&lt;P&gt;Method -- 0000&lt;/P&gt;&lt;P&gt;save &amp;amp; Come Back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) select radio-Button 2 and execute&lt;/P&gt;&lt;P&gt;Maintain Source Structures&lt;/P&gt;&lt;P&gt;select the source structure and got to click on create button&lt;/P&gt;&lt;P&gt;give source structure name &amp;amp; Description&lt;/P&gt;&lt;P&gt;save &amp;amp; Come Back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) select radio-Button 3 and execute&lt;/P&gt;&lt;P&gt;Maintain Source Fields&lt;/P&gt;&lt;P&gt;select the source structure and click on create button&lt;/P&gt;&lt;P&gt;give &lt;/P&gt;&lt;P&gt;first field&lt;/P&gt;&lt;P&gt;field name matnr&lt;/P&gt;&lt;P&gt;Field Label material Number&lt;/P&gt;&lt;P&gt;Field Length 18&lt;/P&gt;&lt;P&gt;Field Type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second field&lt;/P&gt;&lt;P&gt;field name mbrsh&lt;/P&gt;&lt;P&gt;Field Label Industrial Sector&lt;/P&gt;&lt;P&gt;Field Length 1&lt;/P&gt;&lt;P&gt;Field Type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third field&lt;/P&gt;&lt;P&gt;field name mtart&lt;/P&gt;&lt;P&gt;Field Label material type&lt;/P&gt;&lt;P&gt;Field Length 4&lt;/P&gt;&lt;P&gt;Field Type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fourth field&lt;/P&gt;&lt;P&gt;field name maktx&lt;/P&gt;&lt;P&gt;Field Label material description&lt;/P&gt;&lt;P&gt;Field Length 40&lt;/P&gt;&lt;P&gt;Field Type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fifth field&lt;/P&gt;&lt;P&gt;field name meins&lt;/P&gt;&lt;P&gt;Field Label base unit of measurement&lt;/P&gt;&lt;P&gt;Field Length 3&lt;/P&gt;&lt;P&gt;Field Type C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) select radio-Button 4 and execute&lt;/P&gt;&lt;P&gt;Maintain Structure Relations&lt;/P&gt;&lt;P&gt;go to blue lines &lt;/P&gt;&lt;P&gt;select first blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;select Second blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;select Third blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) select radio-Button 5 and execute&lt;/P&gt;&lt;P&gt;Maintain Field Mapping and Conversion Rules&lt;/P&gt;&lt;P&gt;Select the Tcode and click on Rule button there you will select constant &lt;/P&gt;&lt;P&gt;and press continue button&lt;/P&gt;&lt;P&gt;give Transaction Code : MM01 and press Enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that &lt;/P&gt;&lt;P&gt;1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter&lt;/P&gt;&lt;P&gt;2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter&lt;/P&gt;&lt;P&gt;3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter&lt;/P&gt;&lt;P&gt;4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter&lt;/P&gt;&lt;P&gt;5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter&lt;/P&gt;&lt;P&gt;finally &lt;/P&gt;&lt;P&gt;save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) select radio-Button 6 and execute&lt;/P&gt;&lt;P&gt;Maintain Fixed Values, Translations, User-Defined Routines&lt;/P&gt;&lt;P&gt;Create FIXED VALUE Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;Create Translations Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;Create User-Defined Routines Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that delete all the above three just created in the 6th step &lt;/P&gt;&lt;P&gt;FIXED VALUE --MM01&lt;/P&gt;&lt;P&gt;Translations --MM01&lt;/P&gt;&lt;P&gt;User-Defined Routines --MM01&lt;/P&gt;&lt;P&gt;come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) select radio-Button 7 and execute&lt;/P&gt;&lt;P&gt;Specify Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select On the PC (Frontend) -- and click on Create button(f5)&lt;/P&gt;&lt;P&gt;give the path of the file like "c:\material_data.txt"&lt;/P&gt;&lt;P&gt;description : -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;separators as select comma radiao- button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and press enter save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; select radio-Button 8 and execute&lt;/P&gt;&lt;P&gt;Assign Files&lt;/P&gt;&lt;P&gt;Save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9) select radio-Button 9 and execute&lt;/P&gt;&lt;P&gt;Read Files&lt;/P&gt;&lt;P&gt;Execute&lt;/P&gt;&lt;P&gt;come back&lt;/P&gt;&lt;P&gt;come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10) select radio-Button 10 and execute&lt;/P&gt;&lt;P&gt;Display Imported Data&lt;/P&gt;&lt;P&gt;Execute and press enter&lt;/P&gt;&lt;P&gt;come back&lt;/P&gt;&lt;P&gt;Come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11) select radio-Button 11 and execute&lt;/P&gt;&lt;P&gt;Convert Data&lt;/P&gt;&lt;P&gt;Execute &lt;/P&gt;&lt;P&gt;come back&lt;/P&gt;&lt;P&gt;Come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12) select radio-Button 12 and execute&lt;/P&gt;&lt;P&gt;Display Converted Data&lt;/P&gt;&lt;P&gt;Execute &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13) select radio-Button 13 and execute&lt;/P&gt;&lt;P&gt;Start Direct Input Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the Program&lt;/P&gt;&lt;P&gt;select continue button&lt;/P&gt;&lt;P&gt;go with via physical file&lt;/P&gt;&lt;P&gt;give the lock mode as 'E'&lt;/P&gt;&lt;P&gt;and execute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 05:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412007#M198356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T05:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Material master upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412008#M198357</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; LSMW would be the better option as this uploads the materials using the standard program RMDATIND ( which is a direct input method program, updates the relevant structures in SAP ), you dont have to code more, only the data mapping should be proper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 05:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412008#M198357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T05:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Material master upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412009#M198358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai DP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Eighther BDC/LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Think LSMW is faster than BDC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will send you both the process for uploading Material Data to MARA/ MAKT Tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="33819"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC SESSION&lt;/P&gt;&lt;P&gt;CALL TRANSACTION&lt;/P&gt;&lt;P&gt;CALL DIALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is BDC or batch input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Batch Input is a SAP technic that allows automating the input in transactions. It lies on a BDC (Batch Data Commands) scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#12539; BDC_OPEN_GROUP : Opens a session group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#12539; BDC_CLOSE_GROUP : Closes a session&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#12539; BDC_INSERT : Insert a BDC scenario in the session&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#12539; The ABAP statement "CALL TRANSACTION" is also called to run directly a transaction from its BDC table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It runs the program RSBDCSUB in order to launch automatically the session. The session management is done through the transaction code SM35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The object itself is maintanable through the transaction SE24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method &lt;/P&gt;&lt;P&gt;Description &lt;/P&gt;&lt;P&gt;Parameters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN_SESSION&lt;/P&gt;&lt;P&gt;Opens a session&lt;/P&gt;&lt;P&gt;SUBRC (Return Code ? 0 OK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SESSIONNAME (Session to be created)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE_SESSION&lt;/P&gt;&lt;P&gt;Closes a session&lt;/P&gt;&lt;P&gt;None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESET_BDCDATA&lt;/P&gt;&lt;P&gt;Resets the BDC Internal Table...&lt;/P&gt;&lt;P&gt;None. Normally, for internal purpose&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_DYNPRO&lt;/P&gt;&lt;P&gt;Handles a new screen&lt;/P&gt;&lt;P&gt;PROGNAME (Name of the program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNPRONR (Screen Number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_FIELD&lt;/P&gt;&lt;P&gt;Puts a value on the screen&lt;/P&gt;&lt;P&gt;FIELDNAME (Name of the field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDVALUE (Value to be passed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTRUCTOR&lt;/P&gt;&lt;P&gt;Constructor - Initializes NO_DATA&lt;/P&gt;&lt;P&gt;NODATA (No data character). The constructor is called automatically when the object is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN_SESSION&lt;/P&gt;&lt;P&gt;Launches a session with RSBDCBTC&lt;/P&gt;&lt;P&gt;None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_TRANSACTION&lt;/P&gt;&lt;P&gt;Calls a transaction with the current BDC Data&lt;/P&gt;&lt;P&gt;MODE (Display Mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE (Update Mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCODE (Transaction to be called)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;Inserts the BDC scenario in the session&lt;/P&gt;&lt;P&gt;TCODE (Transaction to be called)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC techniques used in programs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Building a BDC table and calling a transaction,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Building a session and a set of BDC scenarios and keeping the session available in SM35,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Building a session and lauching the transaction right after closing the session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;BDC using Call Transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC using Call transaction involves calling an SAP transaction in back ground from within the ABAP &lt;/P&gt;&lt;P&gt;program. The process involves building an Internal BDC table containing the screen information needed to &lt;/P&gt;&lt;P&gt;execute the required transaction and then passing this to the Call transaction command (See code example). &lt;/P&gt;&lt;P&gt;The full procedure for creating a BDC program is as follows:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;What is the difference between batch input and call transaction in BDC? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session method. &lt;/P&gt;&lt;P&gt;1) synchronous processing. &lt;/P&gt;&lt;P&gt;2) can tranfer large amount of data. &lt;/P&gt;&lt;P&gt;3) processing is slower. &lt;/P&gt;&lt;P&gt;4) error log is created &lt;/P&gt;&lt;P&gt;5) data is not updated until session is processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction. &lt;/P&gt;&lt;P&gt;1) asynchronous processing &lt;/P&gt;&lt;P&gt;2) can transfer small amount of data &lt;/P&gt;&lt;P&gt;3) processing is faster. &lt;/P&gt;&lt;P&gt;4) errors need to be handled explicitly &lt;/P&gt;&lt;P&gt;5) data is updated automatically &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;BATINPUT/DIRECT INPUT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;A: Batch-inputs can not be used to fill the "delivery due list" screen because it is not a dynpro. This is a standard SAP report. A SAP report (check with "System -&amp;gt; Status") may be called using SUBMIT sentence with the appropriate options . It is preferred to call a report than create a Batch-input program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO THROUGH THIS LINK&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm" target="test_blank"&gt;http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check with this 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;when your selecting views &lt;/P&gt;&lt;P&gt;this particular material will belongs to Po/Sales or some other areas .&lt;/P&gt;&lt;P&gt;when you select basic 1 --it gives description &lt;/P&gt;&lt;P&gt;select basic 2 -- it gives tax ,amount, base unit of measurement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For LSMW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Tcode MM01 -- Maintain the source fields are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) mara-amtnr  char(18)&lt;/P&gt;&lt;P&gt;2) mara-mbrsh  char(1)&lt;/P&gt;&lt;P&gt;3) mara-mtart  char(4)&lt;/P&gt;&lt;P&gt;4) makt-maktx  char(40)&lt;/P&gt;&lt;P&gt;5) mara-meins  char(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flate file format is like this as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAT991,C,COUP,Srinivas material01,Kg&lt;/P&gt;&lt;P&gt;MAT992,C,COUP,Srinivas material02,Kg&lt;/P&gt;&lt;P&gt;AMT993,C,COUP,Srinivas material03,Kg&lt;/P&gt;&lt;P&gt;MAT994,C,COUP,Srinivas material04,Kg&lt;/P&gt;&lt;P&gt;MAT995,C,COUP,Srinivas material05,Kg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto Tcode LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give Project Name&lt;/P&gt;&lt;P&gt;     Subproject Name&lt;/P&gt;&lt;P&gt;     object Name&lt;/P&gt;&lt;P&gt;Press Enter -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Press Execute Button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives 13 radio-Button Options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following 13 steps as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) select radio-Button 1 and execute &lt;/P&gt;&lt;P&gt;   Maintain Object Attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select Standard Batch/Direct Input&lt;/P&gt;&lt;P&gt;   give Object -- 0020&lt;/P&gt;&lt;P&gt;       Method -- 0000&lt;/P&gt;&lt;P&gt;   save &amp;amp; Come Back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) select radio-Button 2 and execute&lt;/P&gt;&lt;P&gt;   Maintain Source Structures&lt;/P&gt;&lt;P&gt;   select the source structure and got to click on create button&lt;/P&gt;&lt;P&gt;   give source structure name &amp;amp; Description&lt;/P&gt;&lt;P&gt;   save &amp;amp; Come Back&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;3) select radio-Button 3 and execute&lt;/P&gt;&lt;P&gt;   Maintain Source Fields&lt;/P&gt;&lt;P&gt;   select the source structure and click on create button&lt;/P&gt;&lt;P&gt;   give &lt;/P&gt;&lt;P&gt;   first field&lt;/P&gt;&lt;P&gt;        field name    matnr&lt;/P&gt;&lt;P&gt;        Field Label   material Number&lt;/P&gt;&lt;P&gt;        Field Length  18&lt;/P&gt;&lt;P&gt;        Field Type    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Second field&lt;/P&gt;&lt;P&gt;        field name    mbrsh&lt;/P&gt;&lt;P&gt;        Field Label   Industrial Sector&lt;/P&gt;&lt;P&gt;        Field Length  1&lt;/P&gt;&lt;P&gt;        Field Type    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Third field&lt;/P&gt;&lt;P&gt;        field name    mtart&lt;/P&gt;&lt;P&gt;        Field Label   material type&lt;/P&gt;&lt;P&gt;        Field Length  4&lt;/P&gt;&lt;P&gt;        Field Type    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   fourth field&lt;/P&gt;&lt;P&gt;        field name    maktx&lt;/P&gt;&lt;P&gt;        Field Label   material description&lt;/P&gt;&lt;P&gt;        Field Length  40&lt;/P&gt;&lt;P&gt;        Field Type    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   fifth field&lt;/P&gt;&lt;P&gt;        field name    meins&lt;/P&gt;&lt;P&gt;        Field Label   base unit of measurement&lt;/P&gt;&lt;P&gt;        Field Length  3&lt;/P&gt;&lt;P&gt;        Field Type    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) select radio-Button 4 and execute&lt;/P&gt;&lt;P&gt;   Maintain Structure Relations&lt;/P&gt;&lt;P&gt;   go to blue lines  &lt;/P&gt;&lt;P&gt;      select first blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;      select Second blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;      select Third blue line and click on create relationship button&lt;/P&gt;&lt;P&gt;  save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) select radio-Button 5 and execute&lt;/P&gt;&lt;P&gt;   Maintain Field Mapping and Conversion Rules&lt;/P&gt;&lt;P&gt;   Select the Tcode and click on Rule button there you will select constant &lt;/P&gt;&lt;P&gt;   and press continue button&lt;/P&gt;&lt;P&gt;   give Transaction Code : MM01 and press Enter&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   after that &lt;/P&gt;&lt;P&gt;   1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter&lt;/P&gt;&lt;P&gt;   2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter&lt;/P&gt;&lt;P&gt;   3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter&lt;/P&gt;&lt;P&gt;   4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter&lt;/P&gt;&lt;P&gt;   5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter&lt;/P&gt;&lt;P&gt;  finally	 &lt;/P&gt;&lt;P&gt;  save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) select radio-Button 6 and execute&lt;/P&gt;&lt;P&gt;   Maintain Fixed Values, Translations, User-Defined Routines&lt;/P&gt;&lt;P&gt;   Create FIXED VALUE Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;   Create Translations Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;   Create User-Defined Routines Name &amp;amp; Description as MM01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   after that delete  all the above three just created in the 6th step &lt;/P&gt;&lt;P&gt;   FIXED VALUE --MM01&lt;/P&gt;&lt;P&gt;   Translations --MM01&lt;/P&gt;&lt;P&gt;   User-Defined Routines --MM01&lt;/P&gt;&lt;P&gt;   come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) select radio-Button 7 and execute&lt;/P&gt;&lt;P&gt;   Specify Files&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   select On the PC (Frontend) -- and click on Create button(f5)&lt;/P&gt;&lt;P&gt;                                  give the path of the file like "c:\material_data.txt"&lt;/P&gt;&lt;P&gt;                                  description : -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;                                  separators as select comma radiao- button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   and press enter   save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; select radio-Button 8 and execute&lt;/P&gt;&lt;P&gt;   Assign Files&lt;/P&gt;&lt;P&gt;   Save &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9) select radio-Button 9 and execute&lt;/P&gt;&lt;P&gt;   Read Files&lt;/P&gt;&lt;P&gt;   Execute&lt;/P&gt;&lt;P&gt;   come back&lt;/P&gt;&lt;P&gt;   come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10) select radio-Button 10 and execute&lt;/P&gt;&lt;P&gt;    Display Imported Data&lt;/P&gt;&lt;P&gt;    Execute and press enter&lt;/P&gt;&lt;P&gt;    come back&lt;/P&gt;&lt;P&gt;    Come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11) select radio-Button 11 and execute&lt;/P&gt;&lt;P&gt;    Convert Data&lt;/P&gt;&lt;P&gt;    Execute &lt;/P&gt;&lt;P&gt;    come back&lt;/P&gt;&lt;P&gt;    Come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12) select radio-Button 12 and execute&lt;/P&gt;&lt;P&gt;    Display Converted Data&lt;/P&gt;&lt;P&gt;    Execute &amp;amp; come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13) select radio-Button 13 and execute&lt;/P&gt;&lt;P&gt;    Start Direct Input Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select the Program&lt;/P&gt;&lt;P&gt;   select continue button&lt;/P&gt;&lt;P&gt;go with via physical file&lt;/P&gt;&lt;P&gt; give the lock mode as 'E'&lt;/P&gt;&lt;P&gt;and execute&lt;/P&gt;&lt;P&gt;&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>Thu, 06 Jul 2006 08:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-master-upload/m-p/1412009#M198358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T08:58:11Z</dc:date>
    </item>
  </channel>
</rss>

