Application Development and Automation 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: 
Read only

BDC error

Former Member
0 Likes
1,540

Hi,

We upload 100 records. if we got error in 50th record what happend in call transaction and session method?

Thanks & Regards,

Padmaja.

12 REPLIES 12
Read only

Former Member
0 Likes
1,342

Hi Padmaja,

<u><b>Call Transaction</b></u>

If u are trying to upload 100 record and there is a error in 50th record , then 50th record will be sent as error record and the processin will be start from 51st record.

<u><b>Session</b></u>

If u are trying to upload 100 record and there is a error in 50th record and the program is being run in background then program stops there.

Thanks,

Aditya.<b></b><b></b>

Read only

Former Member
0 Likes
1,342

Hi aditya,

you mean in call transaction the process to be continue if error occur also

whereas session the process to be stopped if it is foreground and if it is background the process to be continued.

am i right?

Regards,

Padmaja.

Read only

0 Likes
1,342

No...

In call transaction and session also you will able to move on to the next record.

For the session, when you will see this type of session in SM35, you can see the status ERROR agains the record 50. System will resume from the next record onwards.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,342

Session:

In session If you get 50th record error, it will log and complete the rest of 99 records, but the advantage here is you can goto SM35 and re-process the session after the error has been corrected. So this time it will process only 1 errored record.

In Call Transaction method you need to change the data and process it again.

Pavan

Read only

Former Member
0 Likes
1,342

Here my question is in call transaction and session method if i got error in 5 th record out of 10 records what will happen in both methods. Whether the process to be continue or not?

if process to be continue rest of the records are updated or not?

if process to be stop previous records are updated or not and what about rest of the records ?

in both fore amd back grounds?

Read only

0 Likes
1,342

Padma,

Yes it will continue with next record.

Pavan

Read only

0 Likes
1,342

There are two possiblities:

1. Further processing will not happen when:

You have passed the full BDCDATA thourgh only one call transaction.

You have passed the full BDCDATA trhough only one BDC_INSERT.

Like:

LOOP AT ITAB.
  APPEND BDCDATA.   "< This will have data for all 10 transactions...
ENDLOOP.
CALL TRNASACTION ..... 
" << this will not resume the processing for any reocrds after the error.

2. Further processing will happen when

You have passed only transaction in BDCDATA and then passed it into the CALL TRANSACTION.

In this case you will able to get the next record even if you have erorr on record 5.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,342

Hi patel,

i am understand ur answer.

Thanks & Regards,

Padmaja.

Read only

Former Member
0 Likes
1,342

Naimesh Patel ,

sorry . i am not understand ur answer.

regards,

Padmaja.

Read only

0 Likes
1,342

Ok..

Next record will not process when you have all the trnsaction in the same call transaction or in the same session. But generally we don't use BDC like this.

We use BDC like:

LOOP AT IT_DATA.
  FILL THE BDCTAB.
  CALL TRANSACTION ...
  REFRESH BDCTAB.
ENDLOOP.

or

CALL FM BDC_OPEN
LOOP AT IT_DATA.
  FILL THE BDCTAB.
  CALL FM BDC_INSERT
  REFRESH BDCTAB.
ENDLOOP.
CALL FM BDC_CLOSE

In this case you will not have any problem, if any of them gets in to the error. System processes the next record without any probelm.

Hope it is clear now.

Regards,

Naimesh Patel

Read only

0 Likes
1,342

Hi patel,

In session method if i got error in fore ground the process to be continue or not?

in session method if i got 1 error record in back ground how can i reprocess the error record?

in call transaction method we pass error records to BDCMSGCOll , how can i reprocess the error records?

if you programs please send to me.

Regards,

Padmaja.

Read only

0 Likes
1,342

<i>In session method if i got error in fore ground the process to be continue or not?</i>

Yes

<i>in session method if i got 1 error record in back ground how can i reprocess the error record?</i>

Go to SM35 and run the same session again in the error mode. System will stop at the error. You can correct the error and press enter. System will start the processing ahead.

<i>in call transaction method we pass error records to BDCMSGCOll , how can i reprocess the error records?</i>

In suce case, you need to get to know about your BDCDATA.

You can than create a Session for this kind of errorenous records.

Regards,

Naimesh Patel