on 07-27-2005 10:56 AM
hi all,
i want to know how to create remote function modules. how to give the import and export parameters. i want the link of how to create the function modules.
bye
suresh
Hi Suresh,
Goto transaction
SM37 -> Create your function module as Z_FUNCTION.
Assign a function group ( if function group is not there then create a function group as SE37 -> GOTO -> Function Group -> Create Function Group)
On attribute tab, you will see three radio buttons.
Select 'Remote enabled module'
Select :Import tab.
Enter i_MATNR
Type MATNR
Select : Export tab
Enter : e_mara
TYPE MARA
Select : Source Code
Enter :
SELECT SINGLE * FROM MARA INTO e_mara FOR MATNR = i_MATNR.
Save your module.
Activate it.
Test using F8.
You can call this function in your program as
CALL FUNCTION 'Z_FUNCTION' DESTINATION destination_name.
Hope this will help.
Please award few points if it resolves your issue.
Thanks and Warm Regards.
Pras Durafe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
just keep the following things in mind when u run a FM in RFC mode:
1) if u r using asynchronous RFC, u cannot have an export parameter in the FM
2) no reference parameters can be used in RFC calls
3) when u pass tables, note that only the table body can be passed, not the header line
and to add to what Pras Durafe has said....u can create RFC destinations in transaction SM59
regards,
PJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
while creating the fm, in the attibutes screen check the radio button 'remote ...' and for the parameters check the flag 'value ..'
This is all you need to take care about. The rest is creating fm as usual.
regards
Siggi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.