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

Exporting screen data to memory id in dialog program...

Former Member
0 Likes
1,146

Hi,

I am working on dialog program. I have a screen where I have 3 fields for entering data by user. Now once user clicks on ok, I want the data of 3 fields to be exported to memory ID.

In the global top include I have 3 screen fields defined :

DATA: v_cdat type datum,

v_creator type ernam,

v_sdat type datum.

I don't want to export data to 3 memory ids but bundle the data in those 3 fields in one internal table and then pass that internal table to one memory ID. This way I can save expoerting and importing data 3 times for 3 different fields.

How can I do that ?

Regards,

TGSHAH.

5 REPLIES 5
Read only

Former Member
0 Likes
1,037

Hi,

use internal table and then export the whole table to memory ID


export pass_tab1 to memory id 'ID'.

Read only

Former Member
0 Likes
1,037

Hi

You need to use IMPORT/EXPORT ...... FROM/ID MEMORY ID.......

Where to use that statament depends on your program, but you should place it in your user command

Max

Read only

Former Member
0 Likes
1,037

Hi,

types: begin of ty_temp,

v_cdat type datum,

v_creator type ernam,

v_sdat type datum.,

end of ty_temp.

data: it_temp type table of ty_temp.

EXPORT it_temp from it_temp TO MEMORY ID 'TE'.

Declare the same type of internal table during import

IMPORT it_temp to it_temp FROM MEMORY ID 'TE'.

Thanks,

Anitha A

Read only

Former Member
0 Likes
1,037

You could check ABAP Help for EXPORT, or consider:

export v_cdat v_creator v_sdat to memory id 'WHATZIZ'.

likewise:

IMPORT v_cdat v_creator v_sdat from memory id 'WHATZIZ'

into fields declared with the same names and types as where you created your export.

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,037

HI Shah,

As Davel told please check.Post if still is there any issue.

Regards,

Madhu.