‎2007 Nov 05 9:06 AM
Hi experts:
I got problems when I'm using 'export/import to internal table'.When 'import to internal table' exected, an ABAP occured, text 'Format error with IMPORT: No further container found.'
Part of my codes is below:
Export:
data: gi_info type standard table of ZBPS_PASSINFO,
itab type standard table of ZBPS_PASSINFO,
gs_info type ZBPS_PASSINFO.
loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZNU'.
gs_info-num = <ld_cell>-value.
endloop.
loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZNAM'.
v_xmmc = <ld_cell>-value.
endloop.
loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZTZ'. "
v_ZTZ = <ld_cell>-value.
endloop.
loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_DEP'. "
v_DEP = <ld_cell>-value.
endloop.
loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_SHRY'. "
v_SHRY = <ld_cell>-value.
endloop.
gs_info-xmmc = v_xmmc.
gs_info-ZTZ = v_ZTZ.
gs_info-DEP = v_DEP.
gs_info-SHRY = v_SHRY.
append gs_info to gi_info.
EXPORT ZPASSINFO FROM gi_info TO INTERNAL TABLE itab.
Import:
data: GI_PASSINFO type standard table of ZBPS_PASSINFO,
itab type standard table of ZBPS_PASSINFO,
GS_PASSINFO type ZBPS_PASSINFO.
import ZPASSINFO to GI_PASSINFO from INTERNAL TABLE itab.
‎2007 Nov 05 7:40 PM
Try with the below.
Export itab to memory id 'ZITAB_MEM'.
import itab from memory id 'ZITAB_MEM'.
Reward if it is useful.
Thanks,
Srinivas