Application Development 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: 

Dynamic/generic Table in RFC module

Former Member
0 Kudos
282

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

2 REPLIES 2

marcin_cholewczuk
Active Contributor
0 Kudos
67

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

Former Member
0 Kudos
67

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