Application Development 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: 

REUSE_ALV_POPUP_TO_SELECT

Murali_Shanmu
Active Contributor
0 Kudos

Hi

I am using 'REUSE_ALV_POPUP_TO_SELECT' to display an ALV with CheckBoxes. Now if i dont select any checkbox and click on Ok button, it says ' Please select atleast one row'. I have also removed the cancel button from the ALV for my requirement. Now how do i get out of the ALV popup even without selecting a single checkbox.

9 REPLIES 9

Former Member
0 Kudos

Hi,

how about the close button.

regards,

venu.

0 Kudos

U mean to say the close button in the upper right corner. Even that also throws the same message and does not leave me out.

former_member181962
Active Contributor
0 Kudos

HI Shanmugham

pass I_ALLOW_NO_SELECTION = 'X'

and try.

Regards,

Ravi

0 Kudos

Hi

I could find this in the Import parameter 'I_ALLOW_NO_SELECTION' of this FM. But still i gave. Activated the object.But still the same result only. R u sure it worked.

0 Kudos

Hi Shanmugham,

Documentation says, it should. May be, because you have removed the cancel button, it is not working for you.

What is the reason you are not having a cancel button?

Regards,

Ravi

0 Kudos

Hi Ravi,

Say i have made checked 2 checkboxes in the ALV. It reflects in my ITAB. Again i go to the ALV. The same selections are retained. Now if i click on cancel, all the selections that were made previously are getting cleared and the ITAB has all the values with Checkbox field alone cleared. Thats why i removed the Cancel button.

0 Kudos

Hi Murli,

I think I am missing some links in here.

Can you give us a bigger picture of your scenario?

Ravi

Former Member
0 Kudos

Hi,

check whether exit is declared or not....



<b>data :  G_EXIT(1) TYPE C.</b>

 CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            I_TITLE                 = P_TITLE
<b>*           I_SELECTION             = 'X'</b> and also check this
*           I_ZEBRA                 = ' '
*           I_SCREEN_START_COLUMN   = 0
*           I_SCREEN_START_LINE     = 0
*           I_SCREEN_END_COLUMN     = 0
*           I_SCREEN_END_LINE       = 0
*           I_CHECKBOX_FIELDNAME    =
*           I_LINEMARK_FIELDNAME    =
*           I_SCROLL_TO_SEL_LINE    = 'X'
            i_tabname               = '1'
            IT_FIELDCAT             = gt_fieldcat[]
*           IT_EXCLUDING            =
*           I_CALLBACK_PROGRAM      =
*           I_CALLBACK_USER_COMMAND =
            IS_PRIVATE              = GS_PRIVATE
     IMPORTING
            ES_SELFIELD             = GS_SELFIELD
           <b> E_EXIT                  = G_EXIT</b>
       TABLES
            T_OUTTAB                = GT_OUTTAB
       EXCEPTIONS
            PROGRAM_ERROR           = 1
            OTHERS                  = 2.

regards,

venu.

0 Kudos

Hi Venu

I_SELECTION is used to allow selections.

E_EXIT is the return code set to 'X' if the user clicks cancel button.

I have removed the Cancel Button.

This will not solve my problem