2010 Jun 22 1:41 PM
Hello,
I am using the function module REUSE_ALV_POPUP_TO_SELECT.
My problem is that I am not able to press Enter in this dynpro without having selected at least one row.
Isn't this possible?
I haven't defined the field 'MARK' in the table gt_fieldcat. Is this the problem?
I have debugged a bit. If I set I_SELECTION_OBLIGATORY in K_KKB_LIST_FOR_ITEM_SELECTION2 to initial manually I don't have this problem.
By I_ALLOW_NO_SELECTION the field GT_STACK-FLG_ALLOW_NO_SELECTION is set but I can't find it at any other place in the programs.
This is my current coding.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Auswahl der zu wandelnden Reservierungen'
i_allow_no_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 120
i_screen_end_line = 20
i_checkbox_fieldname = 'MARK'
i_tabname = 'GT_CHANGE'
it_fieldcat = gt_fieldcat
IMPORTING
e_exit = gv_abbruch
TABLES
t_outtab = gt_change
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Thanks a lot.
Hello,
I am using the function module REUSE_ALV_POPUP_TO_SELECT.
My problem is that I am not able to press Enter in this dynpro without having selected at least one row.
Isn't this possible?
I haven't defined the field 'MARK' in the table gt_fieldcat. Is this the problem?
I have debugged a bit. If I set I_SELECTION_OBLIGATORY in K_KKB_LIST_FOR_ITEM_SELECTION2 to initial manually I don't have this problem.
By I_ALLOW_NO_SELECTION the field GT_STACK-FLG_ALLOW_NO_SELECTION is set but I can't find it at any other place in the programs.
This is my current coding.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Auswahl der zu wandelnden Reservierungen'
i_allow_no_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 120
i_screen_end_line = 20
i_checkbox_fieldname = 'MARK'
i_tabname = 'GT_CHANGE'
it_fieldcat = gt_fieldcat
IMPORTING
e_exit = gv_abbruch
TABLES
t_outtab = gt_change
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Thanks a lot.
2010 Jun 22 2:28 PM
Moderator message - Welcome to SCN. Try setting both i_allow_no_selection and i_selection to 'X'. Rob
2010 Jun 22 2:36 PM
Hi Rob
thanks for welcoming me.
But I am sorry your hint doesn't work at all. So I am still on the search for a solution.
Greetings
Peter
2010 Jun 22 3:00 PM
Try executing this report and let me know if it behaves the way you would like:
report ztest no standard page heading line-size 255.
type-pools: slis.
data: sel type slis_selfield.
data: it001 type table of t001 with header line.
select * into corresponding fields of table it001
from t001.
call function 'REUSE_ALV_POPUP_TO_SELECT'
exporting
i_title = 'Test Popup'
i_allow_no_selection = 'X'
i_selection = 'X'
i_tabname = 'T001'
i_structure_name = 'T001'
importing
es_selfield = sel
tables
t_outtab = it001.Rob
2010 Jun 22 3:06 PM
Hello Rob
this behaves as wanted BUT it has now checkbox. As soon as I am using the parameter I_CHECKBOX_FIELDNAME I get the error. Therefore I changed your coding of you a bit.
Inserted to clear the checkbox field
LOOP AT it001 WHERE kokfi <> ''.
clear it001-kokfi.
modify it001.
ENDLOOP.
Inserted behind I_STRUCTURE_NAME
I_CHECKBOX_FIELDNAME = 'KOKFI'
I am sorry. I hoped your hint would help.
2010 Jun 22 3:29 PM
Hi, try FM 'K_KKB_LIST_FOR_ITEM_SELECTION' this willwork same as ALV_POPUP, pass space to I_SELECTION_OBLIGATORY.
2010 Jun 23 7:41 AM
Hi
I am sure this will work. I already passed space to I_SELECTION_OBLIGATORY of K_KKB_LIST_FOR_ITEM_SELECTION while debugging. Then it worked.
Actually I wanted to avoid using this function module because it is Not released. But I think I have to use it for getting the wanted result.
Nevertheless thanks a lot.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |