Skip to Content
author's profile photo Former Member
Former Member

How to handle the errors in BDC Session method

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 02:54 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 03:06 PM

    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.

    error correction in bdc session

    regards

    Madhu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.