Skip to Content
0
Jan 09, 2017 at 12:36 PM

include multiple infotypes into structure

66 Views

TYPES : BEGIN OF ty_ldb_data,
perno TYPE persno,
start_date TYPE begda,
end_date TYPE endda.
INCLUDE STRUCTURE p0000.
INCLUDE STRUCTURE p0001.
INCLUDE STRUCTURE p0002.
INCLUDE STRUCTURE p0007.
INCLUDE STRUCTURE p2001.
INCLUDE STRUCTURE p2002.
INCLUDE STRUCTURE p2003.
TYPES: END OF ty_ldb_data.
DATA : lt_ldb_data TYPE STANDARD TABLE OF ty_ldb_data,
ls_ldb_data TYPE ty_ldb_data.

I am receiving an compilation error that PERNR already exists.

Is their a way to have a single internal table with all the infotypes in it.

if yes then how should i store Multiple lines into those Tables.

ls_ldb_data-P0000 = P000[]. <= would this statement work.

append ls_ldb_data to lt_ldb_data.

thanks