Application Development 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: 

ABAP Memory

Former Member
0 Kudos

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

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

Mike

Thanks for this it solved my problem.

SAP online help showed an example in brackets.

Regards

David

naimesh_patel
Active Contributor
0 Kudos

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...!

0 Kudos

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