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

Re: BAPI_QUOTATION_CREATEFROMDATA2

Former Member
0 Likes
1,288

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,037

Hi,

After calling the BAPI do the BAPI_TRANSACTION_COMMIT.

Read only

Former Member
0 Likes
1,037

Thanks Thiru. But I am doing this manually using SE37. - GShankar

Read only

0 Likes
1,037

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.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,037

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

Read only

Former Member
0 Likes
1,037

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