2012 Mar 09 8:59 AM
Hi All,
Before posting this thread i have gone through most of the posts related to this FM in sdn. None of which helped me to solve my issue. So i am posting the thread.
Scenario - In a modulepool screen i have created one filed as input field (S_cust-low ). Next to that i have a PUSH button . On clicl on the PUSH button i am calling the FM COMPLEX_SELECTIONS_DIALOG .
FIELD-SYMBOLS: <fst> TYPE STANDARD TABLE.
ls_struc_tab_and_field-fieldname = 'MATNR'.
ls_struc_tab_and_field-tablename = 'MARA'.
ASSIGN so_itab[] TO <fst>.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = text-010
tab_and_field = ls_struc_tab_and_field
signed = 'X'
lower_case = ' '
just_display = ' '
TABLES
range = <fst>
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
iF so_itab[] IS NOT INITIAL.
READ TABLE so_itab INDEX 1.
S_cust-low = so_itab-low.
ENDIF.
Issue :- When i eneter a single value in the field s_cust-low , and then click on the PUSH button then the value entered reflects in the "select single value" column of the multiple selection pop up as the so_itab is filled with the value . Then i come back and gaain change the value of s_cust-low and click on the muliple selection push button . Now the select single value column should show the new value , but its showing the old value ....
If i am not wrong as a standard select option works , this multiple selection functionality should also work like that .
Any suggestions if i am missing anything in the coding , will be highly appreciated .
Note : Clearning the S_itab in PBO of the screen by putting some conditions is not the solution i want as the FM should work as standard select option works .
Regards
Sarmistha
Hi All,
Before posting this thread i have gone through most of the posts related to this FM in sdn. None of which helped me to solve my issue. So i am posting the thread.
Scenario - In a modulepool screen i have created one filed as input field (S_cust-low ). Next to that i have a PUSH button . On clicl on the PUSH button i am calling the FM COMPLEX_SELECTIONS_DIALOG .
FIELD-SYMBOLS: <fst> TYPE STANDARD TABLE.
ls_struc_tab_and_field-fieldname = 'MATNR'.
ls_struc_tab_and_field-tablename = 'MARA'.
ASSIGN so_itab[] TO <fst>.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = text-010
tab_and_field = ls_struc_tab_and_field
signed = 'X'
lower_case = ' '
just_display = ' '
TABLES
range = <fst>
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
iF so_itab[] IS NOT INITIAL.
READ TABLE so_itab INDEX 1.
S_cust-low = so_itab-low.
ENDIF.
Issue :- When i eneter a single value in the field s_cust-low , and then click on the PUSH button then the value entered reflects in the "select single value" column of the multiple selection pop up as the so_itab is filled with the value . Then i come back and gaain change the value of s_cust-low and click on the muliple selection push button . Now the select single value column should show the new value , but its showing the old value ....
If i am not wrong as a standard select option works , this multiple selection functionality should also work like that .
Any suggestions if i am missing anything in the coding , will be highly appreciated .
Note : Clearning the S_itab in PBO of the screen by putting some conditions is not the solution i want as the FM should work as standard select option works .
Regards
Sarmistha
2012 Mar 09 9:07 AM
Hi,
While coming back, why don't you clear the screen fields.
Also, after you come back and change the value of s_cust-low and then click on multiple selection, the first value of multiple selections will contain that new value what you just entered in s_cust-low.
I would suggest you debug and check from where the problem is occuring.
Regards,
Danish.
2012 Mar 09 9:25 AM
Hi,
if S_CUST-LOW is part of a select-option, you have to change the table in index 1, too.
Till now you've only changed the header line.
Regards,
Klaus
2012 Jul 02 1:11 PM
Hi,
Came upon this thread searching for something else related to select options in module pool...
I am sure if you found the solution for this issue...
I faced the same problem. What I did was, I changed the screen field to Data Dictionary Type (the one you want to use FOR SELECT-OPTIONS). Activated the layout and later changed the name (if required, in my case I did). Activate it and Execute. It should work. My case, it did.
Regards,
Mou Bhattacharya.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |