2007 Aug 01 11:33 AM
Hi ,
This is the first time iam working in RFC , i need to creat a new RFC , can any buddy let me know how to creat a an RFC . and the steps involved in creating an RFC .
Thanks ,
VInay .
2007 Aug 01 11:47 AM
" please see this link here it was given with screen shot for all the RFC
" Creation<a href="http://">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=39728</a>
reward points if it is usefulll.....
Girish
" please see this link here it was given with screen shot for all the RFC
" Creation<a href="http://">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=39728</a>
reward points if it is usefulll.....
Girish
2007 Aug 01 11:35 AM
2007 Aug 01 11:35 AM
Hi,
Refer
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
Go to Transaction code : SE37 to create an RFC.
Import and Export parameters(With respect to a RFC):
Import Parameters implies Input value(s) to your RFC
Export Parameters implies Output value(s) to your RFC
>>Import :
>>FROMZIP type CHAR10
>>TOZIP type CHAR10
>>Export:
>>DISTANCE type CHAR10
FROMZIP of type CHAR10 and TOZIP of type CHAR10 are input to your RFC.
DISTANCE of type CHAR10 is output from your RFC.
>>How is Import and Export related to R3 and how do I go about doing it.
In R/3 make use of 'PATTERN' button in your report program.
Import and Export Parameters (with respect to your report program)
Export Parameters implies value(s) that are given to your RFC from your R/3 report program and
Import Parameters implies value(s) that are output to R/3 from RFC.
Regards
2007 Aug 01 11:35 AM
Hi,
please check out the link below it might be helpful to you
http://help.sap.com/saphelp_nw04s/helpdata/en/be/6e0f41218ff023e10000000a155106/content.htm
***********please reward points if the information is helpful to you*********
2007 Aug 01 11:36 AM
Hi,
Goto Transaction ABAPDOCU
In the KEYWORD SEARCH TYPE "RFC" and search
You will all the info under RFC-> SUBJECT.
Regards,
Sesh
2007 Aug 01 11:36 AM
goto se37.create a function module.in attributes give REMOTE ENABLED.
Then give export ,import paramaters and exceptions.Write the logic(code) and activate
2007 Aug 01 11:36 AM
Even this is a good site..
http://www.saptechnical.com/Tutorials/XI/RFC2WebService/Page1.htm
Regards,
Pavan
2007 Aug 01 11:41 AM
2007 Aug 01 11:42 AM
Simply,
1) go to se37. Chose form menu Goto->Function Groups->Create Groups.
Give a Z name for your function group.
save it.
2) create a function module by giving a z name to your function module. It would ask you to enter the function group name. GIve the fg name you have just created.
3) In the atrributes section chose the radio-button Remote enabled.
4) Give the importing , exporting, tables parameters with appropriate types.
5) Write the Code in the source code section.
6) Do not use pass by referance for the interface variables(IMPORTING/EXPORTING). YOu have to pass the variables by value only(Check box should be chosen)
Save the code and activate the FM and FG.
In Detail,
Check for SAP Help they give you the information in much details
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm
Exercise 1: Creating a Function module
Use
Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module, which you can use for the next exercise steps.
Procedure
Create a Function Group:
To open the Object Navigator choose from the SAP Menu Overview ® Object Navigator.
From the Object Selection window select Function group, enter FG_Tutorial as name of your function group, and choose Display.
Since the function group FG_Tutorial does not yet exist, the system asks you whether to create it. Confirm with Yes.
Enter a short description and choose Save.
In the window Create Object Catalog Entry choose Local object.
You created a local function group. Before it can receive function modules, you must activate it.
In the object list, use the right mouse button to select the function group FG_Tutorial you just created and choose Activate.
On the next screen choose Continue.
The function group is now active.
Create Global Data:
Within the function group you can declare global data. All function modules of this function group share this global data.
In the Object Selection window open the directory tree Includes and double-click on LFG_TutorialTOP.
Choose Create « Change ( STRG+F1 ) and enter the following data declarations in the tool area:
TABLES spfli.
DATA spfli_workarea LIKE spfli.
Check ( STRGF2 ) and activate ( STRGF3 ) the include file.
Create a Function Module:
Create a function module that reads data from table SPFLI .
If you are not yet in the Object Navigator, choose from the SAP Menu Overview à Object Navigator and display the function group FG_Tutorial .
In the Object selection window, use the right mouse button to select function group FG_Tutorial , and choose Create à Function module.
Enter as function module name XX_RFC_READ_SPFLI and replace XX with the initials of your name.
Enter a short description and choose Save.
The system lists the function module in the object list in a new directory Function modules, and displays it on the right side in the Function Builder.
Select the Attributes tab and under Processing type choose Remote-enabled module.
Select the Import tab and enter in the appropriate columns the names of the import parameters: carrid with reference type like spfli-carrid and connid with reference type like spfli-connid . For each parameter set the Pass value flag.
Select the Export tab and enter in the appropriate columns the names of the export parameters: ex_spfli with reference type like spfli and sys with reference type like sy-sysid . For each parameter set the Pass value flag.
Select the Exceptions tab and enter the exception invalid_data .
Select the Source code tab.
The system copies the entries you made in the other tabs and creates a source text.
Complete the function module with the actual flight data retrieval.
Compare your function with the model solution.
Save the function module ( STRG+S ). When the note on remote-enabled function modules appears, choose Continue.
Check the function for errors ( STRGF2 ) and then activate it ( STRGF3 ).
Test the Function Module:
Choose Test/Execute ( F8 ) or Function module à Test à Test function module.
As import parameter for CARRID enter LH ; for CONNID enter 400 . Leave the RFC target system line empty.
Choose Execute ( F8 ).
The system displays the export parameters EX_SPFLI and SYS in an additional table.
For a detailed display of the data select the value in line EX_SPFLI.
Result
You created a function module and assigned it to a function group.
Continue With
Exercise 2: Implementing a Local Function Call
To make RFC function module, please set remote enabled in the attributes of function module.
Also refer,
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE5/BCFESDE5.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESRFC/BCFESRFC.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE4/BCFESDE4.pdf
regards,
srinivas
*reward for useful answers*</b>
2007 Aug 01 11:45 AM
hi
just refer to the link below
http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
<b>step by step procedure with screen shots</b>
regards
gaurav
<b>plz dont forget to reward points if helpful</b>
2007 Aug 01 11:47 AM
" please see this link here it was given with screen shot for all the RFC
" Creation<a href="http://">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=39728</a>
reward points if it is usefulll.....
Girish
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |