<?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 Source List Upload ( ME01 ) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188250#M1001143</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know it's several years too late but for the ones like me who are seeking to use ME_UPDATE_SOURCES_OF_SUPPLY while having a log : you can use the class cl_mmpur_source_list.&lt;BR /&gt;&lt;BR /&gt;Sample code :&lt;BR /&gt;DATA :&lt;BR /&gt;&lt;/P&gt;  lo_api_sl     TYPE REF TO cl_mmpur_source_list,&lt;BR /&gt;  lt_eord       TYPE meout_t_eord,&lt;BR /&gt;  lt_message_sl TYPE mepo_t_messages_bapi,&lt;BR /&gt;  ls_message_sl TYPE mepo_s_messages_bapi,&lt;BR /&gt;  lt_protocol   TYPE bapirettab.&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM eord&lt;BR /&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_eord&lt;BR /&gt;  WHERE matnr = '013139'&lt;BR /&gt;    AND werks = '0100'&lt;BR /&gt;    AND lifnr = '0000100199'.&lt;BR /&gt;&lt;BR /&gt;CREATE OBJECT lo_api_sl.&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM eord&lt;BR /&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_eord&lt;BR /&gt;  WHERE matnr = '013139'&lt;BR /&gt;    AND werks = '0100'&lt;BR /&gt;    AND lifnr = '0000100199'.&lt;BR /&gt;&lt;BR /&gt;LOOP AT lt_eord ASSIGNING FIELD-SYMBOL(&amp;lt;fs_eord&amp;gt;).&lt;BR /&gt;  &amp;lt;fs_eord&amp;gt;-bdatu = '20231231'.&lt;BR /&gt;  &amp;lt;fs_eord&amp;gt;-autet = '1'.&lt;BR /&gt;ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;lo_api_sl-&amp;gt;maintain_source_list( EXPORTING it_eord     = lt_eord&lt;BR /&gt;                               IMPORTING et_messages = lt_message_sl ).&lt;BR /&gt;cl_ops_ehp_mapping_helper=&amp;gt;convert_mmmsg_to_bapimsg(&lt;BR /&gt;  EXPORTING it_mm_msg     = lt_message_sl&lt;BR /&gt;  IMPORTING et_bapirettab = lt_protocol ).&lt;BR /&gt;&lt;BR /&gt;IF lt_protocol is INITIAL. "Or if it doesn't contain type E, you can check whatever you want here&lt;BR /&gt;  COMMIT WORK AND WAIT.&lt;BR /&gt;ENDIF.</description>
    <pubDate>Wed, 27 Sep 2023 18:12:52 GMT</pubDate>
    <dc:creator>david-raffin</dc:creator>
    <dc:date>2023-09-27T18:12:52Z</dc:date>
    <item>
      <title>BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188245#M1001138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any BAPI available for uploading source list for a material??&lt;/P&gt;&lt;P&gt;Transaction involved - ME01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188245#M1001138</guid>
      <dc:creator>nidhi_agrawal6</dc:creator>
      <dc:date>2008-07-25T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188246#M1001139</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 to use these FM- &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'ME_MAINTAIN_SOURCE_LIST'. or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;BAPI_SOURCEDETERMIN_GETSOS&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;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Chandralekha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188246#M1001139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188247#M1001140</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;WELCOME TO SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ME_MAINTAIN_SOURCE_LIST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188247#M1001140</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-25T06:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188248#M1001141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try the below function module ME_UPDATE_SOURCES_OF_SUPPLY which is being used by standard transaction ME01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF XORD OCCURS 50.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE EORD.&lt;/P&gt;&lt;P&gt;DATA: UPDKZ,&lt;/P&gt;&lt;P&gt;END OF XORD,&lt;/P&gt;&lt;P&gt;YORD type table of EORD with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear xord.&lt;/P&gt;&lt;P&gt;clear yord.&lt;/P&gt;&lt;P&gt;xord-MATNR = '100-100'.&lt;/P&gt;&lt;P&gt;xord-WERKS = '3000'.&lt;/P&gt;&lt;P&gt;xord-ZEORD = '00001'.&lt;/P&gt;&lt;P&gt;xord-ERDAT = '20080403'.&lt;/P&gt;&lt;P&gt;xord-ERNAM = 'SAPDEV02'.&lt;/P&gt;&lt;P&gt;xord-VDATU = '20080403'.&lt;/P&gt;&lt;P&gt;xord-BDATU = '20100510'.&lt;/P&gt;&lt;P&gt;xord-LIFNR = '0000001000'.&lt;/P&gt;&lt;P&gt;xord-FLIFN = 'X'.&lt;/P&gt;&lt;P&gt;xord-EKORG = '1000'.&lt;/P&gt;&lt;P&gt;xord-UPDKZ = 'U'.&lt;/P&gt;&lt;P&gt;append xord.&lt;/P&gt;&lt;P&gt;move-corresponding xord to yord.&lt;/P&gt;&lt;P&gt;append yord.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ME_UPDATE_SOURCES_OF_SUPPLY' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CHANGEDOCUMENT = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;XEORD = XORD&lt;/P&gt;&lt;P&gt;YEORD = YORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;vasavi.v&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188248#M1001141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T06:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188249#M1001142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All for your replies...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried ME_MAINTAIN_SOURCE_LIST function module - It will just maintain the source list, there is no updation even through COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_SOURCEDETERMIN_GETSOS will give you the the list of Source of Supplies , my requirement is to upload entries ( similar to ME01 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried ME_UPDATE_SOURCES_OF_SUPPLY function module , but it will just upload the data we provide ; in that case we will not be able to track all the errors which occurs due to invalid entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to track errors as well ; the way we get errors in BDC .&lt;/P&gt;&lt;P&gt;So, Please let me know if there is a BAPI available for this purpose...or is there any other way ( other than BDC ) to do the same !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188249#M1001142</guid>
      <dc:creator>nidhi_agrawal6</dc:creator>
      <dc:date>2008-07-25T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Source List Upload ( ME01 )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188250#M1001143</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know it's several years too late but for the ones like me who are seeking to use ME_UPDATE_SOURCES_OF_SUPPLY while having a log : you can use the class cl_mmpur_source_list.&lt;BR /&gt;&lt;BR /&gt;Sample code :&lt;BR /&gt;DATA :&lt;BR /&gt;&lt;/P&gt;  lo_api_sl     TYPE REF TO cl_mmpur_source_list,&lt;BR /&gt;  lt_eord       TYPE meout_t_eord,&lt;BR /&gt;  lt_message_sl TYPE mepo_t_messages_bapi,&lt;BR /&gt;  ls_message_sl TYPE mepo_s_messages_bapi,&lt;BR /&gt;  lt_protocol   TYPE bapirettab.&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM eord&lt;BR /&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_eord&lt;BR /&gt;  WHERE matnr = '013139'&lt;BR /&gt;    AND werks = '0100'&lt;BR /&gt;    AND lifnr = '0000100199'.&lt;BR /&gt;&lt;BR /&gt;CREATE OBJECT lo_api_sl.&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM eord&lt;BR /&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_eord&lt;BR /&gt;  WHERE matnr = '013139'&lt;BR /&gt;    AND werks = '0100'&lt;BR /&gt;    AND lifnr = '0000100199'.&lt;BR /&gt;&lt;BR /&gt;LOOP AT lt_eord ASSIGNING FIELD-SYMBOL(&amp;lt;fs_eord&amp;gt;).&lt;BR /&gt;  &amp;lt;fs_eord&amp;gt;-bdatu = '20231231'.&lt;BR /&gt;  &amp;lt;fs_eord&amp;gt;-autet = '1'.&lt;BR /&gt;ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;lo_api_sl-&amp;gt;maintain_source_list( EXPORTING it_eord     = lt_eord&lt;BR /&gt;                               IMPORTING et_messages = lt_message_sl ).&lt;BR /&gt;cl_ops_ehp_mapping_helper=&amp;gt;convert_mmmsg_to_bapimsg(&lt;BR /&gt;  EXPORTING it_mm_msg     = lt_message_sl&lt;BR /&gt;  IMPORTING et_bapirettab = lt_protocol ).&lt;BR /&gt;&lt;BR /&gt;IF lt_protocol is INITIAL. "Or if it doesn't contain type E, you can check whatever you want here&lt;BR /&gt;  COMMIT WORK AND WAIT.&lt;BR /&gt;ENDIF.</description>
      <pubDate>Wed, 27 Sep 2023 18:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-source-list-upload-me01/m-p/4188250#M1001143</guid>
      <dc:creator>david-raffin</dc:creator>
      <dc:date>2023-09-27T18:12:52Z</dc:date>
    </item>
  </channel>
</rss>

