Hello experts.
I have been having a great deal of difficulty getting this BAPI to work corrrectly. I am not new to the world of BAPIs and have used them for other purposes, creating SOs and material records, etc, but this one has me stumped.
In short, my issue is that this BAPI does not seem to save the net price at the item level, however in test mode it does. Let me provide some detail.
I have created a program which will import an Excel file with relevant vendor and material data and generate a schedule agreement for the specified vendor. There is of course processing in between for verifying and processing the data before exectuing the BAPI.
I am populating the the following accoring to typical BAPI procedure, HEADER/HEADERX; ITEM/ITEMX; ACCOUNT/ACCOUNTX; ITEM_COND_VALIDITY/ITEM_COND_VALIDITYX; AND ITEM_CONDITION/ITEM_CONDITIONX.
This is a type LP agreement and the item lines doe not have an item type so, my understanding is that I can populate the net price. If I execute the function in test mode, ITEM-NET_PRICE is preserved as entered, as expected. When I execute normally, the NET_PRICE is set to zero, yet the schedule agreement is created along with the line items and relevant conditions with their correct values. When the newly created SA is opened in ME32L you get a warning due to the missing net price. I should also note, the return messages do not mention any issue with net price, only successfuly creation of the SA.
I'm sure I am missing something simple here.
I have combed through the dozens of OSS notes associated to this function, almost all of which have already been incorporated. We are running 7.4 SP05.
I have also done an exhaustive search on SCN and the web with no success. I found this document, Create or Change Scheduling Agreement Using Standard SAP BAPI, which I followed, but still have the issue.
I am wondering if anyone else has had this or a similar issue with this BAPI. If I need to provide additional detail, please let me know.
Thank you in advance.