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

cl_salv_test_data - not getting data?

former_member194669
Active Contributor
0 Likes
736

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?

6 REPLIES 6
Read only

ferry_lianto
Active Contributor
0 Likes
702

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

Read only

0 Likes
702

Ferry,

The AMOUNT indicator is optional and it has not been used anywhere in the select_data method.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
702

Make sure that the value in p_d_file is a fully qualified path from the frontend, .like.... c;\yequiparts.xml

Regards,

Rich Heilman

Read only

0 Likes
702

Rich,

I have checked my p_d_file path . I am passing c:yequiparts.xml

Any other hints ?

Read only

0 Likes
702

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.

Read only

0 Likes
702

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