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

Selection Parameters Table

Former Member
0 Likes
3,527

Hi

Is there a table holding all the selection parameters of a program?

Or any runtime variable?

Or is there some FM to read this?

I tried DYNP_VALUES_READ but it says wrong dynpro name on execution.

Pushpraj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,380

Please be a little more specific.

In general variants are stored in table but at runtime these are not stored. You can use the FM 'DYNP_VALUES_READ' and can populate some selection criteria based upon the selection already done for some fields on the screen. Else you if you want the selection parameter elsewhere you can use the memory (IMPORT/EXPORT) to store and retrieve values.

This depends upon your requirement. Please be a little more specific so that I can help you.

Edited by: Sudipto Chakrabarty on Mar 20, 2009 7:56 AM

9 REPLIES 9
Read only

Former Member
0 Likes
2,380

Yes, This is the FM to read the values of selection screen parameters.

Can you please explain your problem in some more extaint, so that i can try to help u.

Read only

Former Member
0 Likes
2,381

Please be a little more specific.

In general variants are stored in table but at runtime these are not stored. You can use the FM 'DYNP_VALUES_READ' and can populate some selection criteria based upon the selection already done for some fields on the screen. Else you if you want the selection parameter elsewhere you can use the memory (IMPORT/EXPORT) to store and retrieve values.

This depends upon your requirement. Please be a little more specific so that I can help you.

Edited by: Sudipto Chakrabarty on Mar 20, 2009 7:56 AM

Read only

0 Likes
2,380

Hi

Indeed the FM DYNP_VALUES_READ looks good for the job. But when I input a zreport name and the screen number 1000 it gives the error INVALID_DYNPRONAME.

Why is that?

I see there's this statement call 'HELP_GET_FIELDS' ..........

after which sy-subrc is 1.

Pushpraj

Read only

0 Likes
2,380

Hi,

Try this.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = li_dynval[]

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

invalid_parameter = 7

undefind_error = 8

double_conversion = 9

stepl_not_found = 10

OTHERS = 11.

in the table li_dynval, give the selection screen parameter names. for example if ur select-option name is s_opt, then fill the table as

lwa_dynval-fieldname = 'S_OPT-LOW'.

APPEND lwa_dynval TO li_dynval.

CLEAR lwa_dynval.

the selection-screen parameters should be given in caps.

hope this may be helpful.

Regards,

Sharin.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
2,380

Hi,

Check table D021T : Screen Key Word Texts

Give program name and you will be given all the fields used in that program.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
2,380

Please check if the FM RS_REFRESH_FROM_SELECTOPTIONS helps

Read only

Former Member
0 Likes
2,380

Hi Pushpraj,

Are you looking for this FM:

RS_COVERPAGE_SELECTIONS which returns the selection parameters for a report .

Regards,

Rajan.

Read only

Former Member
0 Likes
2,380

hi,

Check the below Function module

RS_REFRESH_FROM_SELECTOPTIONS

Read only

Former Member
0 Likes
2,380

Hi see the FM

RS_REFRESH_FROM_SELECTOPTION

U wil get list of parameters,select-options and all details of a selection srrceeen.

Regrds