<?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_PO_CHANGE components parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639118#M1865212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emanuel,&lt;/P&gt;&lt;P&gt;If you manually edit the PO in ME22 and set the batch number, does it save correctly.&amp;nbsp; When you check the document after save, do you get any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this should highlight any potential issues, if any are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Katan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 01:34:52 GMT</pubDate>
    <dc:creator>Katan</dc:creator>
    <dc:date>2014-10-16T01:34:52Z</dc:date>
    <item>
      <title>BAPI_PO_CHANGE components parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639117#M1865211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BAPI_PO_CHANGE to add a new line item to Purchase order of standard BSART type NB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line item is getting added to PO correctly as well as components. The problem is that field Batch is not getting copied to components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the line item table I'm using material 6850 with quantity 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the components tab I'm adding 3 lines (taken from my report) like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - material 6850, qty 2, batch NNBT1&lt;/P&gt;&lt;P&gt;2 - material 6850, qty 3, batch NNBT2&lt;/P&gt;&lt;P&gt;3 - material 6850, qty 4, batch NNBT3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also filling componentsx tab as the components are getting added to the line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing BAPI I see that the new line item was added with the components and quantities but only thing missing is the batch field that is left blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that after executing BAPI, besides my 3 lines, there are also 2 more lines with materials 6356 and 6368 belonging to the material BOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/563907" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a functional guy so not sure how to proceed.&lt;/P&gt;&lt;P&gt;Material 6850 is the header material of the BOM, Should I change the BOM and add the material 6850 to items?&lt;/P&gt;&lt;P&gt;Am I missing any parameter in components table when calling the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to resolve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;EDIT:&lt;/SPAN&gt; I found that there's a program validation in FM MAP2I_BAPICOMP_TO_MEPOCOMP within BAPI_PO_CHANGE. I think LOG_MM_OM_1 and LOG_MMFI_P2P are business functions. I do not think activating this is an option in my system (not sure about the impact).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/564117" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked some OSS Notes but they are not releveant for my system.&lt;/P&gt;&lt;P&gt;Note 666888&lt;/P&gt;&lt;P&gt;1230268 - Field Vendor Batch never filled for PO BAPIs&lt;/P&gt;&lt;P&gt;758810 - BAPI_PO_CHANGE vendor batch and batch not visible&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 in advance!&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639117#M1865211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-15T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE components parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639118#M1865212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emanuel,&lt;/P&gt;&lt;P&gt;If you manually edit the PO in ME22 and set the batch number, does it save correctly.&amp;nbsp; When you check the document after save, do you get any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this should highlight any potential issues, if any are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Katan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 01:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639118#M1865212</guid>
      <dc:creator>Katan</dc:creator>
      <dc:date>2014-10-16T01:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE components parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639119#M1865213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes It saves correctly in ME22N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was resolved using enhancement defined in FMs &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;MAP2I_BAPICOMP_TO_MEPOCOMP and MAP2I_BAPICOMPX_TO_MEPOCOMPX.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/565048" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Emanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change-components-parameters/m-p/10639119#M1865213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-16T14:48:18Z</dc:date>
    </item>
  </channel>
</rss>

