Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

rfc

Former Member
0 Kudos
103

hi

plse help me how to give reference type to IMPORT parameter .in import i geven parameter name and type how to give the reference type for RFC or any other FM

with regards

serma

1 ACCEPTED SOLUTION

Former Member
0 Kudos
76

in SE37 -> import tab,

give your field name in PARAMETER NAME

give LIKE/TYPE in TYPE SPEC field

give your database field or any elementory datatype field in ASSOCIATED FIELD.

FOR EXAMPLE,

GUI_UPLOAD Function module,you can check the below values.

FILENAME TYPE STRING

FILETYPE TYPE CHAR10 'ASC'

like that you can give like,

PARAM1 TYPE T001-BUKRS

OR

param2 TYPE CHAR

etc..

regards

srikanth

Message was edited by: Srikanth Kidambi

4 REPLIES 4

Former Member
0 Kudos
77

in SE37 -> import tab,

give your field name in PARAMETER NAME

give LIKE/TYPE in TYPE SPEC field

give your database field or any elementory datatype field in ASSOCIATED FIELD.

FOR EXAMPLE,

GUI_UPLOAD Function module,you can check the below values.

FILENAME TYPE STRING

FILETYPE TYPE CHAR10 'ASC'

like that you can give like,

PARAM1 TYPE T001-BUKRS

OR

param2 TYPE CHAR

etc..

regards

srikanth

Message was edited by: Srikanth Kidambi

former_member223537
Active Contributor
0 Kudos
76

Hi,

If the Parameter is referring any database field e.g. MARA-MATNR, then specify the same.

Best regards,

Prashant

Former Member
0 Kudos
76

Hi,

There are 2 options for doing this,

1. the normal way goto Import tab, give a variable name type/like Data type.

A Type I

or.

2. Goto se80,give your function group name under function groups in the navigation menu, press enter it displays all the components in your function group, other than function modules you can also see Include files, double click on the top include file, declare the data there

for ex: DATA A TYPE I.

ACTIVATE the Include.

come back to your funtion module Import tab, just specify A there no need to give any data type there, make use of the variable in your source code and carry on.

Regards:-

<b>Santosh

P.S. Mark Usefull answers</b>

former_member188685
Active Contributor
0 Kudos
76

Hi serma,

what ever the parameters may be , which ever type it is , you have to check the check box <b>pass by value</b> that is must in case of RFC.

Regards

vijay