2010 Feb 16 9:50 AM
Hi All
My requirement is particular . And i have searched in forums I did not proper answer .So I am posting my thread.
I have one select option on selection screen and I ma using DYNPRO_VALUE_READ fm to read selection screen value but Limitation with this FM is reading only one value of select option .
I would like to read all records of select options using FM DYNPRO_VALUE_READ or if other fm is there please let me know .
Thanks
Kamesh...
Hi All
My requirement is particular . And i have searched in forums I did not proper answer .So I am posting my thread.
I have one select option on selection screen and I ma using DYNPRO_VALUE_READ fm to read selection screen value but Limitation with this FM is reading only one value of select option .
I would like to read all records of select options using FM DYNPRO_VALUE_READ or if other fm is there please let me know .
Thanks
Kamesh...
2010 Feb 16 10:00 AM
Hi,
You can read the values of the select-option by looping the select option variable.
For Eg:
selection-screen : Begin of block b1.
select-option : s_matnr for mara-matnr.
selection-screen : End of block b1.
In this you can read the values from the select-option s_matnr by
Loop at s_matnr.
EndLoop.
The values of the select-option will be available in s_manr-low and s_matnr-high fields.
2010 Feb 16 10:54 AM
HI
I dont want to read based on select options .
And more over I dont need any select query .
I need to read the select option values dynamically .
Thanks for ur reply.
2010 Feb 16 11:07 AM
2010 Feb 16 10:12 AM
You can read the values of the select-option
Loop at s_optionr.
EndLoop.
or if wnat for select quesy select * from dbtablw where field1 IN S_option..
or suppose want to read for low then s_option-low and if high then s_option-high.
2010 Feb 16 11:30 AM
Hello Kamesh,
I think this is because the FM: DYNP_VALUES_READ reads the data from the screen-fields only.
Anyways when i am trying to use DYNP_VALUES_READ on select-option, i am getting an exception (Did you use NO-INTERVAL addition with SELECT-OPTIONS)
Can you please share your code ?
BR,
Suhas
2010 Feb 16 11:46 AM
CLEAR lt_dynpfields.
REFRESH lt_dynpfields.
lt_dynpfields-fieldname = 'S_RES-LOW'.
APPEND lt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = lt_dynpfields
EXCEPTIONS
OTHERS = 0. "EC
CLEAR fc_fvalue.
READ TABLE lt_dynpfields INDEX 1.
CHECK sy-subrc = 0.
fc_fvalue = lt_dynpfields-fieldvalue.
Edited by: KAMESH G on Feb 16, 2010 12:46 PM
2010 Feb 16 11:57 AM
Hi,
You can loop at select option and can access its field value just like an internal table.
May I know why are you using FM for this?
2010 Feb 16 1:38 PM
Hi
I am using this FM to capture the value what ever I have on selection scree.
And one more thing I have to use this Fm as per requirement .
So please give idea how can i read select option values at a time .
because depending on that I need to F4 help of other field on sel.screen.
And if you can look at this FM you will get idea of this FM.
Thanks for reply.
2010 Apr 04 2:49 PM
use FM rs_refresh_ from _selectoptions
Edited by: poornima pendyala on Apr 4, 2010 7:20 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |