Detail RFC
Hi all
Pls tell me deatil of RFC, How we can create RFC in R/3
Thanks & regards
Naresh Kumar
Hi Naresh
Remote Function Call:
RFCs are requests that an SAP component sends to invoke functions on remote systems, or calls that remote systems initiate to invoke functions on an SAP component.A process that can accept RFCs from SAP components. This allows SAP components to access functions in external systems. In SAP BC terminology, the process is called a Listener. Listeners are one or more threads on SAP Business Connector that wait for incoming requests from SAP components. Listeners are named and register with an SAP gateway to indicate that they are ready to accept requests. Listeners can accept RFC or tRFC requests.
Transactional RFC (tRFC) and Queued RFC (qRFC). tRFC is used mainly to transfer ALE Intermediate Documents (IDocs).
Transactional RFC:
If an error occurs during a synchronous remote function call, the system cannot tell at what point the error occurred (most crucially, whether the function module was actually processed in R/3 before the operation failed). Restarting a failed call is therefore a dangerous thing to do, since you risk duplicating a completed function call.
To alleviate this problem, you can use transactional RFC, which guarantees that each function call you issue will only be executed once, even if you submit it repeatedly to the R/3 System. The system implements this safeguard by assigning a unique transaction ID (TID) to each transaction that you submit. When you attempt to process the transaction, the system checks whether that TID has already been processed. If it has, the transaction is ignored.
Queued RFC:
When you use transactional RFC, you cannot guarantee the order in which the function calls will be processed in the system (it is quite possible that one call might overtake another). For cases where you need to specify a particular processing order, you can use queued RFC, which is an extension of transactional RFC. In qRFC, you place each function call in a logical queue. A function call cannot be executed until all of its predecessors in the queue have been processed. Queued RFC calls are processed asynchronously.
RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
RFCs manage the communication process, parameter transfer and error handling.
Have a look at this link.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694
You can find the entire information on RFCs
http://help.sap.com/search/highlightContent.jsp
Regards Rk
Similar Messages
-
Soap Sender and RFC Adapter receiver getting APPLICATION_ERROR
Hi, all,
I have a webservice soap sender and RFC Adapter receiver scenario, it works fine with RFC "RFC_SYSTEM_INFO", When i tried the RFC "RFC_READ_TABLE", getting the following error message, <SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code> in
SXI_MONITOR, in webservice client, i am getting error message like this:
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<rfc:ZZTEST_RFC_READ_TABLE.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<Name>TABLE_NOT_AVAILABLE</Name>
<Text>QUERY_TABLE not active in Dictionary</Text>
</rfc:ZZTEST_RFC_READ_TABLE.Exception>
Thanks a lot!Hi
Its not compulsory but its good to wrap it as Z object.
Well if you are facing problem with SOAP data. Then try to do one thing. Check with the data you received from SOAP message. If this works
Then try to check in mapping is it passing the data correctly or not. With this check with the user authorization PIAPPLUSER. if its having less authorizations to execute this BAPI in ECC
Thanks
Gaurav -
RFC - XI - WEBSERVICES scenario - Where to create RFC Destination
Hi Experts
For my RFC - XI - WEBSERVICES scenario, I have to create one TCP/IP RFC destination on R/3 system with the following details
RFC Destination Name : XXXX
Connection Type : T (TCP/IP)
Activation Type : u201CRegistered Server Programu201D
Program ID : YYYY
Gateway Host : R/3 Details ..??
Gateway Service : R/3 Details ..??
My Function Module (Remote-Enabled) - u201CZZZZu201D is defined in R/3 System.
This Function Module should be communicated with the target system i.e. NW XI system
As per the Note from SAP Help: To be able to communicate using RFC, you need to define the target systems as RFC destinations in the sending system(R/3)
Target system u2013 XI Server
Sending system u2013 R/3 System
Are my details provided are good enough as per my explanation? Please guide me in this regard.
QUESTION : Where exactly do I need to create the RFC Destination(SM59)? on R/3 side or on XI side?Refer the following link-
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1636235450DB01012070359836134304End?blog=/pub/wlg/1438
what are the inputs should be given to Gateway Host and Gateway Service while creating RFC Destination??
Open transaction SMGW on the R/3 system and choose
Goto -> Parameters -> Display. Beneath Attributes there will be the
entries 'gateway hostname' and 'gateway service'.# -
Could not execute the RFC sender scenario
Hi,
My Scenario is RFC to File asynchoronous.
RFC is in XI box and I want the file to created on the XI box only.
I have created an RFC destination using Sm59 transaction on XI box. Following are the details
RFC Destination --> SAP_TO_XI
Connection Type --> T
Program ID --> PRG_ID
Activation Type --> Registered Server Program
Gateway Host --> SAPXIS01
Gateway Service --> sapgw00
I have created the Sender CC with the above gateway host, service and the program id.
I want to execute the scenario on SAP XI by executing the RFC on XI box through a report.
The following is the statement used in the report to execute the RFC
Data: LS_CTRY_DTLS TYPE Z_TEST_TABLE.
CALL FUNCTION 'Z_TEST'
DESTINATION 'SAP_TO_XI'
IN BACKGROUND TASK
TABLES
LT_CTRY_DLTS = LT_CTRY_DTLS
EXCEPTIONS
COMMUNICATION_FAILURE = 1
SYSTEM_FAILUE = 2.
COMMIT WORK.
The function module is not giving any error and at the same time, no messages are shown in SXMB_MONI transaction. Can you please let me know the reason for this.
Thanks
PriyaHi Madhav,
Thanks for answering. I have done as you have said. The connection is working properly. I am getting the following message when I clicked on the Test Connection button.
Connection type: TCP/IP connection
Logon: 4 msec
0 KB: 1 msec
10 KB: 3 msec
20 KB: 4 msec
30 KB: 5 msec
But, still I am not able to see the messages through SXMB_MONI -
Hi All,
I am getting error while executing oDATA service from SAP Netweaver Gateway
Error details:
RFC call ended with "Communication Failure" exception (Function call failed; could not find the function
I am using SAP NG 740
Project is created in Gateway system using SEGW having Map to Datasource option used.
in SPRO manage alias, I had seleted Local App option. Screen attached
I had tried all troubleshooting like delete and add service and alias in "/IWFND_MAINT_SERVICE".
but still getting same error for all service.
Kindly advise.
Regards
VivekHello Vivek,
Service builder would have also generated code for RFC Exception handling to catch exceptions raised when communication fails between your GW and BE for some reasons.
Handling is done for 1. System Failure 2. Communication Failure & 3. Business Failure;
Put a BP in your DPC or DP_EXT class where exception code is written to check what exactly is has caused communication failure.
Check if that RFC is existing in that destination or not.
For your reference : Code would be something like this. Put BP here and check the problem.
* Error and exception handling
IF lv_subrc <> 0.
* Execute the RFC exception handling process
me->/iwbep/if_sb_dpc_comm_services~rfc_exception_handling(
EXPORTING
iv_subrc = lv_subrc
iv_exp_message_text = lv_exc_msg ).
ENDIF.
Go inside this method and check to get info on what has to be done to resolve issue.
Check carefully what has gone wrong and fix it accordingly.
No need of adding service & deleting as problem is not because of that.
Regards,
Ashwin -
Not able to display the values in the input fields of the view
Hi All.
I am facing an unique issue.
My custom element created in my custom node getting a null value
from a Get Vendor Details RFC written in RFC.
The values are getting populated in the custom element but not coming in the
input field of the corresponding view.
Then, I wrote this code
wdContext.nodeCustom.setLeadSelection(1);
and all the output came in the input field.
Now, after a build it is not coming in the input fields of the view.
All my custom nodes are Singleton and values are coming in the custom elements
as I can print them by wdComponentApi.getMessageManager.reportSuccess(""+customnode.getField());
All my nodes are Singleton.
Please give your valuable inputs.
Regards
Kaushik BanerjeeHi
Check the node property
initializeLeadSelection true
if not make it true , I would suggest to make a value node of the same structure as in RFC after execuation of the RFC populate the value manually.Dont bind it directly to the UI element.
BR
Satish Kumar -
SOAP Fault Problem for WAS 6.20 System
Hi,
We are exposing some RFC enabled ABAP function modules as web services in a WAS 6.20 system.
We are trying to have all consumers of our web services use the SOAP faults to handle errors.
It works great when we raise exceptions from the function module.
However, we are having an issue when an ABAP dump occurs. It sets the SOAP fault properly,
but the XML return has extra data at the end that is causing our .NET developers problems when
trying to handle the SOAP fault.
Here is the Original(raw) XML:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode> SOAP-ENV:Client </faultcode>
<faultstring> Internal Server Error </faultstring>
<detail>
<rfc:Error xmlns:rfc="urn:sap-com:document:sap:soap:functions">
<type> RABAX_STATE </type>
<message> Divide by 0 (type 1). </message>
</rfc:Error>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
sword" value="" size="8"/>
</td>
<tr>
<td> Language:</td>
<td>
<selectname="sap-language" class="pulldown">
<optionvalue="EN"> English</option>
<option value="DE">Deutsch</option>
</select>
</table>
<input type="submit"value="Anmeldung">
</form>
</body>
</html>
The HTML data at the end is causing the problems for our .NET guys.
We have a 6.40 system in development for roll out sometime next year and we don't have this
problem on that system. However, since we are exposing web services on our 6.20 system, we'd
like to get our standards in place now, so that our consumers won't have to change after
the upgrade.
Any information on how to turn off this extra data on a 6.20 system would be appreciated.
Thanks,
JeffHi Andreas,
SOAP 1.2 is not supported, neither in WebAS 6.20 nor in 6.40 as far as I know support is not planed even for next magor release...
The only what I can propose you is to create an OSS and check what shall SAP answer you,
or to downport your applicaiton.
Regards, Angel -
Hi All,
I am creating interactive form (transaction SFP) but when I am trying to activate it, it gives an error saying " Invalid HTTP connection: ADS', so I checked the ADS connection using program 'FP_PDF_TEST_00 where it throws error "Invalid HTTP connection: ADS, No version information available". So I think I need to install and configure ADS on client's network, so can anyone tell me the steps to do the same. I have gone through 'Configuration Guide' but still not able to install ADS.HI Shilpa,
Please check these steps
"creating the ABAP Connection"
1 logon to your SAP WEB AS central instance host
2 call transaction SM59
3 choose create
4 enter the following details
RFC destination ADS
Connection type C
Description anything
5 choose enter
6 choose technical settings tab and enter the following
TARGET HOST enter the host name where your SAP J2EE engine is located or the host name of the Windows dialog instance
SERVICE NO enter the J2EE HTTP port number(general format 5<j2ee instance number>00) or enter the port number of the Windows dialog instance
PATH PREFIX enter the exact string /AdobeDocumentSerivces/Config?style=rpc or
when you want to set up the SSL :/AdobeDocumentServicesSec/Config?style=rpc
7 Choose the logon/security tab and configure the secruity account to your security requirements
8 save your settings
9 Choose Test Connection
10 A screen is displayed . The field status_reason:OK indicates that the test was successfull
Please, do feel free to ask any queries
Thanks&Regards
Revanth -
RFC-connection error: DETAIL: no connect of TP sapdb02 from host u0085 after 20
Hello!
I face with problem to set up successfully a RFC-connection from SOLMAN to the satellite system.
The network connection here is VPN.
The following error appears, when I execute the connetion test:
Error: Timeout during allocate
LOCATION: SAP-Gateway on host /sapgw03
DETAIL: no connect of TP sapdb02 from host after 20 sec.
COMPONENT: SAP-Gateway
Has some one any ideas how to solve this problem?
Thank you very much!
regards
ThomHi,
Did u get this issue sorted out.
Let me know if you did mate..
I think its some thing to do firewall port..
Thanks
James -
Since transferring data from my desktop to my laptop, i am now having problems copying and pasting details from my bank website in to a word document, the formatting is all over the place. This didnt happen before, when i pasted the details in to the word document the formatting was exactly the same as on the webpage. If I use internet explorer, I dont have this problem, so, I can only assume it has something to do with Firefox. I have checked the "Error console" and I am receiving this message: server does not support RFC 5746, see CVE-2009-3555.
Maybe:<br />
Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852 -
RFC to get the Vendor Master details
Hi Experts,
We have a requirement to create an RFC to get the Vendor Master details (Used for Searching the Suppliers), where the Input criteria : Vendor Name(First Name & Last Name), City, Purchase Organisation and the corresponding output is Address Data, Central Data, Bank Information, Sales Data of Customer. Is there any standard report or function module we can use for this requirement.?
Thanks & Regards
-AsimHello,
You may need to write your own RFC with the interface that you want. If all the input parameters are obligatory then you can use the following logic
Select the vendor numbers from table LFA1 based on the name and city.
Us these vendor numbers with the purchase organization from the input parameters and filter them using the table LFM1.
Now the result will be all vendor numbers with the name specified in the city for the specified purchase organization.
That may be multiple vendors so run a loop and inside the call the RFC BAPI_VENDOR_GETDETAIL and pass the vendor numbers to get the other details.
Hope this helps in solving your query.
Regards,
Sachin -
RFC enabled FM to fetch partner details of vendor from ECC system
Hi All,
I am working on an enhancement in SRM system.the requirement is as follows.
1.In the current SRM application, the invoicing party partner function does not exist.Because of this, the invoicing party cannot be populated on any external purchasing documents such as RFQ, PO, RO, contracts.
2.This functionality exists in ECC. In ECC, the user can enter an invoicing party on a vendor master record.The invoicing party functionality will be deployed to SRM so that external purchasing documents are populated with the correct invoicing party.There is a standard vendor replication program for this...
To accomplish the above said functionality, I have planned to do like this in SRM system....
1.There is a BADI "BBP_DOC_CHANGE_BADI" with a method "BBP_PO_CHANGE ". This will get triggered when a PO is getting created or changed.
2.In that there is a table called IT_PARTNERS which will have all the partner details in it.
3.I will take the partner (vendor number i.e.,partner function is 0000019) and pass that value to an RFC enabled function module which will fetch the invoicing party from ECC system.
4.Later that Invoicing party number is appended to the IT_PARTNERS so that it will be populated on any external purchasing documents.
Here I want to know whether any standard RFC enabled function module which fetches the invoice party details from ECC system.
Awaiting your answers...
Thanks,
Ravee..Hi. Just use function RFC_READ_TABLE and table WYT3.
Regards,
Dave. -
In the bw instlationat login details for RFC CONECTION SOME ERROR?
HI ALL
in the bw instlationat login details for RFC CONECTION SOME ERROR? IS OCCURED LIKE THAT ,USERNAME : DDIC, PASSWORD_________________-:
WHICH PASSWORD I WILL GIVEuse the default password 19920706
With Regards
Bhaskar
Edited by: bhaskar1818 bhanu on May 28, 2008 12:35 PM -
MSS - Business Event Details - Error Unexpected Exception when Calling RFC
Dear Experts,
Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
Any inputs on this?
Thank you.I believe it is our custom iView that is incorrect.
-
hello everybody,
i want to know in detail about the RFC Adapter.
i have already gone through the docs in http://help.sap.com and basic RFC concepts. Now have to understand the architecture as well as the code.Hope somebody helps me out in this.
Thanks,
Pratikhey pratik...
i hope u hav sap service id....
not quite sure if u hav visitd this particular link...
https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000463622&
hope it helps...
regards...
vishal
Maybe you are looking for
-
Freezes, beachballs and problems. How do I fix this?
I have been having a lot of problems lately, well really since the day I bought this thing, and I'm curious if there is something I can fix? My macbook pro seems to be running really poorly; getting beachballs just to open another tab in Safari when
-
Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that? Thanks
-
Change on line number display with out using moble...
I need to change the phone number that is displayed but when I tried, my account wants to send a text. I do not want to use a moble number. How can I do this?
-
When i am executing Transaction MICN with the related variant, and process it background through Batch Input. After that we run MI24 for Physical inventory. it shows the generated records. When i run it one time, it shows 500 records, but when we ru
-
Quick question on EAP with MAC auth.... Documentation shows that if you enable EAP with MAC, clients that do not support EAP authentication, will then be able to use MAC. Is it possible to enforce that clients use both EAP and MAC? I don't want to cr