cancel
Showing results for 
Search instead for 
Did you mean: 

how to export/import table to memory?

Former Member
0 Kudos

Hi

i have a table called LT_STOCK in my WebDynpro.

How can i export/Import it to a memort id 'zzzzz' ?

cause i tried -  export LT_STOCK  to memory id 'zzzzz' , but without success.

thanks Ami

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Ami,

In general, we need to SUbmit the Export program name where you need to send the vallues of the internal table but I am not sure the same approach will work in Webdynpro.

Ex : -

* On Export end

DATA: ls_indx TYPE indx.
          ls_indx-aedat = sy-datum.
         ls_indx-usera = sy-uname.
           ls_indx-pgmid = 'ZNAME'.

EXPORT tab = lt_orders
TO DATABASE indx(v1)
FROM ls_indx ID 'PERCENT'.

----------------------------------------------------------------------

* On the IMPORT side

DATA: ls_indx TYPE indx.
ls_indx-aedat = sy-datum.
ls_indx-usera = sy-uname.
ls_indx-pgmid = 'ZNAME'.

IMPORT tab = lt_orders
FROM DATABASE indx(v1)
TO ls_indx ID 'PERCENT'.

 

Kindly check the documentation for the Keyword for more Information to IMPORT / EXPORT your Itable values.

Hope it will be heplful!

Best regards,

NKC

Former Member
0 Kudos

Hi,

for core ABAP:

It should work ideally as the syntax u used is correct.

Is the table u are exporting is with header line.

If yes just create a new table without header line . transfer the date to the new table and export it.

For WD ABAP:

Export to memory id willnot work in WD scenarioes.

U will have to use the EXport to data base statement where ever needed.

if the export to database also not works then you can create a new table and pass your value the new table.

and when impring needs to be done just select the data from table and afterward refresh the table data.

former_member184958
Active Participant
0 Kudos

Hi,

What is your requirement? . If you want to reuse the Value make that field as interface then reuse the component.

Regards,

John.

Regards,

John.

Former Member
0 Kudos

Hi,

Please refer to the below link

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

You must create temporary table globally for export and import.

Try and let me know.

Best Regards,

Abirami