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

Issue with FM 'COMPLEX_SELECTIONS_DIALOG'

Former Member
0 Likes
1,264

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

3 REPLIES 3
Read only

Former Member
0 Likes
883

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.

Read only

Former Member
0 Likes
883

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

Read only

Former Member
0 Likes
883

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.