‎2010 Apr 20 1:32 PM
Dear All,
I am able to manually run the bapi BAPI_QUOTATION_CREATEFROMDATA2 and the result is as follows:
S V4 233 SALES_HEADER_IN has been processed successfully
S V4 233 SALES_ITEM_IN has been processed successfully
S V1 311 Quotation 20000027 has been saved
But when I try to open the quotation, it gives an err saying
'SD document 20000027 is not in the database or has been archived'
I am only populating the following structures:
QUOTATION_HEADER_IN
QUOTATION_HEADER_INX
QUOTATION_ITEMS_IN
QUOTATION_ITEMS_INX
QUOTATION_PARTNERS
QUOTATION_SCHEDULES_IN
QUOTATION_SCHEDULES_INX
Any pointers appreciated.
Thanks,
GShankar
‎2010 Apr 20 1:35 PM
‎2010 Apr 20 1:37 PM
Thanks Thiru. But I am doing this manually using SE37. - GShankar
‎2010 Apr 20 1:46 PM
Hi,
In SE37 itself you can very well do it. If you are checking through SE37. Before you execute the FM do the test sequence useing the menu option. in that you can mention first BAPI is BAPI_QUOTATION_CREATEFROMDATA2 and then BAPI_TRANSACTION_COMMIT. Try and let me know.
‎2010 Apr 20 1:38 PM
Hi Girija,
If you are testing BAPI_QUOTATION_CREATEFROMDATA2 independently in SE37, then try to check BAPI_TRASACTION_COMMIT is called anywhere in the BAPI_QUOTATION_CREATEFROMDATA2. And also check whether the respective tables are updated in the database.If not then you need to call the bapi_transaction_commit.
You can set next function module even in SE37
menu->function module->other function module
Here you give the name of the BAPI_TRASACTION_COMMIT
Thanks & Regards
- Always Learner
‎2010 Apr 20 2:03 PM
Once again thanks. Sequencing the functional modules works. But, I could make it work only in the
Debug mode. Should I need to add a wait etc in the commit FM? - GShankar