Application Development 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: 

How to handle the errors in BDC Session method

Former Member
0 Kudos

Hi All,

I am uploading Material Master (MM01) records using BDC Session Method.my problem is when i am running the program, all the error records are going to flat file.how can i correcting the error records and after correction how can i re-process the error records.tell me with example.

i have around 70,000 records in my flat file.

2 REPLIES 2

Former Member
0 Kudos

check before the proceesing the your flat file records with MARA table.

select matnr from mara into lt_mara

for all entries in gt_file where

matnr = gt_file-matnr.

loop at gt_file into gwa_file.

read table lt_mara into wa_mara with key matnr = gwa_file-matnr.

if sy-subrc eq 0.

delete gt_file index 1.

esle.

your logic....

endif.

alrady existing records delete from your test data file and proceed.

Former Member
0 Kudos

Hi,

I am attaching few threads.Hope these will help you.

If there are any error records in session, all those error records will get poulated in log .SM35 and after the session is completed , u can see error records which can be corrected and reprocessed again

We have the structures BDCLD and BDCLM, which will capture the log details inthe session. Firstly, sesssion should be processed. After that log will be created. Then caputure the information into an internal table using BDCLM and BDCLD.

and refer the link.

regards

Madhu