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 to memory id Problem?

Former Member
0 Likes
10,729

Hi,

         EXPORT & IMPORT working in 4.7 but when it comes same report not working in 6.0

Thanks

Shree

21 REPLIES 21
Read only

Former Member
0 Likes
4,871

Hi Shree,

Some statement does not work in ECC  6.0 coz they are obsolete.

Check the below thread link .

http://scn.sap.com/thread/335221

Hope this will help....

Regards,

AKS

Read only

vigneshyeram
Active Participant
0 Likes
4,871

Dear Shree,

Few statements are obsolete in OO context, in that case u will have to write in FORM.

example:-

export itab  from itab  to database indx(ar) id text-b02. this is used by me and it works.


Could you please paste both your Import and Export statements.

Thanks & Regards,

Vignesh Yeram

Read only

0 Likes
4,871

Hi Vignesh,

     Could you tell me clearly...what means indx(ar)?

thanks

Shree

Read only

0 Likes
4,871

Hi Vignesh,

         Why do we need to use the index or from database...I need to get all data from another report''s final internal table.

thanks

shree

Read only

0 Likes
4,871

Dear Shree,

EXPORT itab FROM itab TO DATABASE indx(ar) ID text-b02.

If DATABASE is given data cluster with id text-b02 is stored in database INDX and

area ar, which must be specified directly, splits up the rows of the database table into several areas, so that data clusters with the same ID text-b02 can exist multiple times in the database table.

then you can import this data in other report where you want.

IMPORT itab TO gt_selected_vdarl FROM  DATABASE indx(ar) ID text-b01.

DELETE FROM DATABASE indx(ar) ID text-b01.

you can also try with the code pasted by Vinoth.
for better understanding could you please paste your code.

Thanks & Regards,

Vignesh Yeram

Read only

0 Likes
4,871

Hi Shree

Please try this and it should work.

DATA : itab TYPE STANDARD TABLE of ty_type.

CONSTANT : mem(3) TYPE c VALUE 'MEM'

IMPORT itab from MEMORY ID mem to itab

EXPORT itab to MEMORY ID mem from itab

ECC 6.0 supports the above syntax. Hope this helps!

Read only

vinoth_aruldass
Contributor
0 Likes
4,871

hi sree,

use the proper statement ,

IMPORT ITAB FROM MEMORY ID 'TD'

EXPORT ITAB TO MEMORY ID 'TD'

it will work properly,,

hope it helps,

'Vinoth

Read only

0 Likes
4,871

Hi Vinoth,

                I used the same nothing different but not working in ECC 6.0

Thanks

Shree

Read only

BH2408
Active Contributor
0 Likes
4,871

Hi ,

For IMPORT

Example:  IMPORT  var1  TO var1 FROM MEMORY ID ABC. Better use the TO

EXPORT:

EXPORT var1 FROM var1 TO MEMORY ID ABC.

BR,

Bharani

Read only

Former Member
0 Likes
4,871

Hi expert,

       One more thing, my report already working for particular variants. it's not working for few of the input values..

thanks

Shree.

Read only

0 Likes
4,871

Dear Shree,

Are you facing this issue in production or dev, quality?

Regards,
Vignesh Yeram

Read only

0 Likes
4,871

This message was moderated.

Read only

0 Likes
4,871

This message was moderated.

Read only

Former Member
0 Likes
4,871

Hi,

If use the export and import statements as below

EXPORT itcpo TO MEMORY ID 'RFFORI01_ITCPO'.

IMPORT itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.

it works fine 4.7 version but in Ecc6.0 it doesnot work.

Change the above code with following code then it works fine and the below code is not obsolete.

  EXPORT gs_itcpo FROM itcpo TO MEMORY ID 'RFFORI01_ITCPO'. 

   CLEAR: itcpo,      

        gs_itcpo.

   IMPORT gs_itcpo TO itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.

Read only

0 Likes
4,871

Hi Vineesh,

        I used as you said but it's not working...you want to add work area? is it?

Thanks

shree

Read only

0 Likes
4,871

Hi shree,

yes work area only

Read only

0 Likes
4,871

Hello,

use: export f1 from g1 to memory id 'XYZ'.

import f1 to g2 from memory id 'XYZ'.

free memory id 'XYZ'.

Thanks

Sabyasachi

Read only

0 Likes
4,871

Hi vineesh,

           I used your method too..It's not getting data..

Read only

0 Likes
4,871

Hi Expert,

          Getting following error...

        

Read only

0 Likes
4,871

Hi Shree,

Please paste your actual code here to analyze better.

Read only

Former Member
0 Likes
4,871

This message was moderated.