‎2009 Jun 12 6:08 AM
Hi
there is a SAP standard program SDNETPR0 that can be used to list Prices for Customer and range of Materials.
This uses function module GN_INVOICE_CREATE to bring back the Prices.
I was going to use that program as a base of a new Z program to extend some of the selection criteria.
Now I am wondering if in my new Report I should be using BAPI_SALESORDER_SIMULATE or GN_INVOICE_CREATE.
Both seem to do the same result. But GN_INVOICE_CREATE is much much faster.
What is your experience on this.
Should I be using that or the BAPI...?
‎2009 Jun 12 6:15 AM
Always use BAPI if possible because it is SAP Standard and BAPI are specially designed and developed for business objects. In the normal function module , there may be some limitations which are not visible normally so always should have a practice of using BAPI.
‎2009 Jul 02 3:32 PM
Hello,
When using GN_INVOICE_CREATE and if you are using the user exit to populate the custom fields in pricing communication structure, it has to be implemented in this function call as well.
However BAPI_SALESORDER_SIMULATE works out of the box.
Refer : SAP OSS: 536806