Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Hi Sam, It's not very clear what you are trying to do or what you want to do but maybe that portion of code can help you. Let's say that your function has an import parameter of type any or standard table In this example, how to process any transparent table. * Create table line create data lr_data_line type (table_name). assign lr_data_line->* to <lf_data_line>. lr_local_file->load_data( im_file_type = <lf_data_line> ). Here table_name is the name of a transparent table. Dynamic process of a table Method load-data. data: lr_data_line type ref to data, lr_type_descr type ref to cl_abap_typedescr. field-symbols: <lf_data_line> type any, <lf_data_field> type any, <lf_data_table> type standard table. clear data. lr_type_descr = cl_abap_typedescr=>describe_by_data( im_file_type ). lv_file_type = lr_type_descr->get_relative_name( ). * Create table line create data lr_data_line type (lv_file_type). assign lr_data_line->* to <lf_data_line>. * Create table content create data data type standard table of (lv_file_type). assign data->* to <lf_data_table>. Here, im_file_type is type any so it can be any structure or transparent table. No nested structure allowed here. This class (cl_abap_typedescr)can help you, i am almost sure. Pierre,
| | | ---------------Original Message--------------- From: SAM_SAMUEL Sent: Thursday, August 04, 2011 10:01 AM Subject: How to pass an internal table to a dynamic function module Hi experts, I have a requirement ,where i need call a function module dynamically,but my standard function module is having import parameters associated with table types TABLETYPE Any help will be appreciated . Regards SAM | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | _.____.__ |