‎2007 Jun 20 2:58 PM
Dear experts,
Can we use the Importing parameter in Asynchronoud rfc?
pls give idea
thanks
karthik
‎2007 Jun 20 3:15 PM
Hi,
Yes in case of Asynchronous call we can, but for this we need to code it in a different fashion .
While calling the FM we cannot have the Importing parameter interface, but we can use the FORM addition for it, for which we can write a sub-routine and receive results.
Example Code:
CALL FUNCTION RemoteFunction
STARTING NEW TASK Task
PERFORMING RETURN_FORM ON END OF TASK
EXPORTING
....
EXCEPTIONS
....
.
FORM RETURN_FORM USING TASKNAME.
RECEIVE RESULTS FROM FUNCTION RemoteFunction
IMPORTING
EXCEPTIONS
ENDFORM.
Please let me know if further details are required.
Regards,
Goutham
‎2007 Jun 20 3:15 PM
Hi,
Yes in case of Asynchronous call we can, but for this we need to code it in a different fashion .
While calling the FM we cannot have the Importing parameter interface, but we can use the FORM addition for it, for which we can write a sub-routine and receive results.
Example Code:
CALL FUNCTION RemoteFunction
STARTING NEW TASK Task
PERFORMING RETURN_FORM ON END OF TASK
EXPORTING
....
EXCEPTIONS
....
.
FORM RETURN_FORM USING TASKNAME.
RECEIVE RESULTS FROM FUNCTION RemoteFunction
IMPORTING
EXCEPTIONS
ENDFORM.
Please let me know if further details are required.
Regards,
Goutham
‎2007 Jun 20 4:15 PM
HI goutham,
Thanks for the reply, but I didn't understand perfectly,
can you pls send some elabrotated documnet to my mail id
karthikeyank@k.st
thanks
karthik
‎2007 Jun 20 4:37 PM
Hi Karthik,
In general i use this links:
http://help.sap.com/saphelp_47x200/helpdata/en/22/0425ac488911d189490000e829fbbd/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/26/64f638fa8911d386e70000e82011b8/frameset.htm
Just now i have seen one more link:
http://help.sap.com/saphelp_47x200/helpdata/en/22/042a3e488911d189490000e829fbbd/frameset.htm
Hope these might be of some help. But the first link is really good.
Regards,
Goutham