<?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 PO creation using text file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-text-file/m-p/8091906#M1615509</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;I have program which takes input text file and create PO in SAP. Program is using standard SAP BAPI to create PO. &lt;/P&gt;&lt;P&gt;This is working fine. But i have one program during errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If text file contains 50 line items and suppose line 12 is incorrect. Incorrect means PIR,source list etc not correct or material is invalid etc etc. Then program(bapi) throw error and PO creation stops and not continue with remaining lines. That is also normal process when create PO via ME21N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User want to show errors for all invalid rows at the same. Basically they want PO VALIDATION step where they want to see errors of all line items. So that they can remove from text file. ANy idea how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 13:16:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-03T13:16:03Z</dc:date>
    <item>
      <title>PO creation using text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-text-file/m-p/8091906#M1615509</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;I have program which takes input text file and create PO in SAP. Program is using standard SAP BAPI to create PO. &lt;/P&gt;&lt;P&gt;This is working fine. But i have one program during errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If text file contains 50 line items and suppose line 12 is incorrect. Incorrect means PIR,source list etc not correct or material is invalid etc etc. Then program(bapi) throw error and PO creation stops and not continue with remaining lines. That is also normal process when create PO via ME21N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User want to show errors for all invalid rows at the same. Basically they want PO VALIDATION step where they want to see errors of all line items. So that they can remove from text file. ANy idea how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 13:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-text-file/m-p/8091906#M1615509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: PO creation using text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-text-file/m-p/8091907#M1615510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand your problem because I believe that BAPI (even ME21n) always throws all the errors for the input data in return table. So, if you have 2 problematic items in one purchase order, suppose 12 and 42, both containing invalid materials, BAPI will contain error message for both the records and not only 1 material as error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, if you click MESSAGES button in ME21n, you will get all the errors for all the items in the list and not 1 only, do check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose the issue with your program must be the error handling of BAPI is not done well, and you are exiting the program showing only First return message or something like that. Do output all the error messages of the Return table and you should be able to see all the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if your File contains data of multiple POs, you should be able to check all the POs with all the items in a single program run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any concerns or you need any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 02:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-text-file/m-p/8091907#M1615510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-04T02:28:47Z</dc:date>
    </item>
  </channel>
</rss>

