<?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: Questions about BAPI_PR_CREATE and BAPI_PR_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/questions-about-bapi-pr-create-and-bapi-pr-change/m-p/4518888#M1068432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the answer to question #2 in this wiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/function%2bmodule%2btest%2bsequence" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/function%2bmodule%2btest%2bsequence&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gist is to set up a test sequence in SE37 (Function Module-&amp;gt;Test-&amp;gt;Test Sequences ) with the two bapi's,  e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.                  BAPI_PR_CHANGE (To change purchase requisition)&lt;/P&gt;&lt;P&gt;2.                  BAPI_TRANSACTION_COMMIT (To Commit Work) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you must also pay attention that the input structures are populated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For question #1 I am convinced there is no ability in BAPI_PR_CREATE to create service items, so it looks like I have to call the old bapi for that case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2008 20:38:39 GMT</pubDate>
    <dc:creator>mh97</dc:creator>
    <dc:date>2008-11-12T20:38:39Z</dc:date>
    <item>
      <title>Questions about BAPI_PR_CREATE and BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/questions-about-bapi-pr-create-and-bapi-pr-change/m-p/4518887#M1068431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon SAP experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working with purchase requisition BAPIs and encountered some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I can create a requisition with service items using the "old" bapi, BAPI_REQUISITION_CREATE; but I cannot see how to do that with the "new" bapi, BAPI_PR_CREATE. &lt;/P&gt;&lt;P&gt;Is it possible to create the service items on a requisition with BAPI_PR_CREATE? &lt;/P&gt;&lt;P&gt;If so how should I set up the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I want to add header text to an existing requisition. &lt;/P&gt;&lt;P&gt;I tried to use BAPI_PR_CHANGE but cannot get the changes to save, even though the return is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
S 06                    403 Purchase requisition 1000004492 changed   
S BAPI                  002 Instance 1000004492 of object type PurchaseRequisition has been changed.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried changing an item quantity, and had the same result (success message but requisition was not really changed). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have "Test Run" empty!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide some clues as to what I might be doing wrong with this bapi?  &lt;/P&gt;&lt;P&gt;For BAPI_PR_CHANGE, do I need to load all of the existing data of the requisition into the tables, or just have data in the fields that are being changed? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance you can provide on these questions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Margaret&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Margaret Hilsbos on Sep 26, 2008 4:12 PM - to (hopefully) fix the margin breakage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Margaret Hilsbos on Sep 26, 2008 4:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 20:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/questions-about-bapi-pr-create-and-bapi-pr-change/m-p/4518887#M1068431</guid>
      <dc:creator>mh97</dc:creator>
      <dc:date>2008-09-26T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about BAPI_PR_CREATE and BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/questions-about-bapi-pr-create-and-bapi-pr-change/m-p/4518888#M1068432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the answer to question #2 in this wiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/function%2bmodule%2btest%2bsequence" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/function%2bmodule%2btest%2bsequence&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gist is to set up a test sequence in SE37 (Function Module-&amp;gt;Test-&amp;gt;Test Sequences ) with the two bapi's,  e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.                  BAPI_PR_CHANGE (To change purchase requisition)&lt;/P&gt;&lt;P&gt;2.                  BAPI_TRANSACTION_COMMIT (To Commit Work) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you must also pay attention that the input structures are populated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For question #1 I am convinced there is no ability in BAPI_PR_CREATE to create service items, so it looks like I have to call the old bapi for that case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 20:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/questions-about-bapi-pr-create-and-bapi-pr-change/m-p/4518888#M1068432</guid>
      <dc:creator>mh97</dc:creator>
      <dc:date>2008-11-12T20:38:39Z</dc:date>
    </item>
  </channel>
</rss>

