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

Error in RH_START_EXCEL_WITH_DATA

Former Member
0 Likes
358

Hi all

I am using FM

RH_START_EXCEL_WITH_DATA

.

I am able to get data properly into excel except for one set of data in selection screen.

My selection involves fiscal year and when i choose year 2000, excel launches but displays error "Cannot open Protected File"

There is data in internal table i_scrpt. The FM works fine for all other years as input.

 CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'              
      EXPORTING                                        
           data_name           = 'SCRAP_RSN.XLS'       
           data_type           = 'DAT'                 
           force_start         = c_x                   
           wait                = c_x                   
      TABLES                                           
           data_tab            = i_scrpt               
      EXCEPTIONS                                       
           no_batch            = 1                     
           excel_not_installed = 2                     
           wrong_version       = 3                     
           internal_error      = 4                     
           invalid_type        = 5                     
           cancelled           = 6                     
           download_error      = 7                     
           OTHERS              = 8.      

sy-subrc also is 0 after this FM call.

1 REPLY 1
Read only

Former Member
0 Likes
309

Solved