2009 Aug 23 10:50 PM
All,
I have report with 269 fields select-options inputs. I need to check any select-options have any value or not.
I know each select-option have is initial or not
For example
if not s_matnr[] is initial
I do not want to check each input field as initial or not.
Any other easy way do this ?
a®
All,
I have report with 269 fields select-options inputs. I need to check any select-options have any value or not.
I know each select-option have is initial or not
For example
if not s_matnr[] is initial
I do not want to check each input field as initial or not.
Any other easy way do this ?
a®
2009 Aug 23 11:52 PM
Solved
call function 'RS_REFRESH_FROM_SELECTOPTIONS'
exporting
curr_report = v_program
tables
selection_table = i_seltab
exceptions
not_found = 1
no_report = 2.
loop at i_seltab.
if not i_seltab-low is initial.
v_not_initial = c_x.
endif.
endloop.
2009 Aug 24 12:06 AM
Hi,
you can do that in two ways,
firstly use OBLIGATORY Addition with the select-option declaration
DATA w_c TYPE char20.
SELECT-OPTIONS : s_matnr FOR w_c OBLIGATORY.OR Use this method using field-symbols.........
DATA w_c TYPE char20.
SELECT-OPTIONS : s_matnr FOR w_c.
FIELD-SYMBOLS: <fs> TYPE ANY.
DATA w_string TYPE string.
AT SELECTION-SCREEN.
LOOP AT SCREEN.
IF screen-name CS '-LOW'.
w_string = screen-name.
REPLACE '-LOW' IN w_string WITH space.
ASSIGN (w_string) TO <fs>.
IF <fs> IS ASSIGNED.
IF <fs> IS INITIAL.
" WRITE YOUR LOGIC...........
ELSE.
" WRITE YOUR LOGIC...........
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.Regards,
Siddarth
2009 Aug 24 12:19 AM
Siddarth,
Yes this will also work.
but Loop at screen will not work in start-of-selection.
a®
2009 Aug 24 12:47 AM
Ah!!!!
I thought you wanted that in AT Selection-screen itself.... anyways nice solution using the FM... thanks
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |