Skip to Content

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

Data not uploading in internal table

Hi all..

I am trying to create a bdc for vk12.

for that i am uploading data into internal table via code

DATA : BEGIN OF T_ITAB OCCURS 0,

ZKSCHL TYPE KSCHL,

ZVKORG TYPE VKORG,

ZVTWEG TYPE VTWEG,

ZKUNNR TYPE KUNNR,

ZMATNR TYPE MATNR,

ZKBETR TYPE KBETR,

ZDATAB TYPE DATAB,

ZDATBI TYPE DATBI,

END OF T_ITAB.

*DATA : SDATE TYPE SY-DATUM.

  • DATA: T_ITAB TYPE T_ITAB,

  • T_ITAB INITIAL SIZE 1.

DATA : BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.

REFRESH T_ITAB.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = 'C:\VK12_NEW.TXT'

FILETYPE = 'DAT'

HAS_FIELD_SEPARATOR = 'X"

TABLES

DATA_TAB = T_ITAB

IF SY-SUBRC <> 0.

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

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

ENDIF.

My flat file is

PR00 'SKHM' 'SC' 100000 BY2000101 9.01 08072009 31122020

But only PR00 is comung in T_ITAB. why rest of the field are not coming??

Former Member

Helpful Answer

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