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: 

export / import problem

Former Member
0 Kudos

Hi,

If I export a value to a memory ID in a program,

later that program opens a new session where another program is executed.

(this is done using

CALL FUNCTION 'TH_CREATE_MODE'

EXPORTING

TRANSAKTION = 'YGPT2')

Can I import the values in this program in the new session?

The thing is that it is not working, but I am starting to doubt if this will ever work.

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

You need to Export the memory using the DATABASE. Since it is calling a new transaction, it will clear all internal ABAP memory.

Like:


EXPORT tab = itab 
  TO DATABASE indx(XY) 
  FROM wa_indx 
  CLIENT cl 
  ID 'TABLE'. 

Regards,

Naimesh Patel

3 REPLIES 3

Former Member
0 Kudos

Hi,

Import and Export are for the same sessions only. So if you're creating a new session those variables won't be available.

For several session you need to use SAP Memory.

SET PARAMETER ID

GET PARAMETER ID

Otherwise you will need to define import parameters of the function/program you're calling.

Regards,

Gilberto Li

naimesh_patel
Active Contributor
0 Kudos

You need to Export the memory using the DATABASE. Since it is calling a new transaction, it will clear all internal ABAP memory.

Like:


EXPORT tab = itab 
  TO DATABASE indx(XY) 
  FROM wa_indx 
  CLIENT cl 
  ID 'TABLE'. 

Regards,

Naimesh Patel

0 Kudos

Hi,

I am using

export tab = w_inb_dates

to database indx(34)

from w_index_dates

id 'IBDDATES'.

in BAPI,

I am importing this value in

import tab = w_inb_dates

from database indx(34)

to w_index_dates

id 'IBDDATES'.

in BAID.

here the code is working fine, but the memory is not getting freed.

Can you please how can we refresh memory in above case ASAP.

Cheers!!

Venu