on 06-15-2006 2:48 PM
I was going thru the Blog
/people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-
I am not understanding what Michal is trying to say? Would some one explain me please.
I understand that when we are talking to an RFC and error occurs how XI is going to handle.
Thanks
hi,
it shows a way on how to debug a RFC
(during development tests)
this way you can see the actual call from the XI
that the XI makes to the R3
and you see the real values
there's no other way to debug it
scenario
you send to the R3 (with RFc adapter) an RFC call
the RFC call gets executed but it does not
do you you need (but you believe that the fields
are correctly fielled) so what you you do then?
you need to stop the RFC call (from the XI)
but on the r3... and that the way:)
once you stop the call you can restart it
and start the debugging - this is standard ABAP
from now on
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
other approaches:
you can make an endless loop in the rfc and
then go into this loop
(have a look at comments in my weblog about debugging)
or you can invoke a message:
but my approach seems to be very easy and
you can all fields in your rfc call (in the debugging)
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Thanks Michal.
Just I have listed what I have understood, please correct me. (I got confused with your naming conventions)
1) Existing RFC : RFC-OLD (XI calls RFC_OLD)
2) Copy : RFC-OLD_Copy
3) : Delete the function code in RFC-OLD
4) : RFC-OLD Calls RFC-OLD_Copy
DATA: queue_name like TRFCQOUT-QNAME.
*****************************
*setting the queue name
*****************************
queue_name = 'DEBUG_QUEUE'.
call function 'TRFC_SET_QUEUE_NAME'
exporting
qname = queue_name
exceptions
invalid_queue_name = 1
others = 2.
if sy-subrc <> 0.
endif.
****************************************************
*call the new function in the background *and passing all the parameters from the old RFC! *so we'll be able to debug the RFC with correct *parameters
****************************************************
CALL FUNCTION 'RFC-OLD_Copy'
in background task
destination 'NONE'
as separate unit
TABLES
TABLESAMPLE = TABLESAMPLE.
***************************************
*remember about the commit work
***************************************
Commit Work.
Endfunction.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.