11-11-2005 11:37 AM
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.
11-11-2005 11:41 AM
11-11-2005 11:45 AM
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.
11-11-2005 11:45 AM
11-11-2005 11:54 AM
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.
11-11-2005 11:58 AM
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
11-11-2005 12:00 PM
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.
11-11-2005 12:06 PM
Hi Murli,
I think I am missing some links in here.
Can you give us a bigger picture of your scenario?
Ravi
11-11-2005 11:50 AM
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.
11-11-2005 11:56 AM
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