2011 May 09 12:19 PM
Hi All,
Need to Implement parallel processing as large amount of data is involved using RFC function modules. Not able to do so as RFC is not allowing generic data type needed for passing dynamic internal tables.
Data is in internal tables formed dynamically & this data is to be processed. How this can be done.
how to implement parallel processing using dynamic internal tables using RFC type of module.
Thanks
Prat
2011 May 09 1:04 PM
Hi,
If it's RFC or not it shouldn't be a problem for passing generic data types to FM. I've just wrote and tested this code and it works. I'm using here static type (lyv_msg) but you could as well use dynamic.
TYPES lyv_msg(12) TYPE c.
data lv_msg TYPE REF TO DATA.
FIELD-SYMBOLS <fs_msg> TYPE ANY.
CREATE DATA lv_msg TYPE lyv_msg.
ASSIGN lv_msg->* TO <fs_msg>.
<fs_msg> = 'Some info'.
CALL FUNCTION 'TH_POPUP' DESTINATION 'NONE'
EXPORTING
CLIENT = 100
USER = 'USER'
MESSAGE = <fs_msg>
EXCEPTIONS
USER_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
Best regards
Marcin Choelwczuk
2011 Jul 13 1:12 PM
HI Prat,
I'm also facing the same problem. Could you please tell me whether you got proper answer for this issue.
Regards,
Selva M