cancel
Showing results for 
Search instead for 
Did you mean: 

Express document "Update was terminated" recev from auth While BAPI change

Former Member
0 Kudos

Hi.

Iam trring to change sales order which is exist in the system provided to insert a new item

for a existing sales oder and pass values to header and update flag as 'U'

and item details and flags for corresponding items.once it throws an error as

"Express document "Update was terminated" recev from auth "

while iam executing bapi_salesorder_change once control goes to the

Bapi_transaction_commit it throws Error .

may i know what is problem and how pass values to BAPI_SALESORDER_CHANGE

Why that kind of errors occur oftenly.

Thanks & Regards

sivakumar kasa

Accepted Solutions (1)

Accepted Solutions (1)

jpfriends079
Active Contributor
0 Kudos

Check your inbox "Update was Terminated" use tcode SBWP to find out the exact reason of update terminated.

And update terminated means document not created.

You can also use tcode ST22, if ABAP error is expected.

Check SAP Note 760068 - Errors if several BAPIs are interlinked

and Note 1303681 - Reversing release of customer returns to SD.

Hope it can assist you a bit.

Thanks & Regards

JP

Former Member
0 Kudos

Thanks Mr.JP

Error analysis:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught

in

procedure "SD_PARTNER_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

If you use an ABAP/4 Open SQL array insert to insert a record in

the database and that record already exists with the same key,

this results in a termination.

(With an ABAP/4 Open SQL single record insert in the same error

situation, processing does not terminate, but SY-SUBRC is set to 4.)

when i comment partner details it works but

Iam not getting quantity and partner details so how to pass Partner Details and item quantity

to updated existing line item number.

Thanks & Regards

sivakumar kasa

Former Member
0 Kudos

Information on where terminated

Termination occurred in the ABAP program "SAPLV05I" - in "SD_PARTNER_UPDATE".

The main program was "RSM13000 ".

In the source code you have the termination point in line 480

of the (Include) program "LV05IU15".

The program "SAPLV05I" was started in the update system.

The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in

procedure "SD_PARTNER_UPDATE" "(FUNCTION)", but it was neither handled locally

nor declared

in the RAISING clause of its signature.

The procedure is in program "SAPLV05I "; its source code begins in line

1 of the (Include program "LV05IU15 ".

How to updated Partner and item quantity details for a existing line item of a sales order.

Thanks & Regards

sivakumar kasa

jpfriends079
Active Contributor
0 Kudos

Check the copying control in Customizing.The copying routines for partner data 001 (for the document header) or 002 (on item level) may only be used once during copying.

In your Copying control

VBAK 051 Header general Copying requirement 002 Header diff.

VBKD 101 Bus. Dat. Header

VBPA 001 Partner header (****)

Only in the field marked (****) a partner copying routine may be maintained.

Also make sure that this copying routine is not used more than once in the copying routine on item or schedule line level.

Also, check following SAP Notes:

Note 480509 - Processing of partners in transportation

Note 408439 - Inbound delivery: partner vendor is not defined

Hope it can assist you.

Thanks & Regards

JP

Former Member
0 Kudos

Give me example how to pass values to change patner details for a line item

of sales order to BAPI_SALESORDER_CHANGE.

Thanks & Regards

sivakumar kasa

Answers (0)