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

Capturing Errors in BDC

Hi,

I'm getting error while running a BDC with Call Transaction method.

CALL TRANSACTION 'QP02' USING BDCDATA MODE 'N' UPDATE 'S' MESSAGES INTO IST_BDC_DATA.

from the internal table IST_BDC_DATA i'm displaying the error using through FM Format Messages.

what is happening is say for example i have 100 records in that 10th, 20th and 30th records have errors. when i run the transaction and when the loop reaches 10th record it throws an error and comes out of the loop. i'm not able to find that there are 2 more records with errors.

how can i find out that there are 3 records which as errors and at the same time i want to post all the remaining 97 records...

waiting for ur replies

Regards

Priya

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 Jan 10, 2007 at 05:17 AM

    Try the following bdc call options

    l_t_ctu_params = 'NS'

    CALL TRANSACTION 'QP02'

    USING BDCDATA

    OPTIONS FROM l_t_ctu_params

    MESSAGES INTO g_t_message.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 09:34 PM

    Hi Senthil,

    according to the issue you are facing...even though you have 100 records in the file - you are able to process records till you get an error. Is that correct? In the example you mentioned - the processing comes out at the 10th record (error) and rest of the 90 records are not processed.

    Did you try asynchronous update option?

    This should be your logic...

    LOOP AT main_data_table.

    REFRESH bdcdata

    populated bdcdata with data for one transaction

    call transaction

    check subrc value - if non zero then format messages in messages table

    and store them in a table - refresh messages table for next transaction

    ENDLOOP.

    once you process all the data you can print out all the collected error messages...

    hope this helps..

    Cheers

    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.