cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging the code after msg sent from XI

Former Member
0 Kudos

hi

i have coded a BDC in my inbound-outbound interface,

when the interface is run from XI, the BDC generates an abort message "Runtime error RAISE_EXCEPTION has occurred" and hence the record doesnt get created.

But if I run the interface from ABAP itself, (ie by giving the XML payload in SPROXY), no error is generated and record gets created.

How can i resolve this problem.

Is there any way to debug the code after XI has sent the inbound file?

regards,

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

prabhu_s2
Active Contributor
0 Kudos

1. what is the mode u are using in ur bdc?

2. if u wanna to update some transcational data prefer bapi inside the proxy and do not use bdc.

if possible can u post the error in detail?

Former Member
0 Kudos

I am running the BDC in 'N" mode.

"Runtime error RAISE_EXCEPTION has occurred". This is the error (ABORT Message) that the BDC generates.

I am not able to debug the code and locate the exact location of error.

bcoz, when i run the interface from ABAP and debug, no error or abort is raised, if i run the BDC in foregrd or background

prabhu_s2
Active Contributor
0 Kudos

balaji

this is the error in detail from moni? if u are using call transaction ca u comment that statemetn and chk the interface?

Former Member
0 Kudos

actually in MONI .....interface is PROCESSED SUCCESSSFULLY.....

in my outbound, i send 2 fields error code and error description.

this gets an error saying " run time error RAISE EXCEPTION has occured"

when i run the interface from ABAP (SPROXY) even then the moni trans show processed successfully but has got no error message.

so this happens only when i run from XI..

Note that even from XI, moni gives processsed successfully flag

prabhu_s2
Active Contributor
0 Kudos

1. Did u check ur interface by commenting the call transaction stmt

2. is it a sync scenario u are working on ?

Former Member
0 Kudos

Balaji,

can u try this in the code before the call to BDC

break user.

a manual break point for the user used in RFC Destination in XI which points to your proxy SAP system