‎2008 Nov 22 4:39 PM
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 !
‎2008 Nov 22 5:01 PM
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
‎2008 Nov 22 4:56 PM
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 ?
‎2008 Nov 22 5:01 PM
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
‎2008 Nov 22 5:06 PM
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
‎2008 Nov 22 7:19 PM
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