cancel
Showing results for 
Search instead for 
Did you mean: 

Calling the RFC from other system.

Former Member
0 Kudos

Hi Everybody.

I have two systems.One is ECC and other is SAP R/3.

I have created one RFC in SAP R/3 system and I am calling this

RFC fom ECC system.On click of one button,I have to show some

fields from the RFC onto the screen of WDA .

How can I achieve it ? Is there any code for that or some link

available for that.

Thanks In Advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi vaibhav...

using rfc you will be calling a function module in r/3. so it will return some exporting parameters, bind it to the attributes that are created in the context or

create a destination in ecc6 to call the r/3 system .u se service call and mention that destination while creating it.

---regards,

alex b justin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Go to SM59 and create a new ABAP Connection to the system where's the RFC. You need to enter with the logon data in the tab Logon & Security.

Now in the action of your button call the RFC using the following sintax:


CALL FUNCTION func DESTINATION dest [EXPORTING  p1 = a1 p2 = a2 ...] 
    [IMPORTING  p1 = a1 p2 = a2 ...] 
    [CHANGING   p1 = a1 p2 = a2 ...] 
    [TABLES     t1 = itab1 t2 = itab2 ...] 
    [EXCEPTIONS [exc1 = n1 exc2 = n2 ...] 
                [system_failure = ns [MESSAGE smess]] 
                [communication_failure = nc [MESSAGE cmess]] 
                [OTHERS = n_others]]. 

Where dest is the ABAP connection that you created in SM59.

I suggest you to read this: [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3982] [original link is broken] [original link is broken] [original link is broken];. This blog teachs how to consume a RFC via webservice.

Regards.

Former Member
0 Kudos

Just like you would invoke any API to get data to your context nodes, you need to invoke a remote enabled function module to get the data. Then bind it to your context as usual. Create your context structure based on the structure in the remote system.

Regards,

Nithya