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

Asynchronous RFC is not working

Former Member
0 Likes
664

Hi,

Im trying asynchronous RFC. Please find my code for getting material record based on matnr.

In debug mode im getting results in my internal table but once i execute the program no data is displaying. I've searched the blogs and threads but didnt get any helpful result..

paramaters : pmatnr like mara-matnr.

CALL FUNCTION 'ZRFC_GET_DATA'

Starting new task 'TASK1'

DESTINATION 'RFC1'

Performing get_data on end of task.

Exporting

p_matnr = pmatnr.

wait until '1' seconds.

loop at itab.

write 😕 itab-matnr, itab-meins,itab-matkl,itab-mbrsh.

endloop.

Form get_data using task1.

receive results from 'ZRFC_GET_DATA'

tables

it_mara = itab.

Endform.

Please help me out..

Thanks

Mallika

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

hey sorry guys...its working earlier i missed out WAIT UP TO '1' Seconds.

now the data is displaying.

thanks,

mallika

Hi,

Im trying asynchronous RFC. Please find my code for getting material record based on matnr.

In debug mode im getting results in my internal table but once i execute the program no data is displaying. I've searched the blogs and threads but didnt get any helpful result..

paramaters : pmatnr like mara-matnr.

CALL FUNCTION 'ZRFC_GET_DATA'

Starting new task 'TASK1'

DESTINATION 'RFC1'

Performing get_data on end of task.

Exporting

p_matnr = pmatnr.

wait until '1' seconds.

loop at itab.

write 😕 itab-matnr, itab-meins,itab-matkl,itab-mbrsh.

endloop.

Form get_data using task1.

receive results from 'ZRFC_GET_DATA'

tables

it_mara = itab.

Endform.

Please help me out..

Thanks

Mallika

2 REPLIES 2
Read only

Former Member
0 Likes
571

hey sorry guys...its working earlier i missed out WAIT UP TO '1' Seconds.

now the data is displaying.

thanks,

mallika

Read only

0 Likes
570

hi mallika,

Use wait up to '1' seconds for making ur calling system to wait till that time in order to get the response for that called system. So in order to see the result you use the until condition.

thanks

swapna