cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple selection in F4

Former Member
0 Kudos

Hi All,

Please help me with the Multiple selection in F4 as the requirement demands multiple value selection from F4 and outputing them in text box.

Thanks in advance.

Srik.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member233090
Active Contributor
0 Kudos

Hi Srik,

So in table view you want to have multiple selection rite??

Let me know.

cheers,

Bhavana

Former Member
0 Kudos

Hi Bhavana,

Yeah.. I am able to select multiple values in the F4 window but after selecting the values only the last slection value is getting stored and sitting in the variable/box. but I want all the values which I selected.

Please help me with this.

Regards,

Srik.

former_member233090
Active Contributor
0 Kudos

Hi,

check this thread.

cheers,

bhavana

former_member233090
Active Contributor
0 Kudos

hi, use this function module


CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'CARRID'
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
* DYNPROFIELD = ' '
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
multiple_choice = 'X' " Allows to select multiple records
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = itab
* FIELD_TAB =
return_tab = rtab " This holds multiple records
* DYNPFLD_MAPPING =
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3 .

bhavana

Former Member
0 Kudos

Hi Bhavana,

The requirement is in BSP. I used the following code.

<htmlb:content design="design2003" >

<htmlb:page title="popup page " >

<htmlb:form>

<htmlb:tableView id = "tv_kna1"

table = "<%= it_kna1 %>"

selectionMode = "MULTISELECT"

onRowSelection = "rowSelection"

keyColumn = "KUNNR" >

<htmlb:tableViewColumn columnName="KUNNR" > </htmlb:tableViewColumn>

<htmlb:tableViewColumn columnName="NAME1" > </htmlb:tableViewColumn>

<htmlb:tableViewColumn columnName="ORT01" > </htmlb:tableViewColumn>

</htmlb:tableView>

<htmlb:button text = "Press Me"

onClientClick = "getData()" />

</htmlb:form>

</htmlb:page>

</htmlb:content>

OnInputprocessing

DATA : tv TYPE REF TO cl_htmlb_tableview,

tv_data TYPE REF TO cl_htmlb_event_tableview,

event TYPE REF TO cl_htmlb_event.

tv ?= cl_htmlb_manager=>get_data(

request = runtime->server->request

name = 'tableview'

id = 'tv_kna1' ).

tv_data = tv->data.

w_details = tv_data->row_key.

But only the last selection is getting stored. I need all the data that is selected.

Regards,

Srik