Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_SIMULATE vs GN_INVOICE_CREATE

former_member183909
Active Participant
0 Kudos
312

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...?

2 REPLIES 2

Former Member
0 Kudos
75

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.

0 Kudos
75

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