on 2010 Jul 07 4:33 PM
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.
Hi Srik,
So in table view you want to have multiple selection rite??
Let me know.
cheers,
Bhavana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.