‎2009 Jul 15 9:11 AM
hi,
i got the following problem:
i need to get data of a variable in my report after pushing the back button.
in detail: i fill a variable after start of selection and want to get the data on selection-screen after pushing the back button. Is this possible?
Can anyone help me with that problem?
regards jacko
‎2009 Jul 15 9:24 AM
‎2009 Jul 15 9:23 AM
Hi,
If you want to get variable value from one report to other, then use stmt GET/ SET PARAMETER or EXPORT/IMPORT.
SET PARAMETER ID pid FIELD dobj.
The above statement sets the content of the SPA/GPA parameter specified in pid to the content of the data object dobj
GET PARAMETER ID pid FIELD dobj.
This statement sets the content of the data object dobj to the content of the SPA/GPA parameter specified in pid.
Thanks and Regrds
‎2009 Jul 15 9:24 AM
‎2009 Jul 15 9:31 AM
Hi,
I have gone through your question once again.
It is not possiable becz program control does not goes to start-of-selection.
Thanks and Regrds.
ShreeMohan
‎2009 Jul 15 9:54 AM
Sorry it still works for me!
I only had to rename the variable in parameter_list of import to the same of export!
it works!
thanks a lot!
regards,
jacko
Edited by: Jacko1986 on Jul 15, 2009 11:03 AM
‎2009 Jul 15 9:50 AM
thanks for your help i tried both but couldn't get them to run!
first try:
....
DATA: my_text TYPE tline OCCURS 0.
DATA: my_text_back TYPE tline OCCURS 0.
...
INITIALIZATION.
IMPORT my_text_back FROM MEMORY ID 'TS'.
....
*my var is filled in a form:
....
EXPORT my_text TO MEMORY ID 'TS'.
....
that doesn't work (made a breakpoint after the import in initialization (watching it after pushing the back button) my_text_back is still empty.
second try:
....
DATA: my_text_back TYPE c.
...
INITIALIZATION.
GET PARAMETER ID 'TST' FIELD my_text_back.
....
*my var is filled in a form:
....
SET PARAMETER ID 'TST' FIELD 'testtext'.
....
it also doesn't work an the probleme is that i'd like to store a table of type tline
can you tell me what i do wrong?
regards jacko