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: 

S4 call to F4IF_INT_TABLE_VALUE_REQUEST returning all values even when selecting just one.

fvalenciar
Explorer
0 Kudos
210

Hello Group

I'm facing a weird situation, this is a custom screen where we have a field that shows available values upon doing an F4. We are using function F4IF_INT_TABLE_VALUE_REQUEST. We are passing the multiple choice option to the FM but even if the user is selecting one of the entries available, all of the entries displayed as options are returned as if they were chose. 

Has anyone faces a similar situation?

Thank you

Francisco

5 REPLIES 5

Sandra_Rossi
Active Contributor

fvalenciar
Explorer
0 Kudos
113

Hello Sandra

Thank you for the information, very useful.

The situation we are seeing is something different, here is how we are calling the FM:

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'BNAME' "c_BNAME
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = c_l1
value_org = c_s
multiple_choice = c_x
TABLES
value_tab = t_user
* FIELD_TAB =
return_tab = i_return_tab
* DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3
.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

The problem comes after the options are shown and a single entry is selected. The return tab is bringing back all the entries displayed regardless on whether they were selected or not.

This is happening in the production environment but not in the test box.

fvalenciar_0-1746796077276.png

 

Now in the test environment we are seeing the checkboxes but in the production environment we dont see them.

fvalenciar_1-1746796077235.png

 

Thank you

Sandra_Rossi
Active Contributor
0 Kudos
110

As you can see, the display is different so it's not the same code. Production has "OCX" on, probably because using MULTIPLE_CHOICE = ' ', while development has "OCX" off, because using MULTIPLE_CHOICE = 'X'.

Sandra_Rossi_0-1746801235339.png

Do a debug in the production system.

32

Hello Sandra

I'm still waiting for the access to debug in production but just want to share something that may be the reason behind why it is not working.

On the left S4 on the right ECC, the code has changed and the OCX_OFF is not set in S4 unless mark_tab has something in it.

fvalenciar_0-1747148325759.png

Will test once I have access to production.

Thank you

 

0 Kudos
31

Thanks. Good catch. Probably a different Support Package level (abnormal situation).