Application Development 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: 

Can you save a select-options ?

Former Member
0 Kudos

Hi,

In a the top of my module pool i am defining

DATA wa_users TYPE usr02.

and in a module of my PBO of my screen, I am using

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.

SELECT-OPTIONS : so_user FOR wa_users-bname.

SELECTION-SCREEN END OF SCREEN 500.

to select a set of users.

Is there a way to store the so_user after this code in global variable and if so, how would I define this variable. What TYPE or what LIKE would i need to use?

Many thanks,

Jo.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can save them as variant in selection screen.

thanks.

5 REPLIES 5

Former Member
0 Kudos

You can save them as variant in selection screen.

thanks.

0 Kudos

The user, who uses the application, can save it as a variant, true.

But how can you store so_user programmatically?

0 Kudos

hei....

I have not worked on this.....trying some ideas here....if they are blunt plz dont mind.....

varients are stored in tables VARI,TVARV.........How about using those tables to fetch those variants.......

uwe_schieferstein
Active Contributor
0 Kudos

Hello Jo

I have not yet used the function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> for module pools but I do not see why it should not work. This function modules reads the entire selection criteria and returns them in a table of type <b>RSPARAMS</b>.

Regards

Uwe

Former Member
0 Kudos

hi,

The only way to store it is by storing it as a variant....it works...just check it out...n let me know ...

with regards,

madhuri.