Application Development 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: 

save variable in memory like tables

Former Member
0 Kudos

hai,

i want to save only one field (the shift time-which keeps changing,and the user can change it as and when) in sysive as tem..

i know we can use tables for that..

but is their an alternative as this is only 1 field

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

EXPORT ... TO MEMORY ...

SET PARAMETER ID ... FIELD ...

5 REPLIES 5

Sandra_Rossi
Active Contributor

EXPORT ... TO MEMORY ...

SET PARAMETER ID ... FIELD ...

0 Kudos

will export to memory permanently store the field?

as safe/secure as the table?

0 Kudos

No, it will only be held in memory until your program has ended.

But what is your exact requirement? What you described is not all too clear; at least not to me.

0 Kudos

the comapny want to set a date as month closing for prev month..say someitmes its 15th sometimes 10th sometimes 5 th...

i need to take this as variable in my program..

i can build a table for that.and ask the people to maintain date..

but then any other short way?

like say EXPORT like but which stays permamently in memory??

0 Kudos

>

> the comapny want to set a date as month closing for prev month..say someitmes its 15th sometimes 10th sometimes 5 th...

How does this change ? Is there any specific reason for this ?

i need to take this as variable in my program.. i can build a table for that.and ask the people to maintain date..

If you want to store this variable in some DB table & use this subsequently in your program you can use the table TVARVC. This table can be maintained via STVARV trxn.

like say EXPORT like but which stays permamently in memory??

Neither EXPORT TO / IMPORT FROM MEMORY nor GPA/SPA can store the data permanently. You have to use the EXPORT TO / IMPORT FROM DATABASE stmt for this. Refer: [http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@]