System Crash During BDC Update

While uploading a flat file through BDC Call Transaction, the system suddenly get CRASHED. How do I know many records have been updated?

Most ABAPers would not have faced this problem.

We faced it on 3 or 4 occasions during our Project.

There are two ways to tackle this issue.

Method..1

Thru se16 check the table(s) being updated, preferably the last table as per your code. If you have say 1600 records in the flat file check for the upload of the 1600 th record.. If not ok, check for the upload of the 800 th record(N-N/2), if OK go & check
N+(N/2) th record  if not ok goto N-(N/2) th record where N is the curent record number in the flat file . In about 4 or five checks you will converge on the last uploaded record.

Now from the flat file, remove the lines till the upload is ok & then re-run BDC.

Even here a record may be uploaded partially which has to be manually edited thru se16.

Method..2

Have a zee table for uploads. Just after uploading a record into the sap table, fill this zeetable with few fields of each the records. In an abort situation this table will tell the story of the update status. Take care to empty this table occasionally.

ABAP Tips by :  Rajagopalan C V

Related ABAP Topics:
Functions to convert number to words
Converting Number to Words

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

Main Index
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.