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: 

Selection Parameters Table

Former Member
0 Kudos
1,492

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

Former Member
0 Kudos
345

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

Former Member
0 Kudos
345

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.

Former Member
0 Kudos
346

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

0 Kudos
345

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

0 Kudos
345

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.

I355602
Product and Topic Expert
Product and Topic Expert
0 Kudos
345

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

Former Member
0 Kudos
345

Please check if the FM RS_REFRESH_FROM_SELECTOPTIONS helps

Former Member
0 Kudos
345

Hi Pushpraj,

Are you looking for this FM:

RS_COVERPAGE_SELECTIONS which returns the selection parameters for a report .

Regards,

Rajan.

Former Member
0 Kudos
345

hi,

Check the below Function module

RS_REFRESH_FROM_SELECTOPTIONS

Former Member
0 Kudos
345

Hi see the FM

RS_REFRESH_FROM_SELECTOPTION

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

Regrds