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

export to internal table

Former Member
0 Likes
339

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.

1 REPLY 1
Read only

Former Member
0 Likes
300

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