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

Excel Reading

Former Member
0 Likes
619

Hi ,

I had read excel using CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP' .But we got to read from second record as first is header display.

Some parametes we can set .

Ivneet

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

Hi,

Pass I_LINE_HEADER = 'X' to the function module..

Thanks

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
540

Hi Ivneet,

Once you fetch the data from the excel sheet by using CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP' .

After that you can delete the first record from the internal table.

This way it will work.

Thanks,

Chidanand

Read only

Former Member
0 Likes
541

Hi,

Pass I_LINE_HEADER = 'X' to the function module..

Thanks

Naren

Read only

Former Member
0 Likes
540

Hi ivneet,

We use:


  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
            FILENAME    = D_FILE1
            I_BEGIN_COL = 1          " first column
            I_BEGIN_ROW = F_ROW          " first row
            I_END_COL   = 1          " last column
            I_END_ROW   = L_ROW          " last row
       TABLES
            INTERN      = ITAB.

And I just have the user enter the first/last row on the selection screen, or hard code it.

Good luck.

SL