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: 

Can we create a Inquiry, Quotation and Contract using Fn Module SD_SALESDOCUMENT_CREATE.

former_member594288
Participant
0 Kudos

Hi Everyone,

Can we create a Inquiry, Quotation and Contract using fn module SD_SALESDOCUMENT_CREATE. If we can create all these documents then what is the unique thing to maintain.

Regards,

Ravi

3 REPLIES 3

SimoneMilesi
Active Contributor
0 Kudos

Why do you want to use an internal FM when you have three wonderful BAPIs?

  • BAPI_INQUIRY_CREATEFROMDATA2
  • BAPI_QUOTATION_CREATEFROMDATA2
  • BAPI_CONTRACT_CREATEFROMDATA

Surely the Business Object is different, to start, but i'd stick using the BAPIs more than internal FMs

former_member594288
Participant
0 Kudos

Hi Simson,

I want to use SD_SALESDOCUMENT_CREATE for inquiry, contract and quotation as per the requirement but i have a doubt is it useful for three?

Regards,

Ravi

0 Kudos

Again, why such requirement?

As developer, i'd ask to the analyst (Functional or Technical, i do not know your position) why sticking with internal FM instead of using BAPIs.

But, to answer your question, check the three given BAPIs' code and you'll see they fill the structures to call, all of them, your FM.