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: 

How to capture selection-screen values

Former Member
0 Kudos

Hi,

How to capture selection-screen values when user pressing F3 or Back button after the display of report.

Regards,

Bujji.

8 REPLIES 8

Murali_Shanmu
Active Contributor
0 Kudos

Hi

The selection screen values will very well still be available in the select option variables.

I am still not clear with ur Question

Former Member
0 Kudos

Probably , you are asking if we can reuse the values of selectio screen??

if this is your question, yes we can.just create a variant after giving input to selection screen, by clicking the save button on toolbar.you can use this values again & again.

and if r asking that you want to see the vales of selectin screen on F3, its not possible, unless som values are decalered as default in the report.

rewards point if it answer your query.

Former Member
0 Kudos

suppose if ur using select-options values will be accessed like

value1 = sel_opt_var1-low

value2 = sel_opt_var1-high.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you want to use it to other program,you can code for the same using EXPORT.

Export (s_option) to memory id 'ABC'.

Otherwise,if you use Memory id in addition to select option

select-option s_option for mara-matnr memory id ABC.

I hope,it will still be available.

Kindly reward points by clicking the star on the left of reply,if it helps.

Message was edited by: Jayanthi Jayaraman

Former Member
0 Kudos

hi all,

i know how to capture selection-screen fields(parameters,select-options...)values. But i dont know if user selects multiple selection through select-options in this situation how i can capture the values which entered in the select-option.

Regards,

Bujji

0 Kudos

Hi,

As I suggested,use memory id or try with export.

Actually selec-option is an internal table.

So I hope my previous solution should work.

0 Kudos

Hi Bujji,

select-option are actually ranges or more general internal tables with the structure:

SIGN: 'I'nclusive or 'E'xclusive

OPTION: 'EQ', 'BT', 'NE', 'GE', 'CP', ....

LOW: low value of type of the curresponding "FOR table-field"

HIGH: high value of type of the curresponding "FOR table-field"

You may just code:


TABLES: mara.

SELECT-OPTIONS s_matnr FOR mara-matnr.

LOOP AT s_matnr.
  WRITE: / s_matnr-sign,
           s_matnr-option,
           s_matnr-low,
           s_matnr-high.
ENDLOOP.

If you find my answer useful, please don't forget the reward.

Regards,

Juergen

Murali_Shanmu
Active Contributor
0 Kudos

Yes, All the Multiple selections will be stored in the Internal tables generated for that Select Options. The System actually does a Union of Inclusions - Union of Exclusions and generates the result. So u can at any point of time access the values from this Internal tables