Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to populate the Internal table

I am getting error as

"I_ITAB" is a table without a header line and therefore has no

component called ebeln

Code is .... plz help

DATA:i_struct TYPE zgmm_mat_fields,

i_itab TYPE STANDARD TABLE OF zgmm_mat_fields.

DATA:dsn(20) TYPE c VALUE '/usr/test.xls'.

SELECTION-SCREEN BEGIN OF BLOCK blockdata WITH FRAME TITLE text-001.

PARAMETERS : p_pathin LIKE rlgrap-filename.

SELECTION-SCREEN END OF BLOCK blockdata.

*F4 HELP FOR FILE INPUT

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pathin.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = syst-dynnr

field_name = 'p_pathin'

IMPORTING

file_name = p_pathin.

.

START-OF-SELECTION.

OPEN DATASET dsn FOR INPUT IN BINARY MODE.

DO.

READ DATASET dsn INTO I_ITAB-EBELN.

IF sy-subrc = 0.

  • IF FILE OPENS SUCCESSFULY

APPEND i_itab.

ELSE.

EXIT.

ENDIF.

CLOSE DATASET.

ENDDO.

Tags:
Not what you were looking for? View more on this topic or Ask a question