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

get variable after pushing back button

Former Member
0 Likes
860

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

You could import the value when sy-ucomm = BACK

5 REPLIES 5
Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
739

You could import the value when sy-ucomm = BACK

Read only

Former Member
0 Likes
738

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

Read only

0 Likes
738

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

Read only

Former Member
0 Likes
738

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