Application Development and Automation 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: 
Read only

rfc

Former Member
0 Likes
445

Dear experts,

Can we use the Importing parameter in Asynchronoud rfc?

pls give idea

thanks

karthik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
426

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

3 REPLIES 3
Read only

Former Member
0 Likes
427

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

Read only

0 Likes
426

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

Read only

Former Member