cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi_Salesorder_Change problem

Former Member
0 Kudos

When calling Bapi_Salesorder_Change, following messages were reported by Return0 parameter:

S/233/ORDER_HEADER_IN has been processed successfully

S/233/ITEM_IN has been processed successfully

W/555/The sales document is not yet complete: Edit data

S/311/Standard Order 0000009137 has been saved

The problem is, the new order items was set by paramter Order_Item_In, but there is no new item appeared.

What's the problem?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to call proxy1.CommitWork after calling Bapi_Salesorder_Change.

Regards,

Guangwei

Former Member
0 Kudos

Thank you very much, Mr. Li,

It works greatly.

But the question is where to find such mysterious knowledge? When I call Bapi_SalesOrder_CreateFromData, it successed without calling CommitWorks().

So which RFCs need to call CommitWorks and which RFCs needn't?

Former Member
0 Kudos

Hi Mr. Yintang

Such mysterious Knowledge is basically described in a sap .net indepent manner in

"BAPI Programming Guide (CA-BFA). Direct-Link:

http://help.sap.com/saphelp_470/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm

Here you can read an important Statement that belongs to BAPIs:

http://help.sap.com/saphelp_470/helpdata/en/5f/516d175cb811d4b2dd0050dadfbb26/frameset.htm

A Link to the SAP .NET Connector Help:

http://help.sap.com/saphelp_erp2004/helpdata/en/a8/1123a12f625f4393e12b5443141f9e/frameset.htm

Description of the Commit and Rollback Methods:

http://help.sap.com/saphelp_erp2004/helpdata/en/a8/1123a12f625f4393e12b5443141f9e/frameset.htm

Best regards

Former Member
0 Kudos

An add to my Reply ...

In the Web you find the Interface Repository to all BORs and BAPIs:

http://ifr.sap.com/catalog/query.asp

When you search for the SalesOrder Business Object, you will find a description of the Change Method with following Additional Comment:

Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

I'm very appreciate your thorough complete teaching. And wish hear more from you.