cancel
Showing results for 
Search instead for 
Did you mean: 

bdc error handling

former_member223446
Active Participant
0 Kudos

hi all

i want to put errors when i am handling errors in call transaction.those errors are sent to session log.i mean the error file when u r doing error handling in call transaction, those are sent to session log.

thanks in advance

kiran

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try using include bdcrecx1.

On the selection you have the option of whether you want to create error session.

or if you dont want to use this include , you can simply debug this to see how it is creating error session.

Former Member
0 Kudos

Hi,

May be u are talking of this..

DATA : g_flag.

........

.......

........

......

call transaction 'XK01' using bdcdata mode 'A' update 'S'.

if sy-subrc <> 0.

if g_flag is initial.

g_flag = 'X'.

call function bdc_open_group.

...

...

endif.

call function bdc_insert.

endif.

refresh bdcdata.

endloop.

if g_flag = 'X'.

call function bdc_close_group.

endif.

santhosh

Former Member
0 Kudos

Hi,

I am not getting you. What exactly you want to do. Do you want to handle errors in Call Transaction???

Regards,

Saroj

former_member223446
Active Participant
0 Kudos

hi man

i know error handling call transaction.i want to put th error file into session log.

when u r doing error handling in call transaction, we r put the errors into one error file.that error file has to sent into the session log (sm35).

Former Member
0 Kudos

Kiran,

Did u try what i suggested works for you?

santhosh