<?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: Error While Migrating material Master using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244912#M1913387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See, if I just amend your code then I doubt that you learn much. &lt;/P&gt;&lt;P&gt;There are so many things unconsidered in your code that it is even difficult to know where to start.&lt;/P&gt;&lt;P&gt;Do you had an ABAP training at all?&lt;/P&gt;&lt;P&gt;Do you know debugging?&lt;/P&gt;&lt;P&gt;Can you read the code?&lt;/P&gt;&lt;P&gt;Did you ever create a material master with its standard transaction?&lt;/P&gt;&lt;P&gt;Do you have a fundamental understanding of material masters?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am certainly willing to help people over a hurdle, but you actually asked i shall send you the corrected code, and this is not my goal and is not the purpose of SCN either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bapi is pretty much structured according to the tables used to store material master information.&lt;/P&gt;&lt;P&gt;if you understand ABAP coding then you can see that almost anything is commented, which means will not be processed. What kind of material do you expect to create?&lt;/P&gt;&lt;P&gt;It&amp;nbsp; might not be a bad approach to start small on one side, but you are actually fighting against a problem which you probably would not see if you tried to migrate a real material, which has all kind of plant views etc.&lt;/P&gt;&lt;P&gt;Back to your coding. You just cared about MARA the general data of a material. Goto MM01 and maintain the same values in the screen, then check the tables, MARA, MAKT, MARM (just to give you one more hint)&lt;/P&gt;&lt;P&gt;do all 3&amp;nbsp; tables have entries or only MARA?&lt;/P&gt;&lt;P&gt;If you see values in all three tables, then your coding just for MARA is to less to create a material. Would you share this opinion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 11:04:53 GMT</pubDate>
    <dc:creator>JL23</dc:creator>
    <dc:date>2015-09-03T11:04:53Z</dc:date>
    <item>
      <title>Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244906#M1913381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hi all,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Am getting Error Like material not created can any one help me on this. Am trying to migrate material master using standard bapi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATA : WA_HEADDATA TYPE BAPIMATHEAD,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATA TYPE BAPI_MARA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATAX TYPE BAPI_MARAX.&lt;/P&gt;&lt;P&gt;DATA : IT_MATERIALDESCRIPTION TYPE TABLE OF BAPI_MAKT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_MATERIALDESCRIPTION TYPE BAPI_MAKT.&lt;/P&gt;&lt;P&gt;DATA : IT_RETURN TYPE TABLE OF BAPIRET2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_RETURN TYPE BAPIRET2.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_MARA, "internal table as per flat file structure&lt;/P&gt;&lt;P&gt;&amp;nbsp; MATNR TYPE MARA-MATNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MTART TYPE MARA-MTART,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MBRSH TYPE MARA-MBRSH,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MATKL TYPE MARA-MATKL,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MEINS TYPE MARA-MEINS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MAKTX TYPE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;&amp;nbsp; END OF TY_MARA.&lt;/P&gt;&lt;P&gt;DATA : IT_MARA TYPE TABLE OF TY_MARA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_MARA TYPE TY_MARA.&lt;/P&gt;&lt;P&gt;**selection screen&lt;/P&gt;&lt;P&gt;PARAMETERS: P_FILE TYPE RLGRAP-FILENAME. "file input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE. "f4 helop for file input&lt;/P&gt;&lt;P&gt;&amp;nbsp; PERFORM FILE_HELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON HELP-REQUEST FOR P_FILE. "F1 help for file input&lt;/P&gt;&lt;P&gt;&amp;nbsp; MESSAGE 'Please press f4 to select file' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA : LV_FILE TYPE STRING.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LV_FILE = P_FILE. "to avoid type conflict&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'GUI_UPLOAD' "upload flat file&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; FILENAME = LV_FILE&lt;/P&gt;&lt;P&gt;&amp;nbsp; FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;&amp;nbsp; HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;* HEADER_LENGTH = 0&lt;/P&gt;&lt;P&gt;* READ_BY_LINE = 'X'&lt;/P&gt;&lt;P&gt;* DAT_MODE = ' '&lt;/P&gt;&lt;P&gt;* CODEPAGE = ' '&lt;/P&gt;&lt;P&gt;* IGNORE_CERR = ABAP_TRUE&lt;/P&gt;&lt;P&gt;* REPLACEMENT = '#'&lt;/P&gt;&lt;P&gt;* CHECK_BOM = ' '&lt;/P&gt;&lt;P&gt;* VIRUS_SCAN_PROFILE =&lt;/P&gt;&lt;P&gt;* NO_AUTH_CHECK = ' '&lt;/P&gt;&lt;P&gt;* IMPORTING&lt;/P&gt;&lt;P&gt;* FILELENGTH =&lt;/P&gt;&lt;P&gt;* HEADER =&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA_TAB = IT_MARA "internal table&lt;/P&gt;&lt;P&gt;* CHANGING&lt;/P&gt;&lt;P&gt;* ISSCANPERFORMED = ' '&lt;/P&gt;&lt;P&gt;* EXCEPTIONS&lt;/P&gt;&lt;P&gt;* FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;* FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;* NO_BATCH = 3&lt;/P&gt;&lt;P&gt;* GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;* INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;* NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;* UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;* BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;* HEADER_NOT_ALLOWED = 9&lt;/P&gt;&lt;P&gt;* SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;* HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;* UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;* ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;* DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;* DISK_FULL = 15&lt;/P&gt;&lt;P&gt;* DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;* OTHERS = 17&lt;/P&gt;&lt;P&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;* Implement suitable error handling here&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP AT IT_MARA INTO WA_MARA.&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_HEADDATA-MATERIAL = WA_MARA-MATNR. "material no&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_HEADDATA-IND_SECTOR = WA_MARA-MBRSH. "industry sector&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_HEADDATA-MATL_TYPE = WA_MARA-MTART. "material type&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_HEADDATA-BASIC_VIEW = 'X'. "basic view&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATA-MATL_GROUP = WA_MARA-MATKL. "material group&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATA-BASE_UOM = WA_MARA-MEINS. "base Unit Of measure&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATAX-MATL_GROUP = 'X'. "passing material group&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_CLIENTDATAX-BASE_UOM = 'X'. "passing base unit of measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_MATERIALDESCRIPTION-LANGU = 'EN'. "english language&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_MATERIALDESCRIPTION-LANGU_ISO = 'EN'. "ISO language&lt;/P&gt;&lt;P&gt;&amp;nbsp; WA_MATERIALDESCRIPTION-MATL_DESC = WA_MARA-MAKTX. "material descriptions&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPEND WA_MATERIALDESCRIPTION TO IT_MATERIALDESCRIPTION.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLEAR WA_MATERIALDESCRIPTION.&lt;/P&gt;&lt;P&gt;**Create/update materials using BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; HEADDATA = WA_HEADDATA&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLIENTDATA = WA_CLIENTDATA&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLIENTDATAX = WA_CLIENTDATAX&lt;/P&gt;&lt;P&gt;* PLANTDATA = WA_PLANTDATA&lt;/P&gt;&lt;P&gt;* PLANTDATAX = WA_PLANTDATAX&lt;/P&gt;&lt;P&gt;* FORECASTPARAMETERS =&lt;/P&gt;&lt;P&gt;* FORECASTPARAMETERSX =&lt;/P&gt;&lt;P&gt;* PLANNINGDATA =&lt;/P&gt;&lt;P&gt;* PLANNINGDATAX =&lt;/P&gt;&lt;P&gt;* STORAGELOCATIONDATA = WA_STORAGELOCATIONDATA&lt;/P&gt;&lt;P&gt;* STORAGELOCATIONDATAX = WA_STORAGELOCATIONDATAX&lt;/P&gt;&lt;P&gt;* VALUATIONDATA =&lt;/P&gt;&lt;P&gt;* VALUATIONDATAX =&lt;/P&gt;&lt;P&gt;* WAREHOUSENUMBERDATA =&lt;/P&gt;&lt;P&gt;* WAREHOUSENUMBERDATAX =&lt;/P&gt;&lt;P&gt;* SALESDATA = WA_SALESDATA&lt;/P&gt;&lt;P&gt;* SALESDATAX = WA_SALESDATAX&lt;/P&gt;&lt;P&gt;* STORAGETYPEDATA =&lt;/P&gt;&lt;P&gt;* STORAGETYPEDATAX =&lt;/P&gt;&lt;P&gt;* FLAG_ONLINE = ' '&lt;/P&gt;&lt;P&gt;* FLAG_CAD_CALL = ' '&lt;/P&gt;&lt;P&gt;* NO_DEQUEUE = ' '&lt;/P&gt;&lt;P&gt;* NO_ROLLBACK_WORK = ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; RETURN = WA_RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp; MATERIALDESCRIPTION = IT_MATERIALDESCRIPTION&lt;/P&gt;&lt;P&gt;* UNITSOFMEASURE = IT_UNITSOFMEASURE&lt;/P&gt;&lt;P&gt;* UNITSOFMEASUREX = IT_UNITSOFMEASUREX&lt;/P&gt;&lt;P&gt;* INTERNATIONALARTNOS =&lt;/P&gt;&lt;P&gt;* MATERIALLONGTEXT = IT_MATERIALLONGTEXT&lt;/P&gt;&lt;P&gt;* TAXCLASSIFICATIONS = IT_TAXCLASSIFICATIONS&lt;/P&gt;&lt;P&gt;* RETURNMESSAGES = IT_RETURN&lt;/P&gt;&lt;P&gt;* PRTDATA =&lt;/P&gt;&lt;P&gt;* PRTDATAX =&lt;/P&gt;&lt;P&gt;* EXTENSIONIN =&lt;/P&gt;&lt;P&gt;* EXTENSIONINX =&lt;/P&gt;&lt;P&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF WA_RETURN-TYPE = 'E'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; WRITE:/ WA_HEADDATA-MATERIAL, 'is not created' COLOR 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; WAIT = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; WRITE:/ WA_HEADDATA-MATERIAL, 'is created' COLOR 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;FORM FILE_HELP .&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'KD_GET_FILENAME_ON_F4' "get file name on F4 help&lt;/P&gt;&lt;P&gt;* EXPORTING&lt;/P&gt;&lt;P&gt;* PROGRAM_NAME = SYST-REPID&lt;/P&gt;&lt;P&gt;* DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;P&gt;* FIELD_NAME = ' '&lt;/P&gt;&lt;P&gt;* STATIC = ' '&lt;/P&gt;&lt;P&gt;* MASK = ' '&lt;/P&gt;&lt;P&gt;* FILEOPERATION = 'R'&lt;/P&gt;&lt;P&gt;* PATH =&lt;/P&gt;&lt;P&gt;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp; FILE_NAME = P_FILE&lt;/P&gt;&lt;P&gt;* LOCATION_FLAG = 'P'&lt;/P&gt;&lt;P&gt;* EXCEPTIONS&lt;/P&gt;&lt;P&gt;* MASK_TOO_LONG = 1&lt;/P&gt;&lt;P&gt;* OTHERS = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;* Implement suitable error handling here&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " FILE_HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 04:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244906#M1913381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-01T04:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244907#M1913382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had you ever done such task before?&lt;/P&gt;&lt;P&gt;Looking at your code and the&amp;nbsp; question I wonder if you even tried the baby steps of an ABAPer to help yourself: debugging&lt;/P&gt;&lt;P&gt;You did not even add some coding for error handling, no wonder that you do not know where the programm fails, whether it is already in the upload step or when it comes to the material creation.&lt;BR /&gt;And what do you actually call "material migration"? this coding has almost all views on comments.&lt;/P&gt;&lt;P&gt;Just a hint, a material basic data is only able to work if it has unit of measure data (which is still on comment in your coding)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 21:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244907#M1913382</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2015-09-01T21:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244908#M1913383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jurgen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you correct the code and send back to me so that it will be helpful for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 10:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244908#M1913383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-02T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244909#M1913384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First read &lt;A _jive_internal="true" class="font-color-normal" href="https://answers.sap.com/community/abap/blog/2015/02/24/top-10-abap-crimes"&gt;Top 10 ABAP crimes&lt;/A&gt; and add some error monitoring (at least write the error message text RETURN-MESSAGE and not a meaningless generic failure message)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you should (must) also&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create some manterial with transaction MM01.&lt;/LI&gt;&lt;LI&gt;Use search tool to find some sample&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244909#M1913384</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-09-02T12:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244910#M1913385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you pay if I shall do your work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 18:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244910#M1913385</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2015-09-02T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244911#M1913386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jurgen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just learner am just doing my practice on the bapi.. If you are willing to help me you can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not doing for money sake am doing to gain the knowledge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 05:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244911#M1913386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-03T05:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244912#M1913387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See, if I just amend your code then I doubt that you learn much. &lt;/P&gt;&lt;P&gt;There are so many things unconsidered in your code that it is even difficult to know where to start.&lt;/P&gt;&lt;P&gt;Do you had an ABAP training at all?&lt;/P&gt;&lt;P&gt;Do you know debugging?&lt;/P&gt;&lt;P&gt;Can you read the code?&lt;/P&gt;&lt;P&gt;Did you ever create a material master with its standard transaction?&lt;/P&gt;&lt;P&gt;Do you have a fundamental understanding of material masters?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am certainly willing to help people over a hurdle, but you actually asked i shall send you the corrected code, and this is not my goal and is not the purpose of SCN either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bapi is pretty much structured according to the tables used to store material master information.&lt;/P&gt;&lt;P&gt;if you understand ABAP coding then you can see that almost anything is commented, which means will not be processed. What kind of material do you expect to create?&lt;/P&gt;&lt;P&gt;It&amp;nbsp; might not be a bad approach to start small on one side, but you are actually fighting against a problem which you probably would not see if you tried to migrate a real material, which has all kind of plant views etc.&lt;/P&gt;&lt;P&gt;Back to your coding. You just cared about MARA the general data of a material. Goto MM01 and maintain the same values in the screen, then check the tables, MARA, MAKT, MARM (just to give you one more hint)&lt;/P&gt;&lt;P&gt;do all 3&amp;nbsp; tables have entries or only MARA?&lt;/P&gt;&lt;P&gt;If you see values in all three tables, then your coding just for MARA is to less to create a material. Would you share this opinion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 11:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244912#M1913387</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2015-09-03T11:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244913#M1913388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jurgen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just beginner of ABAP. Am practicing the ABAP scenarios by seeing in saptechnical website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said i did the debugging am not getting y it is taking return type as E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said i observe the tcode MM01 it is updating MARA and MARM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your email id or skype id so that i can share my views.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 07:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244913#M1913388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-04T07:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Migrating material Master using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244914#M1913389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is interesting that you are following scenarios posted in another website and seeking then for help in SCN. Wouldn't it be logical to contact the author of the article in the other website if his stuff doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is actually exact what I initially meant, just following unexplained scenarios by retyping of some code does not really get you anywhere.&lt;/P&gt;&lt;P&gt;It is very important to understand interrelations and to think beyond. So you already found that SAP updated table MARM when you create the material master. What is your conclusion from this experience? What does that mean for your code? Do you have any such values in your data template as you could see in MARM? Do you have any coding that would enable the update of table MARM in your BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is MARM about? Answer: units of measures&lt;/P&gt;&lt;P&gt;What is the part in the parameters/tables of the BAPI that care about that?&lt;/P&gt;&lt;P&gt;This one eventually?:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;* UNITSOFMEASURE = IT_UNITSOFMEASURE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;* UNITSOFMEASUREX = IT_UNITSOFMEASUREX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 18:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-migrating-material-master-using-bapi/m-p/11244914#M1913389</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2015-09-04T18:37:02Z</dc:date>
    </item>
  </channel>
</rss>

