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 data reg..

Former Member
0 Likes
398

Dear gurus,

I want run a bdc for transaction mm02.

i want to update 20 record from the xl file.

If 10th record getting problem, what will happen if i use session method ?

what will happen if i use call transanction method?

how to find the error in the both methods?

kindly let me know.

thanks in advance

R.Rajendran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
374

Only the 10th record gets failed in both session and call transaction method.

The rest gets updated just fine.

In BDC Session methiod, you can get the error log in the SM35 transaction.

IN case of call transaction, you have to handle the errors yourself like this

call transaction '<TCODE>' using it_bdcdata messages into it_bdcmsgcoll options from x_CTUPARAMS.
if sy-subrc <> 0.
loop at it_bdcmsgcoll.
call function 'FORMAT_MESSAGE'
.
.
.
.
exporting 
message = v_message.
write:/ v_message.
endloop.
endif.

1 REPLY 1
Read only

Former Member
0 Likes
375

Only the 10th record gets failed in both session and call transaction method.

The rest gets updated just fine.

In BDC Session methiod, you can get the error log in the SM35 transaction.

IN case of call transaction, you have to handle the errors yourself like this

call transaction '<TCODE>' using it_bdcdata messages into it_bdcmsgcoll options from x_CTUPARAMS.
if sy-subrc <> 0.
loop at it_bdcmsgcoll.
call function 'FORMAT_MESSAGE'
.
.
.
.
exporting 
message = v_message.
write:/ v_message.
endloop.
endif.