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

Internal Tables issue

Former Member
0 Likes
403

Guys,

This is more of a mixed question between ABAP and BI. I am trying ot create an internal table and then fill it with the incoming load. Can someone tell me how to do that including declarations?

Thanks,

RG

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
388

REPORT ZdataFromExcel

data: begin of itable occurs 0,

variable1 type char20,

variable2 type char20,

end of itab.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = 'C:/myfile.xls'

FILETYPE = 'ASC'

TABLES

DATA_TAB = itable

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

loop at itable.

write: /10 itable-var1, 30 itable-var2.

endloop.

2 REPLIES 2
Read only

Former Member
0 Likes
389

REPORT ZdataFromExcel

data: begin of itable occurs 0,

variable1 type char20,

variable2 type char20,

end of itab.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = 'C:/myfile.xls'

FILETYPE = 'ASC'

TABLES

DATA_TAB = itable

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

loop at itable.

write: /10 itable-var1, 30 itable-var2.

endloop.

Read only

Former Member
0 Likes
388

Thanks but I fail to understand in this code, where you are putting data into internal table from datapack?

Thanks,

RG