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

attribute value after leave list-processing

Former Member
0 Likes
1,397

Hi experts,

In a report I have a method get_pop(). this method check the values on selection screen when a field is empty then it shows a pop up fill the flelds and then I have the leave list processing. then skip the program in initialization and all the globel data is deleted. Can I declare a variable in which i note the value of a attribute and it is not deleted after leave list processing or is there any command that take exectly to the screen 1000(selection screen) without a los of data.

I have tried

MESSAGE text-021 TYPE 'E'.

  • set SCREEN 1000.

  • LEAVE TO SCREEN 1000.

  • CALL SELECTION-SCREEN 1000.

leave list-processing and return to screen 0.

leave list-processing and return to screen 1000.

leave screen.

Also make my attribute static but it always deleted after leave list processing.

thanks

best regards

rana

9 REPLIES 9
Read only

Former Member
0 Likes
1,279

Hi

Sincerly I can't understand: if you go to inizialization again, it mean you're running the program again

Can you give us more information?

Max

Read only

0 Likes
1,279

hi,

Thank for the reply. I have a list box at selection screen. it gives guids. so when I come back to initialization after leave list processing I need the last guid selected in selection field. For this i need a globel attribute. I have also declared a attribute in top but it is always empty after leave list-processing. I hope you understand my point of view.

thanks

best regards

rana

Read only

0 Likes
1,279

If you turn on history, the guid may not be filled, but it will be easily available by pressing the space bar.

Rob

Read only

0 Likes
1,279

hi,

thanks for reply can you please explain space bar is there any FM for it or what do you mean.

thanks

best regards

rana

Read only

0 Likes
1,279

Press the "Customize local layout" button at the top right of the screen.

Select "Options"

Expand "Local Data"

Select "History"

Select the "On" Radio button

Rob

Read only

0 Likes
1,279

hi,

thanks for reply.

This radio button is on but still the same result.

best regards

rana

Read only

0 Likes
1,279

Even after you press the space bar?

Rob

Read only

0 Likes
1,279

hi,

thanks for reply

how can I set the functioncode for a sapce bar within my code at event initialization

best regards

rana.

Read only

Former Member
0 Likes
1,279

Thanks for all Replies I got the solution.

I use the abap memory.

at selection-screen output.

export p_prod = p_prod to memory id gc_my_prod.

gc_my_prod can be any name.

best regards

rana