‎2008 Jul 11 7:51 PM
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
‎2008 Jul 11 7:59 PM
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.
‎2008 Jul 11 7:59 PM
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.