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: 

Memory ID

former_member200338
Active Contributor
0 Kudos
156

Hi,

i need to export a work area into memory and again reuse it in a BADI.

i hav declared like this.

data ls_vbak type vbak.

.........

export ls_vbak to memory id 'ZTEST'.

In badi, if i declare it as

IMPORT ls_vbak FROM MEMORY ID 'ZTEST'.

its throwing an error..

can any one tel me how to use the import in BADI? (oops concept)

Thanks,

Niyaz

2 REPLIES 2

former_member223537
Active Contributor
0 Kudos
131

In badi, declare it as

<b>data : ls_vbak type vbak.</b>

IMPORT ls_vbak FROM MEMORY ID 'ZTEST'.

or try as follows:

IMPORT (ls_vbak) FROM MEMORY ID 'ZTEST'.

former_member200338
Active Contributor
0 Kudos
131

Hi,

i found the answer. it was

IMPORT ls_vbak TO ls_vbak FROM MEMORY ID 'ZTEST'.