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

ABAP Memory

Former Member
0 Likes
884

I am trying to store an internal table in memory using EXPORT (lt_vbrk) TO MEMORY ID 'ZEML2'.

However I get the error "Object "ZNB" specified twice in EXPORT/IMPORT" where 'ZNB' is a billing type.

The internal table consists of fkart fkdat and kunag FROM vbrk and contains no duplicates.

Can anyone advise on how I can store this internal table in memory?

Many Thanks In Advance

David

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

why do you put 'lt_vbrk' in brackets ?? try without brackets ...

4 REPLIES 4
Read only

Former Member
0 Likes
850

why do you put 'lt_vbrk' in brackets ?? try without brackets ...

Read only

0 Likes
849

Mike

Thanks for this it solved my problem.

SAP online help showed an example in brackets.

Regards

David

Read only

naimesh_patel
Active Contributor
0 Likes
849

Hello,

Try this way...

data: INDXKEY LIKE INDX-SRTFD.

INDXKEY = 'ZEML2'.

IMPORT ITAB1 = ITAB1 FROM DATABASE INDX(ST) ID INDXKEY.

EXPORT ITAB1 = ITAB1 TO DATABASE INDX(ST) ID INDXKEY.

Regards,

Naimesh

PS: Reward points, if you find this useful...!

Read only

0 Likes
849

Don't use the parenthsis, and make sure that the name of the internal table is the same in both the exporting and importing programs.


EXPORT lt_vbrk = lt_vbrk TO MEMORY ID 'ZEML2'.



Import lt_vbrk = lt_vbrk from MEMORY ID 'ZEML2'.

Regards,

Rich Heilman