How to debug RFC connection?
I have got an error when SAP execute RfcOpenEx.
How to debug RfcOpenEx and setup breakpoint?
Thanks for your help
Marty
Hi,
in fact the conection from SAP to the destination works using SM59. but the system reply with a connection using RfcOpenEx but this function fails because there is a mixup with the parameters maybe a wrong type.
I will try to debug from the tcode COOPC1 when I start a subscription.
Thanks
Marty
Similar Messages
-
How to debug RFC connection using RfcOpenEx?
Hi,
I use COOPC1 to test a RFC connection and this transaction uses RfcOpenEx which fails.
How can I debug this connection?
Best regards
MartyHi,
in fact the conection from SAP to the destination works using SM59. but the system reply with a connection using RfcOpenEx but this function fails because there is a mixup with the parameters maybe a wrong type.
I will try to debug from the tcode COOPC1 when I start a subscription.
Thanks
Marty -
hi
could anybody suggest me how to debug RFC
thank you
kalyan.Hello Kalyan,
What do you mean by debug RFC? RFC can be tested using SM59 transaction code.
Regards
Arif Mansuri -
How to Debug RFC Enabled FM ?
Hello All,
I want to debug an RFC Enabled FM.
I've written a small Test program to check this.
DATA: eenumber LIKE bapip2001-pernr,
subtype LIKE bapip2001-subty,
objectid LIKE bapip2001-objps,
lockindicator LIKE bapip2001-sprps,
validitybegin LIKE bapip2001-begda,
validityend LIKE bapip2001-endda,
recordnumber LIKE bapip2001-seqnr.
CALL FUNCTION 'BAPI_ABSENCE_GETDETAIL
EXPORTING
employeenumber = eenumber
subtype = subtype
objectid = objectid
lockindicator = lockindicator
validitybegin = validitybegin
validityend = validityend
recordnumber = recordnumber
* IMPORTING
* RETURN =
* START =
* END =
* ABSENCETYPE =
* ABSENCEDAYS =
* ABSENCEHOURS =
* NAMEOFABSENCETYPE =
IF sy-subrc <> 0.
WRITE:/ 'UNsuccessful'.
ENDIF.
When a Break Point is kept at the above FM and When I press F5 the cursor is going into the FM .
But when I specify the Destination in the Call Statement as :
CALL FUNCTION 'BAPI_ABSENCE_GETDETAIL' DESTINATION 'SID_010'
EXPORTING
employeenumber = eenumber
subtype = subtype
objectid = objectid
lockindicator = lockindicator
validitybegin = validitybegin
validityend = validityend
recordnumber = recordnumber
* IMPORTING
* RETURN =
* START =
* END =
* ABSENCETYPE =
* ABSENCEDAYS =
* ABSENCEHOURS =
* NAMEOFABSENCETYPE =
The control is not going into the FM.
Can any one tell me how to debug the FM within a different system ?
Regards,
Deepu.KHi Deepu,
Your function module is at other system and you are calling it at some other system.
I hope you know on which system your function module exists.
First debug your coding at your system where you are calling this RFC Function Module and go to that point where your function module starts, now check the export data here
And
go to that system where this function module exists and give the same export data there and debug this Function Module at that system.
Reward points, if helpful,
Sandeep Kaushik -
How to Alert RFC connection failure via message mapping? Kindly Help!
Hi Experts,
I have a JMS - XI - RFC scenario.
JMS receives the Rosattenet PIP contents and sends it to RFC function module in remote SAP R/3 system.
I have a requirement where I have to monitor RFC connection failure because of the remote R/3 system being down. I have to send a email alert where the subject contains the PIP number to understand for which PIP the connection failed.
The PIP number exists in the PIP content at the interface.
If I use the Alert configuration in the runtime workbench for monitoring then I cannot dynamically pass the PIP number.
Only way I think of triggering alert is in the message mapping via a Java UDF.
But I am not sure how can I do this? How do I check in the UDF if RFC connection has failed? Is this the correct approach?
How to acheive my requirement? Note that my email subject content is dynamic bacause if PIP number.
Please help!
Thanks
Gopal
Message was edited by:
gopalkrishna baligaHi Gopal,
what version/sps of XI are u running?
The easiest way to do what u want inside a UDF is to
1. use JCo to try estabilish a connection to the remote SAP System
2. if that fails, use JavaMail to send an email message
Let your UDF work on the PIP number, accepting it as input, and (maybe) returning it as output if everything goes ok. Otherwise break the mapping execution as described by Michal in one of his last weblog (using Dynamic Configuration).
Note that the above method doesn't guarantee that the message will be actually delivered, as some seconds could last between your check and the real RFC delivery operated by the Adapter Engine...
I am evaluating a way to do the same with Alert Framework. I will let you know the result!
Cheers,
Alex -
The RFC connections to the R/3 backend system are not closed when I close my iviews which are created in the Visual Composer. Each time the iview is reloaded, an additional RFC connection is opened...
Has someone a solution for this problem?
Kind regards
FrankHi Frank,
The connector pool keep the connection alive to be reused by the model iViews datasource, those connections will be closed at the timeout or when CLEANUP runs.
It's not a problem is the way how the connector framework works
You can adapt the timeout according SAP Notes 913483 & 314530
Best Regards, Luis -
How to close RFC connection in one script coding
In one script, I am using the REF command to call another 2 scripts and these called scripts shd be run on same C36 ( test system). I shd close RFC connection between these 2 scripts.
That is , once the 1s script over the RFC shd be closed and the user has to give usename and pwd then 2nd script shd run.
I have tried with the following code . But it says RFC is not open
REF ( Y04S_FC_RM_CJ88_112 , Y04S_FC_RM_CJ88_1 , C36_999 ). (when execute this script RFC to C36 will be created and after execution that RFC shd be closed so I included following ABAP code)
ABAP.
data : dest type RFCDEST.
move 'S4_SAPC36999' to dest.
move dest to v_dest.
*--Close the connection before opening it incase it is opened
call function 'RFC_CONNECTION_CLOSE'
exporting
destination = dest
exceptions
destination_not_open = 1
others = 2.
if sy-subrc <> 0.
endif.
move sy-subrc to v_subrc.
ENDABAP.
REF ( Y04S_FC_RM_CJ44_112 , Y04S_FC_RM_CJ44_1 , C36_999 ). (here agagin the RFC will be created and this script will be exectued.)In one script, I am using the REF command to call another 2 scripts and these called scripts shd be run on same C36 ( test system). I shd close RFC connection between these 2 scripts.
That is , once the 1s script over the RFC shd be closed and the user has to give usename and pwd then 2nd script shd run.
I have tried with the following code . But it says RFC is not open
REF ( Y04S_FC_RM_CJ88_112 , Y04S_FC_RM_CJ88_1 , C36_999 ). (when execute this script RFC to C36 will be created and after execution that RFC shd be closed so I included following ABAP code)
ABAP.
data : dest type RFCDEST.
move 'S4_SAPC36999' to dest.
move dest to v_dest.
*--Close the connection before opening it incase it is opened
call function 'RFC_CONNECTION_CLOSE'
exporting
destination = dest
exceptions
destination_not_open = 1
others = 2.
if sy-subrc <> 0.
endif.
move sy-subrc to v_subrc.
ENDABAP.
REF ( Y04S_FC_RM_CJ44_112 , Y04S_FC_RM_CJ44_1 , C36_999 ). (here agagin the RFC will be created and this script will be exectued.) -
How to setup RFC Connection for SAPOSS?
Dear Experts,
I tried to setup the RFC connection for SAPOSS based on the following settings, but when I test connection, it failed.
Target system : OSS
Msg. Server : ... ( this where I stuck which I'm not sure what to fill in)
Group : EWA
Client : 001
User : OSS_RFC
Password : CPIC
Does anyone know the right settings?
Regards,
AbrahamHi all,
Do I really need to setup our own SAProuter if our firewall doesn't block any outbound IP address?
I've tried the following settings in OSS1 but still failed to connect.
SAProuter at SAP :-
Name : sapserv3 ( or sapserv7 or sapserv2)
IP address : 147.204.2.5 (or 194.39.134.35 or 194.39.131.34)
Instance no : 99
SAPNet Message Server
Name : oss001
DB Name : 001
Instance No : 01
I left the SAProuter1 and SAProuter2 (at customer site) blank.
Did I miss out anything? -
How to solved RFC connection (EarlyWatch)
Hi,
I having problem in Solution Manager 4.0 (EarlyWatch Report)
R/3 landscape (NDV,NQA,NPR)
NDV and NPR does works fine and getting EWA everyweek which is schedule every week
NQA does not work at all
Screenshot here:
http://www.flickr.com/photos/25222280@N03/2586790185/sizes/o/
1. I check RFC connection in solution manager (sdccn)
Selected NQA, and click RFC button
Login NQA tr: sdccn --> taskLog --> from menu GOTO --> setting --> Processor task
Checkhosts then double click (RFC destination) I got error: "no host fulfils the requirements of service data control center"
Is there any problem please let me know
Screenshot here:
http://www.flickr.com/photos/25222280@N03/2586794197/sizes/o/
2. Goto SM59 --> under R/3 connection --> check connection "SM_NSMCLIENT100_BACK" does works fine...
screenshot here:
http://www.flickr.com/photos/25222280@N03/2586794219/sizes/o/
Question: please let me know where and what i am missing or wrong ?
Thanks in AdvancedHi Issue,
These can solved in two ways.
1. You dont need an trusted RFC for EWA. You can get the reports w/o TRUSTED. if you really need this, then follow option 2.
2. Add S_RFC & S_RFCACL autorization objects to your ID in both systems. Solman & Target system.
This will solve your issue.
Thanks, -
How to find rfc connection exist between R/3 and APO ?
Hi all,
i wanted to find out...
rfc connection exist between R/3 and APO ?
kindly help in this regard..
Thanks
JoshiHi Sridhar,
If u have access to SM59 transaction then u can check and test the connection there it self.
If u don't have access then check the table RFCDES where all RFC destinatios defined for your system is stored.
Thanks,
Vinod. -
Establishment of the RFC-connection
Hi!
I am about to set up the RFC connection to SAP system from SAP Solution Manager.
The following connection between the systems/server was configured:
my server --> SAP Router 1 --> SAP Router 2 --> SAP System
How should the RFC-connection look like?
The errors I getting are:
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: timeout during allocate
Error Details LOCATION: SAP-Gateway on host on host dzla9005 (wp 1)
Is there some special SAP notes for that issue?
Thank you very much!
regardsHello Thom,
Facing the same issue.
Did you solve it ?
Regards,
Gidion -
RFC Connection error message while Debug the running WebDynpro app
Dear friends,
I am trying to debug WebDynpro application.
After configuring the NWDS with the J2EE server instance, I try to run the WebDynpro application, which I want to debug.
I did selecting the application and run after putting breakpoint at a button click.
But the webdynpro application uses 2 JCo destiantions, and so it gives JCOClientConnection for logical System: ... Please assure that you have configured the RFC connections and/or logical system name properly for this model! message.
If I run the same application from the portal, it doesn't give such error message.
Can anybody help me how can I run the WebDynpro application for debug purpose without getting this error message?
Thanks and regards,
LakshmikanthaiahHi,
are you running the application on the same server? Or are you using the Debugmode on your local installation.
If so, you should check the JCO Destinations on you local server.
<a href="http://localhost:50000/webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole">http://localhost:50000/webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole</a>
Regards,
Dennis -
hi folks,
How to debug an adaptive RFC connection and plz leave some idea about the Bapi_Input and Bapi_output structures
thanks in advance
nikhilHi
If you want to debug the backend then put and external breakpoint in the abap code.
make your jco connect to a single instance
login using the user which is configured for jco.
For the front end
put a break point in your code before you call the execute method on the RFC and after it and use the debug perspective to evaluate the values.
Regards
Ayyapparaj -
Hi There,
Please can someone tell me how to specify a variable in the path prefix of an External HTTP (RFC) connection in transaction SM59?
For example if my path prefix is /invoke/test/example?input=XYZ; how do I replace "XYZ" with a variable so that I can pass in any value after "=" ?
Thanks,
BrendonHi,
This is SAP Business one system administration forum. Please find correct forum and repost above discussion to get quick assistance.
Please close this thread here with helpful answer.
Thanks & Regards,
Nagarajan -
How to display RFC-Logon-Screen for non trusted connection in Web-Dynpro?
Dear Web-Dynpro-Specialists,
i got a issue while creation of an WebDynpro-Tool, which is using RFC connections for reading data.
In some cases the RFC connection is not a trusted one connection, so a login is nessessary, but in
this cases not a window is coming up for login....
Any idea how i can get this window for login, in order to collect the nessessary Data for my tool?
Additional Information concerning the RFC connection:
While running my Web-Dynpro i run this Method:
METHOD get_table_entries.
CLEAR rt_entries[].
CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
DESTINATION iv_destination
EXPORTING
gen_key = iv_table_key
table_name = iv_table_name
TABLES
entries = rt_entries
EXCEPTIONS
internal_error = 1
table_empty = 2
table_not_found = 3
OTHERS = 4.
CASE sy-subrc.
WHEN 1.
RAISE internal_error.
WHEN 2.
RAISE table_empty.
WHEN 3.
RAISE table_not_found.
WHEN 4.
RAISE unknown_error.
ENDCASE.
ENDMETHOD.
Thanks a lot in advance
Best regards
Carsten KlattHi!
You can use the function module RFC_MODIFY_R3_DESTINATION to create, modify and delete RFC connections. You will need the system ID (e.g. ABC), client (e.g. 123), system number (e.g. 00) and the host name of the server. In this example the following code would create or modify the RFC destination ZRFC_DESTINATION.
CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
EXPORTING
destination = 'ZRFC_DESTINATION'
action = 'M'
systemid = 'ABC'
systemnr = '00'
server = 'serverhostname'
language = sy-langu
client = '123'
user = 'USERNAME'
password = 'PASSWORD'
description = 'Dummy RFC Connection'
EXCEPTIONS
authority_not_available = 1
destination_already_exist = 2
destination_not_exist = 3
destination_enqueue_reject = 4
information_failure = 5
trfc_entry_invalid = 6
internal_failure = 7
snc_information_failure = 8
snc_internal_failure = 9
destination_is_locked = 10
OTHERS = 11.
With the following code you can delete this connection:
CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
EXPORTING
destination = 'ZRFC_DESTINATION'
action = 'D'
EXCEPTIONS
authority_not_available = 1
destination_already_exist = 2
destination_not_exist = 3
destination_enqueue_reject = 4
information_failure = 5
trfc_entry_invalid = 6
internal_failure = 7
snc_information_failure = 8
snc_internal_failure = 9
destination_is_locked = 10
OTHERS = 11.
Please keep in mind that deleting an RFC connection is usually noted in the system log.
If you want to reuse your connection for multiple servers, you could run into trouble since connection data is cached.
Sincerely,
Stefan
Maybe you are looking for
-
Why can't I edit the entire Photomerge image in Adobe Elements 8?
This granny admittedly isn't terribly Elements "savvy". However, I managed to figure out how to scan an old 1888, 10x12 photo in two halves (left and right), and used the Elements Photomerge to combine the two shots. It worked quite well - slight
-
IDVD won't burn my project!!
I have FCP and I exported using the Quicktime movie option. I took it into iMovie, organized it, and saved it. I went to iDVD, pulled the movies, go to burn the disc and the following happens: I insert the disk when prompted, it then says "waiting fo
-
Hi, I've tried all the fixes I can find for this and nothing has worked. Safari, Firefox and Software Update have all stopped functioning, anything involving the internet won't load up. But when I check the network connection it says it's working pro
-
Exported PDF does not reflect the most recent changes to my inDesign document
When I export a new PDF from inDesign after I have made multiple changes to the document the PDF looks like a previous version of my inDesign doc before the edits
-
Hello, I have a 15 digit code. It's of varchar data type. Now when i try to pull it into Obiee it's dropping off the trailing zero's. Is there a way to get them. I know we can get them in the report by using html tag. But i have this in the prompt. i