Application Development and Automation 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: 
Read only

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

former_member594288
Participant
0 Likes
1,030

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

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
Read only

SimoneMilesi
Active Contributor
0 Likes
832

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

Read only

former_member594288
Participant
0 Likes
832

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

Read only

0 Likes
832

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.