<?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 creating PO with BAPI_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508140#M17822</link>
    <description>&lt;P&gt;Are you filling in the account assignment information? Can you share the relevant code?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 19:05:28 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2017-08-21T19:05:28Z</dc:date>
    <item>
      <title>Error creating PO with BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508139#M17821</link>
      <description>&lt;P&gt;Hi Expert, &lt;/P&gt;
  &lt;P&gt;I've followed few of the forum suggestion mentioned in SCN and SAP Note but still get error "In case of account assignment, please enter acc. assignment data for item" while creating PO via BAPI_PO_CREATE1. My scenario are PO with limit data + single account assignment.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/69142"&gt;Using BAPI_PO_CREATE1 : Linking service, and account assignment&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/877029"&gt;PO Upload through BAPI_PO_CREATE1 - Problem in Service Item&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://launchpad.support.sap.com/#/notes/0002114353"&gt;2114353 - How to create service PO with BAPI_PO_CREATE1&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Appreciate anyone that could guide me through this as I've faced this issues few days. &lt;/P&gt;
  &lt;P&gt;Thanks. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;-Ben-&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508139#M17821</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2017-08-21T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating PO with BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508140#M17822</link>
      <description>&lt;P&gt;Are you filling in the account assignment information? Can you share the relevant code?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508140#M17822</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-08-21T19:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating PO with BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508141#M17823</link>
      <description>&lt;P&gt;Hi Jelena, &lt;/P&gt;
  &lt;P&gt;Yes, I've filled in account assignment info in POACCOUNT and POACCOUNX structure. Kindly refer my code as below:&lt;/P&gt;
  &lt;P&gt;PO HEADER &amp;amp; PO HEADERX&lt;/P&gt;
  &lt;P&gt;ls_poheader-doc_type = ls_file-bsart.&lt;BR /&gt; ls_poheader-vendor = ls_file-lifnr.&lt;BR /&gt; ls_poheader-comp_code = ls_file-bukrs.&lt;BR /&gt; ls_poheader-purch_org = ls_file-ekorg.&lt;BR /&gt; ls_poheader-pur_group = ls_file-ekgrp.&lt;BR /&gt; ls_poheader-currency = ls_file-waers.&lt;/P&gt;
  &lt;P&gt;PO ITEM &amp;amp; PO ITEMX&lt;/P&gt;
  &lt;P&gt; ls_poitem-po_item = ls_file-ebelp.&lt;BR /&gt; ls_poitem-acctasscat = ls_file-knttp.&lt;BR /&gt; ls_poitem-item_cat = ls_file-pstyp.&lt;BR /&gt; ls_poitem-short_text = ls_file-txz01.&lt;BR /&gt; ls_poitem-matl_group = ls_file-matkl.&lt;BR /&gt; ls_poitem-plant = ls_file-werks.&lt;BR /&gt; ls_poitem-pckg_no = '0000000001'.&lt;/P&gt;
  &lt;P&gt;APPEND ls_poitem to lt_poitem.&lt;/P&gt;
  &lt;P&gt;PO ACCOUNT &amp;amp; PO ACCOUNTX&lt;/P&gt;
  &lt;P&gt; ls_poaccount-po_item = ls_file-ebelp.&lt;BR /&gt; ls_poaccount-serial_no = ls_file-zekkn.&lt;BR /&gt; ls_poaccount-gl_account = ls_file-sakto.&lt;BR /&gt; ls_poaccount-co_area = ls_file-kokrs.&lt;BR /&gt; ls_poaccount-costcenter = ls_file-kostl.&lt;BR /&gt; ls_poaccount-fund = ls_file-geber.&lt;BR /&gt; ls_poaccount-funds_ctr = ls_file-fistl.&lt;BR /&gt; ls_poaccount-cmmt_item = ls_file-fipos.&lt;BR /&gt; ls_poaccount-bus_area = ls_file-gsber.&lt;BR /&gt; ls_poaccount-func_area = ls_file-fkber.&lt;BR /&gt; ls_poaccount-grant_nbr = ls_file-grant_nbr.&lt;/P&gt;
  &lt;P&gt;APPEND ls_poaccount to lt_poaccount.&lt;/P&gt;
  &lt;P&gt;PO LIMITS&lt;/P&gt;
  &lt;P&gt; ls_polimits-pckg_no = '0000000001'.&lt;BR /&gt; ls_polimits-limit = ls_file-sumlimit.&lt;BR /&gt; ls_polimits-exp_value = ls_file-commitment.&lt;/P&gt;
  &lt;P&gt;APPEND ls_polimits to lt_polimits.&lt;/P&gt;
  &lt;P&gt;POSRVACCESSVALUES&lt;/P&gt;
  &lt;P&gt;ls_POSRVACCESSVALUES-PCKG_NO = '0000000001'.&lt;BR /&gt; ls_POSRVACCESSVALUES-LINE_NO = '0000000000'.&lt;BR /&gt; ls_POSRVACCESSVALUES-SERNO_LINE = '01'.&lt;BR /&gt; ls_POSRVACCESSVALUES-SERIAL_NO = '01'.&lt;BR /&gt; ls_POSRVACCESSVALUES-PERCENTAGE = '100'.&lt;/P&gt;
  &lt;P&gt;APPEND ls_posrvaccessvalues to lt_posrvaccessvalues.&lt;/P&gt;
  &lt;P&gt; CALL FUNCTION 'BAPI_PO_CREATE1'&lt;BR /&gt; EXPORTING&lt;BR /&gt; poheader = ls_poheader&lt;BR /&gt; poheaderx = ls_poheaderx&lt;BR /&gt; IMPORTING&lt;BR /&gt; exppurchaseorder = lv_exppurchaseorder&lt;BR /&gt; TABLES&lt;BR /&gt; return = lt_return&lt;BR /&gt; poitem = lt_poitem&lt;BR /&gt; poitemx = lt_poitemx&lt;BR /&gt; poaccount = lt_poaccount&lt;BR /&gt; poaccountx = lt_poaccountx&lt;BR /&gt; polimits = lt_polimits&lt;BR /&gt; posrvaccessvalues = lt_posrvaccessvalues.&lt;/P&gt;
  &lt;P&gt;Hope my relevant code posted here could give you some hints on which part of the information that I still missed out. &lt;/P&gt;
  &lt;P&gt;Thanks. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;-Ben-&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 01:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508141#M17823</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2017-08-22T01:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating PO with BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508142#M17824</link>
      <description>&lt;P&gt;These lines do not look like in the example given in the OSS note 2114353&lt;/P&gt;
  &lt;P&gt;ls_POSRVACCESSVALUES-PCKG_NO = '0000000001'.&lt;/P&gt;
  &lt;P&gt;ls_POSRVACCESSVALUES-LINE_NO = '0000000000'.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 05:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508142#M17824</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2017-08-22T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating PO with BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508143#M17825</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/172/jrgenlins.html"&gt;Jürgen L&lt;/A&gt;, &lt;/P&gt;
  &lt;P&gt;I've followed as per mentioned in the OSS note 2114353. I'm in the scenario 3 where PO with limit data + single account assignment. Can you explain in details which part that I've missed out?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/65427-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;-Ben-&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 06:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-creating-po-with-bapi-po-create1/m-p/508143#M17825</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2017-08-22T06:38:24Z</dc:date>
    </item>
  </channel>
</rss>

