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

need help about memory

Aiolos
Active Participant
0 Likes
532

dear all,

i have some confusion in using memory.

i have write a report, and there is a parameter in the screen,and the first time i run the report it is 1.

when i run it for the second time ,i want it to be 2.i know i should save 1+1 to the memory,but i don't clear how can i do,can any body help me?

best regards.

thank you !

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Hi

If you want to add +1 everytime you run the report then create a ztable with a counter field and

Add+1 in that counter everytime you runt the report so evenif you are running the report after 10 days you can add 1 in the counter when you are executing it.

If you u want to do it while you are executing the report again and again in one session them use ABAP \

memory.

http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bc4358411d1829f0000e829fbfe/content.htm

Regards

Neha

4 REPLIES 4
Read only

Former Member
0 Likes
507

Hi,

You need to use Statement EXPORT to set the ABAP Memory declared for your Selection Screen Variable in the PARAMETERS Statement.

Not sure whether you are talking about the consecutive Execution or a requirement for forever....

How r u planning to get the track of the No of Program execution ?

Read only

Former Member
0 Likes
508

Hi

If you want to add +1 everytime you run the report then create a ztable with a counter field and

Add+1 in that counter everytime you runt the report so evenif you are running the report after 10 days you can add 1 in the counter when you are executing it.

If you u want to do it while you are executing the report again and again in one session them use ABAP \

memory.

http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bc4358411d1829f0000e829fbfe/content.htm

Regards

Neha

Read only

Former Member
0 Likes
507

You TVARVC to define a variable. Then in Initialization read the value of that variable and pass it to your parameter, at the same time increase it by 1, and update it back to TVARVC

Read only

Former Member
0 Likes
507

Hi Yang,

You need to Use the Memory ID . You can use Import Export Statement. Just assign value to 1 by statement Import. and while retrieving the value back you need to use the Export Statement.

Thanks,

Chidanand