2007 Nov 19 9:28 PM
Hi,
I am using OO object model for getting the data dynamically.
I am using the following code for that
l_struct = v_table. " YEQUIPARTS structure
l_filename = p_d_file.
" For example i am passing'YEQUIPARTS.xml' as file
call method cl_salv_test_data=>select_data
exporting
structname = l_struct
source = 2
filename = l_filename
changing
data = gt_outtab[].
Any Info?
a®
2007 Nov 19 9:36 PM
Hi,
Please try this.
l_struct = v_table.
l_filename = p_d_file.
call method cl_salv_test_data=>select_data
exporting
structname = l_struct
source = 2
filename = l_filename
amout = 30 "Add here - 30 is default value
changing
data = gt_outtab[].
Regards,
Ferry Lianto
2007 Nov 19 9:40 PM
Ferry,
The AMOUNT indicator is optional and it has not been used anywhere in the select_data method.
a®
2007 Nov 19 9:45 PM
2007 Nov 19 9:47 PM
Rich,
I have checked my p_d_file path . I am passing c:yequiparts.xml
Any other hints ?
a®
2007 Nov 19 9:49 PM
Rich
If i am not passing P_D_FILE , then atleast i need to get a file dialog? is that correct? that also i am not getting.
a®
2007 Nov 19 9:55 PM
Rich/Ferry,
Its SAPGui Patch problem. My system has only 7.01 patch level. I have run it in system where patch level 7.03 it is working fine.
Thanks
a®