‎2008 Jan 23 7:05 AM
Hai,
.what is the use of Export parameter(I_SELECTION) and IMPORTING parameters(ES_SELFIELD,E_EXIT ) in this function module
call function 'REUSE_ALV_POPUP_TO_SELECT'
exporting
I_TITLE = 'FLIGHT DETAIL'
I_SELECTION = 'X'
I_ZEBRA = 'X'
I_CHECKBOX_FIELDNAME = 'I_CHK'
i_tabname = 'IT_FLIGHT'
I_STRUCTURE_NAME = 'SFLIGHT'
IMPORTING
ES_SELFIELD = I_SELFIELD
E_EXIT = I_EXIT
tables
t_outtab = IT_FLIGHT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
‎2008 Jan 23 7:17 AM
Hi
Description
I_SELECTION = 'X' => the user can select entries in the displayed
internal table.
Default
Entries selectable
Description
The structure SELFIELD contains the following information about the
current cursor position
o tabname : internal output table name
o tabindex : internal output table index
o fieldname: field name
o value : field contents
Multiple selection using checkboxes puts an 'X' in the
I_CHECKBOX_FIELDNAME field in the corresponding row in the internal
table.
E_EXIT
Description
Flag is set when the user leaves the popup with the 'Cancel' function.
‎2008 Jan 23 7:18 AM
I_SELECTION
If 'X' user can select a record, if space the Function Module only display the list, no selection possible.
E_EXIT
If 'X' user has canceled the selection (clicking back/cancel pushbutton)
E_SELFIELD
In case of single selection, this parameter returns information on cursor position of selected item : table, index, field name and value.
Regards
‎2008 Jan 23 7:23 AM
Hello Udaya Kumar,
ISELECTION_ is used for selecting the internal table contents displayed in ALV.
If I_SELECTION is not Checked, it only to display the internal table contents.
If I_SELECTION is Checked (X) Selection of internal table contents displayed is possible.
ESSELFIELD_ using this, the information about the field in which cursor position is will display the information like TABLE NAME, TABLE INDEXM, FIELDNAME and VALUE.
tabname : internal output table name
tabindex : internal output table index
fieldname: field name
value : field contents
Multiple selection using checkboxes puts an 'X' in the I_CHECKBOX_FIELDNAME field in the corresponding row in the internal table.
EEXIT_ is used to cancel by the user.
If it is checked 'X', the user leaves the popup with the cancel function.
Reward If Helpful.
Regards
--
Sasidhar Reddy Matli.
‎2008 Jan 23 7:31 AM
Hai,
without those import and export paremeter also i can select values and i can display the selected values, then why i should use those variable, any one can say exact answer for that question
‎2008 Jan 23 7:39 AM
Import parameter
This import parameter has a default value 'X', if you don't use it , it will take this value (look at definition of function module)
Export parameters
Those parameters are available, if you don't need them don't use them. They give you information that's all. You can also use the I_CHECKBOX_FIELDNAME parameter and then loop at the internal table after the call (Especially if multiple selection is required)
The choice of parameters to use depends on the definition of the function module AND of your needs, there is no definitive answer.
Regards