cancel
Showing results for 
Search instead for 
Did you mean: 

RFC: 1 import parameter, 4 export parameters

Former Member
0 Kudos

Hi,

I need a few details regarding creation and usage of RFC. I've scenario which uses RFC with 1 import parameter and 4 export parameters. Please explain how to acheive this.. I've absolutely no idea regarding RFC's.

Thanks,

Vishal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

refer this thread

follow the above thread to create RFC with one import parameter and four export

RFC look like as follows


*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(EMPID) TYPE  CHAR20
*"  EXPORTING
*"     VALUE(EMPNAME) TYPE  CHAR20
*"     VALUE(EMPLOC) TYPE  CHAR20
*"     VALUE(EMPSTATE) TYPE  CHAR20
*"     VALUE(EMPCITY) TYPE  CHAR20
*"----------------------------------------------------------------------

then write the business logic using the above parameters.

Edited by: Kubra fatima on Sep 17, 2009 8:45 AM

Former Member
0 Kudos

The RFC is already there.. I just need to invoke it.. How it can be done? It has 1 import parameter and 4 export parameters..

Former Member
0 Kudos

Hi Vishal,

Load the metadata of the rfc into PI and then do the mapping for one field in request mapping and then for the response mapping you map the four fields. Its should be very straight forward. Then once you are done make the interface as synchronous and test it.

If this doesnot work with pi go to se37 in sap and open the rfc and execute it. Then you give your one input value and then you should have the output four values. If it doesnot give then rfc might be expecting something more as an input.

Regards,

---Satish

Former Member
0 Kudos

Satish,

Is it mandatory to import the RFC into IR for performing a RFC Lookup Mapping.

--

former_member750652
Contributor
0 Kudos

Hi Vishal,

You have to know writing functional modules first in ABAP and making them enabled remotely (just a single option to be enabled in Function module ) .There is no other way than learning ABAP and write in your own refering to ABAP documenation .

Thanks,

Ram.