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 / import problem

Former Member
0 Likes
544

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
Read only

naimesh_patel
Active Contributor
0 Likes
481

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
Read only

Former Member
0 Likes
481

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

Read only

naimesh_patel
Active Contributor
0 Likes
482

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

Read only

0 Likes
481

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