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: 
Read only

Function module REUSE_ALV_POPUP_TO_SELECT and i_allow_no_selection

petersgryska
Explorer
0 Likes
1,655

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,335

Moderator message - Welcome to SCN. Try setting both i_allow_no_selection and i_selection to 'X'. Rob

Read only

0 Likes
1,335

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

Read only

0 Likes
1,335

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

Read only

0 Likes
1,335

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.

Read only

0 Likes
1,335

Hi, try FM 'K_KKB_LIST_FOR_ITEM_SELECTION' this willwork same as ALV_POPUP, pass space to I_SELECTION_OBLIGATORY.

Read only

0 Likes
1,335

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.