2006 Aug 09 8:49 AM
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
2006 Aug 09 8:56 AM
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
2006 Aug 09 8:56 AM
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
2006 Aug 09 8:58 AM
Hi,
If the Parameter is referring any database field e.g. MARA-MATNR, then specify the same.
Best regards,
Prashant
2006 Aug 09 9:26 AM
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>
2006 Aug 09 9:38 AM
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