<?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 Data in BAPI_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126680#M110550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi, I know this is a very old message but I am trying to implement the process_item BADI and update a field included in structure MEPOITEM_TECH.   I tried using the method/logic you proposed but the ekpo data is still not saved as expected.   Can you suggest anything to add to this logic so that the table data is updated successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help with this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 15:16:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-08T15:16:12Z</dc:date>
    <item>
      <title>Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126673#M110543</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 am trying to create POs via BAPI_PO_CREATE1. There is a field EAN11(International Article Numer) in the PO Item level EKPO table which I want to populate while creating the PO. But this field is not covered in the BAPI in any of the structures. We can enter/edit this field while creating PO online i.e. via ME21N, but in the BAPI it seems that this is automatically picked up from material master and it cannot be edited via BAPI(this field is contained in a structure MEPOITEM_TECH whose description is 'Purchase Order Item (Non-Directly-Changeable Fields)' which implies that. Does anyone know if there is anyway I can populate this field while creating the PO from the incoming data? We are not using material master, so this can't be picked up from material master.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 20:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126673#M110543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T20:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126674#M110544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to populate this field by implementing BADI ME_PROCESS_PO_CUST (in method PROCESS_ITEM).&lt;/P&gt;&lt;P&gt;You have there reference to PO item (IF_PURCHASE_ORDER_ITEM_MM) as an parameter. This interface has got method SET_DATA which takes structure MEPOITEM as an import param. There is field EAN11 in MEPOITEM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126674#M110544</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2006-02-23T21:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126675#M110545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I have already tried this. That does not change values of EAN11. If you go inside the method set_data, you will see that this method does not update any of the fields of  MEPOITEM_TECH(Purchase Order Item (Non-Directly-Changeable Fields)) and EAN11 is a field of that structure. In fact, the set_data is being used in the BAPI_PO_CREATE1 itself and that is the reason I could not anyway populate EAN11 in the BAPI also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126675#M110545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T21:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126676#M110546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried implementing the BADI ME_PROCESS_PO_CUST, for the method PROCESS_ITEM, it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA:LS_MEPOITEM TYPE MEPOITEM,&lt;/P&gt;&lt;P&gt;      L_ITEM       TYPE REF TO CL_PO_ITEM_HANDLE_MM,&lt;/P&gt;&lt;P&gt;      L_IF_ITEM TYPE REF TO IF_PURCHASE_ORDER_ITEM_MM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call Method to get the Item Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MMPUR_DYNAMIC_CAST L_ITEM IM_ITEM.&lt;/P&gt;&lt;P&gt;    CHECK NOT L_ITEM IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD L_ITEM-&amp;gt;GET_DATA&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        EX_DATA = LS_MEPOITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now manipulate the structure LS_MEPOITEM to populate the field EAN11, and then call the below method.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;CALL METHOD L_IF_ITEM-&amp;gt;SET_DATA( LS_MEPOITEM ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 00:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126676#M110546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T00:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126677#M110547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this is exactly what I tried before. as i have said,it doesnot update any field in mepoitem_tech.Could you actually update EAN11 this way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 20:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126677#M110547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-24T20:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126678#M110548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP recommends that you should not attempt to change any field which is contained in MEPOITEM_TECH structure (see note 803749). So you should avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if you have no choice and you want to change this field, may be the following code helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use badi ME_PROCESS_PO_CUST  Method -- PROCESS_ITEM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declare an object of class cl_po_item_handle_mm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lr_item TYPE REF TO cl_po_item_handle_mm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*assign the parameter IM_ITEM of BADI IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM to this *variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_item ?= im_item.&lt;/P&gt;&lt;P&gt;lt_items = im_item-&amp;gt;get_data( ).&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;*modify field content in structure lt_items i.e populate the required field in it_items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_item-&amp;gt;set_data( lt_items ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code should do the trick, because now we use method SET_DATA(which has no validation) of class CL_PO_ITEM_HANDLE_MM instead of method IF_PURCHASE_ORDER_ITEM_MM~SET_DATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However please check for any other data changes after implementing this solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 02:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126678#M110548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T02:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126679#M110549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though this is a very old message, could you please help us. We want to know how did you fixed up the EAN11 issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 00:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126679#M110549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T00:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126680#M110550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi, I know this is a very old message but I am trying to implement the process_item BADI and update a field included in structure MEPOITEM_TECH.   I tried using the method/logic you proposed but the ekpo data is still not saved as expected.   Can you suggest anything to add to this logic so that the table data is updated successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help with this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 15:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126680#M110550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126681#M110551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mery Lins,&lt;/P&gt;&lt;P&gt;Did you get any success , to update EKPO field , which belongs to MEPOITEM_TECH structure?&lt;/P&gt;&lt;P&gt;I am also facing same issue , when updating MFRPN field.&lt;/P&gt;&lt;P&gt;Please suggest, if any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 19:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126681#M110551</guid>
      <dc:creator>Kloud_Nilesh</dc:creator>
      <dc:date>2011-10-13T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126682#M110552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the solution for this, see code below. Unfortunately is doesn't work anymore since we're on support stack 10. For those not yet on this level this code may be useful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lo_item          TYPE REF TO cl_po_item_handle_mm.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     " Casting to implementing class CL_PO_ITEM_HANDLE_MM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       " Why? Method SET_DATAX is not accessible via interface.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        lo_item ?= im_item.&lt;/P&gt;&lt;P&gt;        CALL METHOD lo_item-&amp;gt;set_data&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            im_data = lw_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        " update structure - ean11 niet aanwezig,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       "                    gebruik idnlf, werkt ook &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        lw_datax-ebelp_key = lw_data-ebelp.&lt;/P&gt;&lt;P&gt;        lw_datax-ebeln  = 'X'.&lt;/P&gt;&lt;P&gt;        lw_datax-ebelp  = 'X'.&lt;/P&gt;&lt;P&gt;        lw_datax-idnlf  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD lo_item-&amp;gt;set_datax&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            im_data = lw_datax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Mertens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126682#M110552</guid>
      <dc:creator>erik_mertens3</dc:creator>
      <dc:date>2012-01-24T08:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Material Data in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126683#M110553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H5 class="simple" style="padding-top: 8px; font-weight: normal; font-size: 20px; color: #333333;"&gt;Thanks Erik Mertens for your help. It worked!&lt;/H5&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 07:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-data-in-bapi-po-create1/m-p/1126683#M110553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-16T07:22:40Z</dc:date>
    </item>
  </channel>
</rss>

