‎2011 Aug 30 3:00 PM
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.
‎2011 Aug 30 3:08 PM
Hi,
use internal table and then export the whole table to memory ID
export pass_tab1 to memory id 'ID'.
‎2011 Aug 30 3:10 PM
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
‎2011 Aug 30 3:47 PM
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
‎2011 Aug 30 5:08 PM
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.
‎2011 Aug 30 5:47 PM
HI Shah,
As Davel told please check.Post if still is there any issue.
Regards,
Madhu.